USB Component  Version 6.13.6
MDK Middleware for USB Device and Host Communication
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
USBH_MSC: Mass Storage Device Functions

Events generated by USB Host - Mass Storage Device functions. More...

Functions

__STATIC_INLINE void EvrUSBH_MSC_Configure (uint8_t instance)
 Event on internal operation MSC device configuration start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ConfigureFailed (usbStatus error)
 Event on internal operation MSC device configuration failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Unconfigure (uint8_t instance)
 Event on internal operation MSC device unconfigure start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_UnconfigureFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device uninitialization failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Initialize (uint8_t instance)
 Event on internal operation MSC device initialization start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_InitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device initialization failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_OnInitialize (uint8_t instance)
 Event on USBH_MSC_Initialize user callback function start (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Uninitialize (uint8_t instance)
 Event on internal operation MSC device uninitialization start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_UninitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device uninitialization failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_OnUninitialize (uint8_t instance)
 Event on USBH_MSC_Uninitialize user callback function start (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_GetDevice (uint8_t instance, uint8_t device)
 Event on USBH_MSC_GetDevice finished (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_GetStatus (uint8_t instance, uint8_t status)
 Event on USBH_MSC_GetStatus finished (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Read (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Read start (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ReadFailed (uint8_t instance, uint32_t lba, uint32_t cnt, usbStatus error)
 Event on USBH_MSC_Read failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ReadDone (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Read finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Write (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Write start (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_WriteFailed (uint8_t instance, uint32_t lba, uint32_t cnt, usbStatus error)
 Event on USBH_MSC_Write failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_WriteDone (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Write finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacity (uint8_t instance)
 Event on USBH_MSC_ReadCapacity start (API) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacityFailed (uint8_t instance, usbStatus error)
 Event on USBH_MSC_ReadCapacity failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacityDone (uint8_t instance, uint32_t block_count, uint32_t block_size)
 Event on USBH_MSC_ReadCapacity finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_MSC_BomReset (uint8_t instance)
 Event on internal operation Bulk-Only Mass Storage Reset start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_BomResetFailed (uint8_t instance, usbStatus error)
 Event on internal operation Bulk-Only Mass Storage Reset failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLun (uint8_t instance)
 Event on internal operation Get Max LUN start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLunFailed (uint8_t instance, usbStatus error)
 Event on internal operation Get Max LUN failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReady (uint8_t instance)
 Event on internal operation SCSI Test Unit Ready start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReadyFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Test Unit Ready failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSense (uint8_t instance)
 Event on internal operation SCSI Request Sense start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSenseFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Request Sense failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiry (uint8_t instance)
 Event on internal operation SCSI Inquiry start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiryFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Inquiry failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacities (uint8_t instance)
 Event on internal operation SCSI Read Format Capacities start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacitiesFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Read Format Capacities failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacity (uint8_t instance)
 Event on internal operation SCSI Read Capacity start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacityFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Read Capacity failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRead10 (uint8_t instance, uint32_t block_addr, uint32_t block_num)
 Event on internal operation SCSI Read10 start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRead10Failed (uint8_t instance, uint32_t block_addr, uint32_t block_num, usbStatus error)
 Event on internal operation SCSI Read10 failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiWrite10 (uint8_t instance, uint32_t block_addr, uint32_t block_num)
 Event on internal operation SCSI Write10 start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiWrite10Failed (uint8_t instance, uint32_t block_addr, uint32_t block_num, usbStatus error)
 Event on internal operation SCSI Write10 failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_MSC_Recover (uint8_t instance)
 Event on internal operation recover start (Operation) More...
 
__STATIC_INLINE void EvrUSBH_MSC_RecoverFailed (uint8_t instance, usbStatus error)
 Event on internal operation recover failed (Error) More...
 

Description

Events generated by USB Host - Mass Storage Device functions.

Function Documentation

__STATIC_INLINE void EvrUSBH_MSC_BomReset ( uint8_t  instance)

Event on internal operation Bulk-Only Mass Storage Reset start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_BomResetFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation Bulk-Only Mass Storage Reset failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Configure ( uint8_t  instance)

Event on internal operation MSC device configuration start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ConfigureFailed ( usbStatus  error)

Event on internal operation MSC device configuration failed (Error)

Parameters
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_GetDevice ( uint8_t  instance,
uint8_t  device 
)

Event on USBH_MSC_GetDevice finished (API)

Parameters
instanceinstance of MSC device
devicedevice index
  • value <= 127: index of Device
  • value == 255: non-existing Device index
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLun ( uint8_t  instance)

Event on internal operation Get Max LUN start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLunFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation Get Max LUN failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_GetStatus ( uint8_t  instance,
uint8_t  status 
)

Event on USBH_MSC_GetStatus finished (API)

Parameters
instanceinstance of MSC device
statusdevice status usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Initialize ( uint8_t  instance)

Event on internal operation MSC device initialization start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_InitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation MSC device initialization failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_OnInitialize ( uint8_t  instance)

Event on USBH_MSC_Initialize user callback function start (API)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_OnUninitialize ( uint8_t  instance)

Event on USBH_MSC_Uninitialize user callback function start (API)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_Read ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt 
)

Event on USBH_MSC_Read start (API)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to read
cntnumber of contiguous blocks to read
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacity ( uint8_t  instance)

Event on USBH_MSC_ReadCapacity start (API)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacityDone ( uint8_t  instance,
uint32_t  block_count,
uint32_t  block_size 
)

Event on USBH_MSC_ReadCapacity finished successfully (Detail)

Parameters
instanceinstance of MSC device
block_counttotal number of blocks available
block_sizeblock size
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacityFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBH_MSC_ReadCapacity failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ReadDone ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt 
)

Event on USBH_MSC_Read finished successfully (Detail)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to read
cntnumber of contiguous blocks to read
__STATIC_INLINE void EvrUSBH_MSC_ReadFailed ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt,
usbStatus  error 
)

Event on USBH_MSC_Read failed (Error)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to read
cntnumber of contiguous blocks to read
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Recover ( uint8_t  instance)

Event on internal operation recover start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_RecoverFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation recover failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiry ( uint8_t  instance)

Event on internal operation SCSI Inquiry start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiryFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation SCSI Inquiry failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiRead10 ( uint8_t  instance,
uint32_t  block_addr,
uint32_t  block_num 
)

Event on internal operation SCSI Read10 start (Operation)

Parameters
instanceinstance of MSC device
block_addraddress of first block to be read
block_numnumber of blocks to be read
__STATIC_INLINE void EvrUSBH_MSC_ScsiRead10Failed ( uint8_t  instance,
uint32_t  block_addr,
uint32_t  block_num,
usbStatus  error 
)

Event on internal operation SCSI Read10 failed (Error)

Parameters
instanceinstance of MSC device
block_addraddress of first block to be read
block_numnumber of blocks to be read
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacity ( uint8_t  instance)

Event on internal operation SCSI Read Capacity start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacityFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation SCSI Read Capacity failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacities ( uint8_t  instance)

Event on internal operation SCSI Read Format Capacities start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacitiesFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation SCSI Read Format Capacities failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSense ( uint8_t  instance)

Event on internal operation SCSI Request Sense start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSenseFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation SCSI Request Sense failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReady ( uint8_t  instance)

Event on internal operation SCSI Test Unit Ready start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReadyFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation SCSI Test Unit Ready failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_ScsiWrite10 ( uint8_t  instance,
uint32_t  block_addr,
uint32_t  block_num 
)

Event on internal operation SCSI Write10 start (Operation)

Parameters
instanceinstance of MSC device
block_addraddress of first block to be written
block_numnumber of blocks to be written
__STATIC_INLINE void EvrUSBH_MSC_ScsiWrite10Failed ( uint8_t  instance,
uint32_t  block_addr,
uint32_t  block_num,
usbStatus  error 
)

Event on internal operation SCSI Write10 failed (Error)

Parameters
instanceinstance of MSC device
block_addraddress of first block to be written
block_numnumber of blocks to be written
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Unconfigure ( uint8_t  instance)

Event on internal operation MSC device unconfigure start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_UnconfigureFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation MSC device uninitialization failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Uninitialize ( uint8_t  instance)

Event on internal operation MSC device uninitialization start (Operation)

Parameters
instanceinstance of MSC device
__STATIC_INLINE void EvrUSBH_MSC_UninitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation MSC device uninitialization failed (Error)

Parameters
instanceinstance of MSC device
errorerror code usbStatus
__STATIC_INLINE void EvrUSBH_MSC_Write ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt 
)

Event on USBH_MSC_Write start (API)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to write
cntnumber of contiguous blocks to write
__STATIC_INLINE void EvrUSBH_MSC_WriteDone ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt 
)

Event on USBH_MSC_Write finished successfully (Detail)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to write
cntnumber of contiguous blocks to write
__STATIC_INLINE void EvrUSBH_MSC_WriteFailed ( uint8_t  instance,
uint32_t  lba,
uint32_t  cnt,
usbStatus  error 
)

Event on USBH_MSC_Write failed (Error)

Parameters
instanceinstance of MSC device
lbalogical block address of first block to write
cntnumber of contiguous blocks to write
errorerror code usbStatus