nRF52840 only: Types used in the USB MSC class. More...
Data Structures |
|
| struct | app_usbd_msc_cbw_t |
|
Command Block Wrapper (CBW).
More...
|
|
| struct | app_usbd_msc_csw_t |
|
Command Status Wrapper (CSW).
More...
|
|
Macros |
|
| #define | APP_USBD_MSC_CLASS 0x08 |
|
MSC class definition in interface descriptor.
More...
|
|
| #define | APP_USBD_MSC_CBW_SIGNATURE {'U', 'S', 'B', 'C'} |
| #define | APP_USBD_MSC_CBW_DIRECTION_IN (1u << 7) |
| #define | APP_USBD_MSC_CSW_SIGNATURE {'U', 'S', 'B', 'S'} |
| #define | APP_USBD_MSC_CSW_STATUS_PASS 0x00 |
| #define | APP_USBD_MSC_CSW_STATUS_FAIL 0x01 |
| #define | APP_USBD_MSC_CSW_STATUS_PE 0x02 |
Enumerations |
|
| enum |
app_usbd_msc_subclass_t
{
APP_USBD_MSC_SUBCLASS_NOT_REPORTED = 0x00, APP_USBD_MSC_SUBCLASS_RBC = 0x01, APP_USBD_MSC_SUBCLASS_ATAPI = 0x02, APP_USBD_MSC_SUBCLASS_QIC_157 = 0x03, APP_USBD_MSC_SUBCLASS_UFI = 0x04, APP_USBD_MSC_SUBCLASS_SFF_8070I = 0x05, APP_USBD_MSC_SUBCLASS_TRANSPARENT = 0x06, APP_USBD_MSC_SUBCLASS_LSD_FS = 0x07, APP_USBD_MSC_SUBCLASS_IEEE_1667 = 0x08, APP_USBD_MSC_SUBCLASS_VENDOR = 0xFF } |
|
MSC subclass possible value.
More...
|
|
| enum |
app_usbd_msc_protocol_t
{
APP_USBD_MSC_PROTOCOL_CBI = 0x00, APP_USBD_MSC_PROTOCOL_CBI_ALT = 0x01, APP_USBD_MSC_PROTOCOL_BULK = 0x50, APP_USBD_MSC_PROTOCOL_UAS = 0x62, APP_USBD_MSC_PROTOCOL_VENDOR = 0xFF } |
|
MSC protocol possible value.
More...
|
|
| enum |
app_usbd_msc_req_t
{
APP_USBD_MSC_REQ_ADSC = 0x00, APP_USBD_MSC_REQ_GET_REQS = 0xFC, APP_USBD_MSC_REQ_PUT_REQS = 0xFD, APP_USBD_MSC_REQ_GET_MAX_LUN = 0xFE, APP_USBD_MSC_REQ_BULK_RESET = 0xFF } |
|
MSC USB requests
nrf_drv_usbd_setup_t::bmRequestType
.
More...
|
|
Detailed Description
nRF52840 only: Types used in the USB MSC class.
Macro Definition Documentation
| #define APP_USBD_MSC_CBW_DIRECTION_IN (1u << 7) |
CBW direction flag
| #define APP_USBD_MSC_CBW_SIGNATURE {'U', 'S', 'B', 'C'} |
CBW signature
| #define APP_USBD_MSC_CLASS 0x08 |
MSC class definition in interface descriptor.
| #define APP_USBD_MSC_CSW_SIGNATURE {'U', 'S', 'B', 'S'} |
CSW signature
| #define APP_USBD_MSC_CSW_STATUS_FAIL 0x01 |
CSW status: Command Failed
| #define APP_USBD_MSC_CSW_STATUS_PASS 0x00 |
CSW status: Command Passed
| #define APP_USBD_MSC_CSW_STATUS_PE 0x02 |
CSW status: Phase Error
Enumeration Type Documentation
MSC protocol possible value.
- Note
- The USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport specification is approved for use only with full-speed floppy disk drives. CBI shall not be used in high-speed capable devices.
| enum app_usbd_msc_req_t |
MSC USB requests nrf_drv_usbd_setup_t::bmRequestType .
MSC subclass possible value.