Ecrwrite - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

ecrWrite

Prototype
short bytes_written = ecrWrite(char *buffer, short size);
short bytes_written, size;
char *buffer;
Size is the number of bytes to write, and buffer is a pointer to the data area. This
operation transfers data from an application buffer into the driver's buffer, only if
the latter has adequate space, and control is returned to the application
immediately. The actual transmission occurs at a later time. Status of the
ecrWrite can be monitored using the ecrStatus() command (in VISA2
mode). ecrWrite() returns FAILURE if the current message is pending or
rejected.
Return Values
On error, a negative code will be returned:
-1
-ENOBUF
-EBUSY
Any other negative errno
error code
With errno set to specific error
Message too big or driver busy sending last message
A rejected message must be read before sending another
message. Use: ecrReadReject()
Specific error that occurred
M
D
EVICE
X
800 S
P
ERIES
ROGRAMMERS
D
RIVERS
ecrWrite
109
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents