VeriFone MX800 series Programmer's Manual page 105

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

Prototype
struct vficomErrCounts *result = ecrStatus(int*buf);
Copy current status information to caller's 4-byte buffer.
1st
The number of bytes pending in the input buffer.
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.
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 Feature C mode and VISA is enabled:
Prototype
struct vficomErrCounts *result=ecrStatus(int*buf);
D
X
M
800 S
P
ERIES
ROGRAMMERS
D
EVICE
RIVERS
ecrStatus
105
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents