MSC context. More...
#include <app_usbd_msc_internal.h>
Data Fields | |
app_usbd_msc_cbw_t | cbw |
SCSI command block wrapper. | |
app_usbd_msc_csw_t | csw |
SCSI Command status wrapper. | |
app_usbd_msc_state_t | state |
Internal module state. | |
struct { | |
uint8_t lun | |
Current transfer blocks: logical unit. | |
uint8_t csw_status | |
Current CSW status. | |
uint32_t blk_idx | |
Current transfer: block index. | |
uint32_t blk_datasize | |
Current transfer: data size to transfer. | |
uint32_t blk_size | |
Current transfer: block size. | |
uint32_t blk_count | |
Current transfer: block count. | |
uint32_t residue | |
app_usbd_msc_csw_t::residue | |
bool trans_in_progress | |
Transfer in progress flag. | |
bool block_req_in_progress | |
Block request in progress flag. | |
size_t workbuff_pos | |
Current buffer offset (double buffering mode) | |
uint8_t req_busy_mask | |
Request bust mask (double buffering mode) | |
uint8_t trans_req_id | |
Current transfered request (double buffering mode) | |
nrf_block_req_t req | |
Last processed block req (double buffering mode) | |
} | current |
size_t | resp_len |
Response length. | |
union { | |
app_usbd_scsi_cmd_inquiry_resp_t inquiry | |
APP_USBD_SCSI_CMD_INQUIRY response | |
app_usbd_scsi_cmd_requestsense_resp_t requestsense | |
APP_USBD_SCSI_CMD_REQUESTSENSE response | |
app_usbd_scsi_cmd_readcapacity10_resp_t readcapacity10 | |
APP_USBD_SCSI_CMD_READCAPACITY10 response | |
app_usbd_scsi_cmd_modesense6_resp_t modesense6 | |
APP_USBD_SCSI_CMD_MODESENSE6 response | |
app_usbd_scsi_cmd_modesense10_resp_t modesense10 | |
APP_USBD_SCSI_CMD_MODESENSE10 response | |
} | scsi_resp |
uint16_t | blk_dev_init_mask |
Block devices init mask. | |
MSC context.