USB Component  
MDK Middleware for USB Device and Host Communication
 
Loading...
Searching...
No Matches
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)
 
__STATIC_INLINE void EvrUSBH_MSC_ConfigureFailed (usbStatus error)
 Event on internal operation MSC device configuration failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_Unconfigure (uint8_t instance)
 Event on internal operation MSC device unconfigure start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_UnconfigureFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device uninitialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_Initialize (uint8_t instance)
 Event on internal operation MSC device initialization start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_InitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device initialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_OnInitialize (uint8_t instance)
 Event on USBH_MSC_Initialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBH_MSC_Uninitialize (uint8_t instance)
 Event on internal operation MSC device uninitialization start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_UninitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation MSC device uninitialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_OnUninitialize (uint8_t instance)
 Event on USBH_MSC_Uninitialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBH_MSC_GetDevice (uint8_t instance, uint8_t device)
 Event on USBH_MSC_GetDevice finished (API)
 
__STATIC_INLINE void EvrUSBH_MSC_GetStatus (uint8_t instance, uint8_t status)
 Event on USBH_MSC_GetStatus finished (API)
 
__STATIC_INLINE void EvrUSBH_MSC_Read (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Read start (API)
 
__STATIC_INLINE void EvrUSBH_MSC_ReadFailed (uint8_t instance, uint32_t lba, uint32_t cnt, usbStatus error)
 Event on USBH_MSC_Read failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ReadDone (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Read finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_MSC_Write (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Write start (API)
 
__STATIC_INLINE void EvrUSBH_MSC_WriteFailed (uint8_t instance, uint32_t lba, uint32_t cnt, usbStatus error)
 Event on USBH_MSC_Write failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_WriteDone (uint8_t instance, uint32_t lba, uint32_t cnt)
 Event on USBH_MSC_Write finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacity (uint8_t instance)
 Event on USBH_MSC_ReadCapacity start (API)
 
__STATIC_INLINE void EvrUSBH_MSC_ReadCapacityFailed (uint8_t instance, usbStatus error)
 Event on USBH_MSC_ReadCapacity failed (Error)
 
__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)
 
__STATIC_INLINE void EvrUSBH_MSC_BomReset (uint8_t instance)
 Event on internal operation Bulk-Only Mass Storage Reset start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_BomResetFailed (uint8_t instance, usbStatus error)
 Event on internal operation Bulk-Only Mass Storage Reset failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLun (uint8_t instance)
 Event on internal operation Get Max LUN start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_GetMaxLunFailed (uint8_t instance, usbStatus error)
 Event on internal operation Get Max LUN failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReady (uint8_t instance)
 Event on internal operation SCSI Test Unit Ready start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReadyFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Test Unit Ready failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSense (uint8_t instance)
 Event on internal operation SCSI Request Sense start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSenseFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Request Sense failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiry (uint8_t instance)
 Event on internal operation SCSI Inquiry start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiryFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Inquiry failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacities (uint8_t instance)
 Event on internal operation SCSI Read Format Capacities start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacitiesFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Read Format Capacities failed (Error)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacity (uint8_t instance)
 Event on internal operation SCSI Read Capacity start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacityFailed (uint8_t instance, usbStatus error)
 Event on internal operation SCSI Read Capacity failed (Error)
 
__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)
 
__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)
 
__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)
 
__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)
 
__STATIC_INLINE void EvrUSBH_MSC_Recover (uint8_t instance)
 Event on internal operation recover start (Operation)
 
__STATIC_INLINE void EvrUSBH_MSC_RecoverFailed (uint8_t instance, usbStatus error)
 Event on internal operation recover failed (Error)
 

Description

Events generated by USB Host - Mass Storage Device functions.

Function Documentation

◆ EvrUSBH_MSC_BomReset()

__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

◆ EvrUSBH_MSC_BomResetFailed()

__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

◆ EvrUSBH_MSC_Configure()

__STATIC_INLINE void EvrUSBH_MSC_Configure ( uint8_t  instance)

Event on internal operation MSC device configuration start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ConfigureFailed()

__STATIC_INLINE void EvrUSBH_MSC_ConfigureFailed ( usbStatus  error)

Event on internal operation MSC device configuration failed (Error)

Parameters
errorerror code usbStatus

◆ EvrUSBH_MSC_GetDevice()

__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

◆ EvrUSBH_MSC_GetMaxLun()

__STATIC_INLINE void EvrUSBH_MSC_GetMaxLun ( uint8_t  instance)

Event on internal operation Get Max LUN start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_GetMaxLunFailed()

__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

◆ EvrUSBH_MSC_GetStatus()

__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

◆ EvrUSBH_MSC_Initialize()

__STATIC_INLINE void EvrUSBH_MSC_Initialize ( uint8_t  instance)

Event on internal operation MSC device initialization start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_InitializeFailed()

__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

◆ EvrUSBH_MSC_OnInitialize()

__STATIC_INLINE void EvrUSBH_MSC_OnInitialize ( uint8_t  instance)

Event on USBH_MSC_Initialize user callback function start (API)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_OnUninitialize()

__STATIC_INLINE void EvrUSBH_MSC_OnUninitialize ( uint8_t  instance)

Event on USBH_MSC_Uninitialize user callback function start (API)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_Read()

__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

◆ EvrUSBH_MSC_ReadCapacity()

__STATIC_INLINE void EvrUSBH_MSC_ReadCapacity ( uint8_t  instance)

Event on USBH_MSC_ReadCapacity start (API)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ReadCapacityDone()

__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

◆ EvrUSBH_MSC_ReadCapacityFailed()

__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

◆ EvrUSBH_MSC_ReadDone()

__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

◆ EvrUSBH_MSC_ReadFailed()

__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

◆ EvrUSBH_MSC_Recover()

__STATIC_INLINE void EvrUSBH_MSC_Recover ( uint8_t  instance)

Event on internal operation recover start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_RecoverFailed()

__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

◆ EvrUSBH_MSC_ScsiInquiry()

__STATIC_INLINE void EvrUSBH_MSC_ScsiInquiry ( uint8_t  instance)

Event on internal operation SCSI Inquiry start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ScsiInquiryFailed()

__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

◆ EvrUSBH_MSC_ScsiRead10()

__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

◆ EvrUSBH_MSC_ScsiRead10Failed()

__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

◆ EvrUSBH_MSC_ScsiReadCapacity()

__STATIC_INLINE void EvrUSBH_MSC_ScsiReadCapacity ( uint8_t  instance)

Event on internal operation SCSI Read Capacity start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ScsiReadCapacityFailed()

__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

◆ EvrUSBH_MSC_ScsiReadFormatCapacities()

__STATIC_INLINE void EvrUSBH_MSC_ScsiReadFormatCapacities ( uint8_t  instance)

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

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ScsiReadFormatCapacitiesFailed()

__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

◆ EvrUSBH_MSC_ScsiRequestSense()

__STATIC_INLINE void EvrUSBH_MSC_ScsiRequestSense ( uint8_t  instance)

Event on internal operation SCSI Request Sense start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ScsiRequestSenseFailed()

__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

◆ EvrUSBH_MSC_ScsiTestUnitReady()

__STATIC_INLINE void EvrUSBH_MSC_ScsiTestUnitReady ( uint8_t  instance)

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

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_ScsiTestUnitReadyFailed()

__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

◆ EvrUSBH_MSC_ScsiWrite10()

__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

◆ EvrUSBH_MSC_ScsiWrite10Failed()

__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

◆ EvrUSBH_MSC_Unconfigure()

__STATIC_INLINE void EvrUSBH_MSC_Unconfigure ( uint8_t  instance)

Event on internal operation MSC device unconfigure start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_UnconfigureFailed()

__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

◆ EvrUSBH_MSC_Uninitialize()

__STATIC_INLINE void EvrUSBH_MSC_Uninitialize ( uint8_t  instance)

Event on internal operation MSC device uninitialization start (Operation)

Parameters
instanceinstance of MSC device

◆ EvrUSBH_MSC_UninitializeFailed()

__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

◆ EvrUSBH_MSC_Write()

__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

◆ EvrUSBH_MSC_WriteDone()

__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

◆ EvrUSBH_MSC_WriteFailed()

__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