Ecrstatus - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

D
D
EVICE
RIVERS

ecrStatus

ecrStatus
104
M
X
800 S
P
ERIES
ROGRAMMERS
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.
Input messages pending
1st
A value of 0 means no message pending.
A value of greater than 0 means that a message is pending.
The number of bytes available (free) in the output buffer.
2nd
Indicates if ECR is online. A non-zero value indicates the ECR is
3rd
online (default is 0x37). A value of zero indicates ECR is offline.
Status of ecrWrite() message:
4th
message ACKed
0
message pending
1
message rejected
2
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:
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents