SERVICE FUNCTIONS
svcUsbStorPresent()
M
X
800 SERIES PROGRAMMERS GUIDE 173
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
Return Values
Return value is 0 on success, -EINVAL if invalid parameter passed.
usbStorDevPresent Pointer to char of at least 4
allocated bytes