EasyManua.ls Logo

VeriFone MX800 Series - Ecrwrite

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
ecrWrite
M
X
800 SERIES PROGRAMMERS GUIDE 109
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 With errno set to specific error
-ENOBUF
Message too big or driver busy sending last message
-EBUSY
A rejected message must be read before sending another
message. Use: ecrReadReject()
Any other negative errno
error code
Specific error that occurred

Table of Contents