60 void *(*pfnOpen)(uint32_t ui32Drive);
72 void (*pfnClose)(
void *pvDrive);
87 uint32_t (*pfnBlockRead)(
void *pvDrive, uint8_t *pui8Data,
88 uint32_t ui32Sector, uint32_t ui32NumBlocks);
104 uint32_t (*pfnBlockWrite)(
void *pvDrive, uint8_t *pui8Data,
105 uint32_t ui32Sector, uint32_t ui32NumBlocks);
114 uint32_t (*pfnNumBlocks)(
void *pvDrive);
123 uint32_t (*pfnBlockSize)(
void *pvDrive);
134 #define DEVICE_BLOCK_SIZE 512 204 uint32_t pui32Buffer[0x1000>>2];
258 #define MSCINTERFACE_SIZE (23) 269 #define COMPOSITE_DMSC_SIZE (MSCINTERFACE_SIZE) 292 const uint8_t pui8Vendor[8];
297 const uint8_t pui8Product[16];
302 const uint8_t pui8Version[4];
372 #define USBD_MSC_EVENT_IDLE (USBD_MSC_EVENT_BASE + 0) 379 #define USBD_MSC_EVENT_READING (USBD_MSC_EVENT_BASE + 1) 386 #define USBD_MSC_EVENT_WRITING (USBD_MSC_EVENT_BASE + 2) 400 tUSBDMSCMediaStatus eMediaStatus);
Definition: usbdmsc.h:161
tUSBDMSCMediaStatus iMediaStatus
Definition: usbdmsc.h:199
uint32_t ui32CurrentLBA
Definition: usbdmsc.h:214
uint32_t ui32Flags
Definition: usbdmsc.h:194
const uint16_t ui16VID
The vendor ID that this device is to present in the device descriptor.
Definition: usbdmsc.h:282
Definition: usbdmsc.h:143
Definition: usbdevice.h:135
const uint16_t ui16MaxPowermA
The maximum power consumption of the device, expressed in milliamps.
Definition: usbdmsc.h:307
tMSCInstance sPrivateData
Definition: usbdmsc.h:356
uint8_t ui8OUTDMA
Definition: usbdmsc.h:234
Definition: usbdmsc.h:145
void * pvMedia
Definition: usbdmsc.h:184
void * USBDMSCCompositeInit(uint32_t ui32Index, tUSBDMSCDevice *psMSCDevice, tCompositeEntry *psCompEntry)
Definition: usbdmsc.c:1142
const uint16_t ui16PID
The product ID that this device is to present in the device descriptor.
Definition: usbdmsc.h:287
const uint32_t ui32NumStringDescriptors
Definition: usbdmsc.h:336
volatile bool bConnected
Definition: usbdmsc.h:189
const tMSCDMedia sMediaFunctions
Definition: usbdmsc.h:343
uint8_t ui8OUTEndpoint
Definition: usbdmsc.h:229
Definition: usbdmsc.h:277
uint32_t ui32BytesToTransfer
Definition: usbdmsc.h:209
Definition: usbdmsc.h:146
Definition: usbdmsc.h:144
Definition: usbdevice.h:66
uint32_t ui32USBBase
Definition: usbdmsc.h:166
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
uint8_t ui8SCSIState
Definition: usbdmsc.h:244
const tUSBCallback pfnEventCallback
Definition: usbdmsc.h:349
uint8_t ui8Interface
Definition: usbdmsc.h:239
uint16_t ui16AddSenseCode
Definition: usbdmsc.h:179
void USBDMSCMediaChange(void *pvMSCDevice, tUSBDMSCMediaStatus iMediaStatus)
Definition: usbdmsc.c:423
uint8_t ui8INDMA
Definition: usbdmsc.h:224
Definition: usblibpriv.h:177
void USBDMSCTerm(void *pvMSCDevice)
Definition: usbdmsc.c:1262
const uint8_t ui8PwrAttributes
Definition: usbdmsc.h:315
tUSBDMAInstance * psDMAInstance
Definition: usbdmsc.h:249
uint8_t ui8INEndpoint
Definition: usbdmsc.h:219
const uint8_t *const * ppui8StringDescriptors
Definition: usbdmsc.h:330
void * USBDMSCInit(uint32_t ui32Index, tUSBDMSCDevice *psMSCDevice)
Definition: usbdmsc.c:1069
uint8_t ui8ErrorCode
Definition: usbdmsc.h:177
uint8_t ui8SenseKey
Definition: usbdmsc.h:178
tDeviceInfo sDevInfo
Definition: usbdmsc.h:171
tUSBDMSCMediaStatus
Definition: usbdmsc.h:141