Msropen - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

msrOpen

This interface prepares the firmware to accept and store card reads. If the
programmer does not make this call, then the terminal will ignore all card reads.
The MSR device allows only one open at a time.
Prototype
int result = msrOpen(int flags, void *callback);
Parameters
Specify device access permissions for the MSR device. The
flags
pertinent ones are:
O_RDONLY
O_RDWR
O_NONBLOCK
Pointer to callback function. If available, this callback function will
callback
be called when data is available.
Return Values
0
Magnetic Stripe Reader is open and ready
< 0
Error
Read Only
Read and Write
Read is non-blocking (default is
blocking)
X
M
800 S
P
ERIES
ROGRAMMERS
D
D
EVICE
RIVERS
msrOpen
35
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents