_MSC_Process::unit is only used within STM32_USB_Host_Library.
 
Symbols
loading...
Files
loading...

_MSC_Process::unit field

References

LocationReferrerText
usbh_msc.h:122
usbh_msc.c:311USBH_MSC_ClassRequest()
MSC_Handle->unit[i].prev_ready_state = USBH_FAIL;
usbh_msc.c:312USBH_MSC_ClassRequest()
MSC_Handle->unit[i].state_changed = 0U;
usbh_msc.c:352USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_NOT_READY;
usbh_msc.c:354USBH_MSC_Process()
switch (MSC_Handle->unit[MSC_Handle->current_lun].state)
usbh_msc.c:358USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_READ_INQUIRY;
usbh_msc.c:363USBH_MSC_Process()
scsi_status = USBH_MSC_SCSI_Inquiry(phost, (uint8_t)MSC_Handle->current_lun, &MSC_Handle->unit[MSC_Handle->current_lun].inquiry);
usbh_msc.c:367USBH_MSC_Process()
USBH_UsrLog("Inquiry Vendor : %s", MSC_Handle->unit[MSC_Handle->current_lun].inquiry.vendor_id);
usbh_msc.c:368USBH_MSC_Process()
USBH_UsrLog("Inquiry Product : %s", MSC_Handle->unit[MSC_Handle->current_lun].inquiry.product_id);
usbh_msc.c:369USBH_MSC_Process()
USBH_UsrLog("Inquiry Version : %s", MSC_Handle->unit[MSC_Handle->current_lun].inquiry.revision_id);
usbh_msc.c:370USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_TEST_UNIT_READY;
usbh_msc.c:374USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_REQUEST_SENSE;
usbh_msc.c:380USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:381USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_ERROR;
usbh_msc.c:391USBH_MSC_Process()
if (MSC_Handle->unit[MSC_Handle->current_lun].prev_ready_state != USBH_OK)
usbh_msc.c:393USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state_changed = 1U;
usbh_msc.c:398USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state_changed = 0U;
usbh_msc.c:400USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_READ_CAPACITY10;
usbh_msc.c:401USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_OK;
usbh_msc.c:402USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].prev_ready_state = USBH_OK;
usbh_msc.c:407USBH_MSC_Process()
if (MSC_Handle->unit[MSC_Handle->current_lun].prev_ready_state != USBH_FAIL)
usbh_msc.c:409USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state_changed = 1U;
usbh_msc.c:414USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state_changed = 0U;
usbh_msc.c:416USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_REQUEST_SENSE;
usbh_msc.c:417USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_NOT_READY;
usbh_msc.c:418USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].prev_ready_state = USBH_FAIL;
usbh_msc.c:424USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:425USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_ERROR;
usbh_msc.c:431USBH_MSC_Process()
scsi_status = USBH_MSC_SCSI_ReadCapacity(phost, (uint8_t)MSC_Handle->current_lun, &MSC_Handle->unit[MSC_Handle->current_lun].capacity);
usbh_msc.c:435USBH_MSC_Process()
if (MSC_Handle->unit[MSC_Handle->current_lun].state_changed == 1U)
usbh_msc.c:438USBH_MSC_Process()
(unsigned int)(MSC_Handle->unit[MSC_Handle->current_lun].capacity.block_nbr *
usbh_msc.c:439USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].capacity.block_size));
usbh_msc.c:440USBH_MSC_Process()
USBH_UsrLog("Block number : %u", (unsigned int)(MSC_Handle->unit[MSC_Handle->current_lun].capacity.block_nbr));
usbh_msc.c:441USBH_MSC_Process()
USBH_UsrLog("Block Size : %u", (unsigned int)(MSC_Handle->unit[MSC_Handle->current_lun].capacity.block_size));
usbh_msc.c:443USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:444USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_OK;
usbh_msc.c:449USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_REQUEST_SENSE;
usbh_msc.c:455USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:456USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_ERROR;
usbh_msc.c:462USBH_MSC_Process()
scsi_status = USBH_MSC_SCSI_RequestSense(phost, (uint8_t)MSC_Handle->current_lun, &MSC_Handle->unit[MSC_Handle->current_lun].sense);
usbh_msc.c:466USBH_MSC_Process()
if ((MSC_Handle->unit[MSC_Handle->current_lun].sense.key == SCSI_SENSE_KEY_UNIT_ATTENTION) ||
usbh_msc.c:467USBH_MSC_Process()
(MSC_Handle->unit[MSC_Handle->current_lun].sense.key == SCSI_SENSE_KEY_NOT_READY))
usbh_msc.c:472USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_TEST_UNIT_READY;
usbh_msc.c:477USBH_MSC_Process()
USBH_UsrLog("Sense Key : %x", MSC_Handle->unit[MSC_Handle->current_lun].sense.key);
usbh_msc.c:478USBH_MSC_Process()
USBH_UsrLog("Additional Sense Code : %x", MSC_Handle->unit[MSC_Handle->current_lun].sense.asc);
usbh_msc.c:479USBH_MSC_Process()
USBH_UsrLog("Additional Sense Code Qualifier: %x", MSC_Handle->unit[MSC_Handle->current_lun].sense.ascq);
usbh_msc.c:480USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:486USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_UNRECOVERED_ERROR;
usbh_msc.c:492USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_IDLE;
usbh_msc.c:493USBH_MSC_Process()
MSC_Handle->unit[MSC_Handle->current_lun].error = MSC_ERROR;
usbh_msc.c:570USBH_MSC_RdWrProcess()
switch (MSC_Handle->unit[lun].state)
usbh_msc.c:578USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_IDLE;
usbh_msc.c:583USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_REQUEST_SENSE;
usbh_msc.c:589USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_UNRECOVERED_ERROR;
usbh_msc.c:609USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_IDLE;
usbh_msc.c:614USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_REQUEST_SENSE;
usbh_msc.c:620USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_UNRECOVERED_ERROR;
usbh_msc.c:636USBH_MSC_RdWrProcess()
scsi_status = USBH_MSC_SCSI_RequestSense(phost, lun, &MSC_Handle->unit[lun].sense);
usbh_msc.c:640USBH_MSC_RdWrProcess()
USBH_UsrLog("Sense Key : %x", MSC_Handle->unit[lun].sense.key);
usbh_msc.c:641USBH_MSC_RdWrProcess()
USBH_UsrLog("Additional Sense Code : %x", MSC_Handle->unit[lun].sense.asc);
usbh_msc.c:642USBH_MSC_RdWrProcess()
USBH_UsrLog("Additional Sense Code Qualifier: %x", MSC_Handle->unit[lun].sense.ascq);
usbh_msc.c:643USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_IDLE;
usbh_msc.c:644USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].error = MSC_ERROR;
usbh_msc.c:656USBH_MSC_RdWrProcess()
MSC_Handle->unit[lun].state = MSC_UNRECOVERED_ERROR;
usbh_msc.c:731USBH_MSC_UnitIsReady()
if ((phost->gState == HOST_CLASS) && (MSC_Handle->unit[lun].error == MSC_OK))
usbh_msc.c:755USBH_MSC_GetLUNInfo()
(void)USBH_memcpy(info, &MSC_Handle->unit[lun], sizeof(MSC_LUNTypeDef));
usbh_msc.c:785USBH_MSC_Read()
(MSC_Handle->unit[lun].state != MSC_IDLE))
usbh_msc.c:791USBH_MSC_Read()
MSC_Handle->unit[lun].state = MSC_READ;
usbh_msc.c:832USBH_MSC_Write()
(MSC_Handle->unit[lun].state != MSC_IDLE))
usbh_msc.c:838USBH_MSC_Write()
MSC_Handle->unit[lun].state = MSC_WRITE;
usbh_msc_scsi.c:345USBH_MSC_SCSI_Write()
MSC_Handle->hbot.cbw.field.DataTransferLength = length * MSC_Handle->unit[0].capacity.block_size;
usbh_msc_scsi.c:405USBH_MSC_SCSI_Read()
MSC_Handle->hbot.cbw.field.DataTransferLength = length * MSC_Handle->unit[0].capacity.block_size;

Data Use

Type of _MSC_Process::unit
_MSC_Process::unit
all items filtered out