| Example |
/* USB-MSC Device Driver Control Block */
FAT_DRV usb0_drv = {
Init,
UnInit,
ReadSector,
WriteSector,
ReadInfo,
CheckMedia
};
/* Read single/multiple sectors from Mass Storage Device. */
static BOOL ReadSector (U32 sect, U8 *buf, U32 cnt) {
return (usbh_msc_read (sect, buf, cnt));
}
|