Svcsetrxcallback() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

svcSetRxCallback()

The svcSetRxCallback() function is used to specify a function that an
application wants to be called whenever data is received on a particular device
designated by the file descriptor parameter. When the svcSetRxCallback()
function is called it checks to determine if the ECR has been opened.
If Visa mode is enabled then the callback function will be called when a complete
Visa packet is available. If Visa mode is not enabled, then the application's
callback will be called when data I/O has occurred on that device, such as a
character is received on the open port. This is also true if this function is used to
set a callback function for any device (not just using ecrOpen).
Prototype
int svcSetRxCallback(int fd, void (*rxfp)(void))
Parameters
File descriptor returned when opening a device, with either
fd
open() or ecrOpen().
Function pointer which points to function to be called when data
(*rxfp) (void)
is available.
Return Values
The function returns 0 on success or a negative errno value if unsuccessful.
S
ERVICE
svcSetRxCallback()
X
M
800 S
P
ERIES
ROGRAMMERS
F
UNCTIONS
163
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents