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

_MSC_Process::current_lun field

Syntax

uint16_t current_lun;

References

LocationReferrerText
usbh_msc.h:123
uint16_t current_lun;
usbh_msc.c:349USBH_MSC_Process()
if (MSC_Handle->current_lun < MSC_Handle->max_lun)
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:357USBH_MSC_Process()
USBH_UsrLog("LUN #%d: ", MSC_Handle->current_lun);
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:387USBH_MSC_Process()
ready_status = USBH_MSC_SCSI_TestUnitReady(phost, (uint8_t)MSC_Handle->current_lun);
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:445USBH_MSC_Process()
MSC_Handle->current_lun++;
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:481USBH_MSC_Process()
MSC_Handle->current_lun++;
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:499USBH_MSC_Process()
MSC_Handle->current_lun++;
usbh_msc.c:517USBH_MSC_Process()
MSC_Handle->current_lun = 0U;

Data Use

Functions writing _MSC_Process::current_lun
Functions reading _MSC_Process::current_lun
all items filtered out
_MSC_Process::current_lun
all items filtered out
Type of _MSC_Process::current_lun
_MSC_Process::current_lun
uint16_t
all items filtered out