Svcusbstorpresent() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

svcUsbStorPresent()

The svcUsbStorPresent() function determines how many USB storage/
memory devices are currently plugged into the USB host port, mounted properly
and ready for access. If so, then it sets a value of 1 in each byte of the array
pointed to by usbStorDevPresent. A value of 1 indicates that a device is
mounted on that particular directory and ready for access. Each byte of the array
corresponds to the directories as follows:
/mnt/usbstor1 = usbStorDevPresent[0]
/mnt/usbstor2 = usbStorDevPresent[1]
/mnt/usbstor3 = usbStorDevPresent[2]
/mnt/usbstor4 = usbStorDevPresent[3]
The files can be accessed at these mount points if there is a value of 1 in the
corresponding array byte.
Prototype
int svcUsbStorPresent(char *usbStorDevPresent)
Parameters
usbStorDevPresent
Return Values
Return value is 0 on success, -EINVAL if invalid parameter passed.
Pointer to char of at least 4
allocated bytes
S
ERVICE
svcUsbStorPresent()
X
M
800 S
P
ERIES
ROGRAMMERS
F
UNCTIONS
173
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents