Home |
Function USBDisk |
Function USBDiskUSBDisk is an attachment/detachment callback for the mass storage device class driver: int USBDisk(RTUDeviceHandle Device, RTUSBEvent Event); Applications which need to support USB disks should register USBDisk using RTURegisterCallback before any USB host controllers are registered. In addition, a file system block device driver such as the RTFiles-32 USB disk device driver must be installed (for RTFiles-32, see device list for details). The driver supports an unlimited number of simultaneously mounted USB disks. The following functions USBDiskInitDevice, USBDiskMountDevice, USBDiskReadSectors, USBDiskWriteSectors, USBDiskMediaChanged, USBDiskGetSize, and USBDiskSCSICommand are supplied for file system block device driver developers. Users of On Time's RTFiles-32 do not need these functions which are used internally by the RTFiles-32 USB disk driver. This function was called RTFUSBDisk in previous versions. That name has been superseded by USBDisk and should no longer be used.
|