EasyManua.ls Logo

VeriFone MX800 Series - Ecrstatus

VeriFone MX800 Series
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DEVICE DRIVERS
ecrStatus
104 M
X
800 SERIES PROGRAMMERS GUIDE
ecrStatus
The information returned from ecrStatus() varies depending on whether the
port is in Tailgate or Feature C mode and if VISA is enabled.
If in Tailgate mode and VISA is enabled:
Prototype
struct vficomErrCounts *result = ecrStatus(int *buf);
Copy current status information to caller’s 4-integer buffer.
Return Values
The result return code is a pointer to vficomErrCounts structure which is
defined as:
struct vficomErrCounts {
int frame_err;
int over_err;
int parity_err;
};
The pointer to this structure will contain the error counts for the port described by
the file descriptor passed into the function. The error counts provided are for
framing, overrun and parity errors detected for that port. The counts provided are
always total errors counted for that port since it was opened which allows the
application to track if any new errors were detected for that port since the last time
this function was called.
If in Tailgate mode and VISA is not enabled:
1st Input messages pending
A value of 0 means no message pending.
A value of greater than 0 means that a message is pending.
2nd The number of bytes available (free) in the output buffer.
3rd Indicates if ECR is online. A non-zero value indicates the ECR is
online (default is 0x37). A value of zero indicates ECR is offline.
4th Status of ecrWrite() message:
0 message ACKed
1 message pending
2 message rejected

Table of Contents