STM32_USB_Host_Library
_MSC_Process::unit
is only used within STM32_USB_Host_Library.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
STM32_USB_Host_Library
_MSC_Process::unit
_MSC_Process::unit field
Syntax
from
usbh_msc.h:122
MSC_LUNTypeDef
unit
[
MAX_SUPPORTED_LUN
]
;
References
Location
Referrer
Text
usbh_msc.h:122
MSC_LUNTypeDef
unit
[
MAX_SUPPORTED_LUN
]
;
usbh_msc.c:311
USBH_MSC_ClassRequest()
MSC_Handle
->
unit
[
i
]
.
prev_ready_state
=
USBH_FAIL
;
usbh_msc.c:312
USBH_MSC_ClassRequest()
MSC_Handle
->
unit
[
i
]
.
state_changed
=
0U
;
usbh_msc.c:352
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_NOT_READY
;
usbh_msc.c:354
USBH_MSC_Process()
switch
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
)
usbh_msc.c:358
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_READ_INQUIRY
;
usbh_msc.c:363
USBH_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:367
USBH_MSC_Process()
USBH_UsrLog
(
"Inquiry Vendor : %s"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
inquiry
.
vendor_id
)
;
usbh_msc.c:368
USBH_MSC_Process()
USBH_UsrLog
(
"Inquiry Product : %s"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
inquiry
.
product_id
)
;
usbh_msc.c:369
USBH_MSC_Process()
USBH_UsrLog
(
"Inquiry Version : %s"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
inquiry
.
revision_id
)
;
usbh_msc.c:370
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_TEST_UNIT_READY
;
usbh_msc.c:374
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_REQUEST_SENSE
;
usbh_msc.c:380
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:381
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_ERROR
;
usbh_msc.c:391
USBH_MSC_Process()
if
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
prev_ready_state
!=
USBH_OK
)
usbh_msc.c:393
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state_changed
=
1U
;
usbh_msc.c:398
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state_changed
=
0U
;
usbh_msc.c:400
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_READ_CAPACITY10
;
usbh_msc.c:401
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_OK
;
usbh_msc.c:402
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
prev_ready_state
=
USBH_OK
;
usbh_msc.c:407
USBH_MSC_Process()
if
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
prev_ready_state
!=
USBH_FAIL
)
usbh_msc.c:409
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state_changed
=
1U
;
usbh_msc.c:414
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state_changed
=
0U
;
usbh_msc.c:416
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_REQUEST_SENSE
;
usbh_msc.c:417
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_NOT_READY
;
usbh_msc.c:418
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
prev_ready_state
=
USBH_FAIL
;
usbh_msc.c:424
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:425
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_ERROR
;
usbh_msc.c:431
USBH_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:435
USBH_MSC_Process()
if
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state_changed
==
1U
)
usbh_msc.c:438
USBH_MSC_Process()
(
unsigned
int
)
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
capacity
.
block_nbr
*
usbh_msc.c:439
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
capacity
.
block_size
)
)
;
usbh_msc.c:440
USBH_MSC_Process()
USBH_UsrLog
(
"Block number : %u"
,
(
unsigned
int
)
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
capacity
.
block_nbr
)
)
;
usbh_msc.c:441
USBH_MSC_Process()
USBH_UsrLog
(
"Block Size : %u"
,
(
unsigned
int
)
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
capacity
.
block_size
)
)
;
usbh_msc.c:443
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:444
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_OK
;
usbh_msc.c:449
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_REQUEST_SENSE
;
usbh_msc.c:455
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:456
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_ERROR
;
usbh_msc.c:462
USBH_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:466
USBH_MSC_Process()
if
(
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
sense
.
key
==
SCSI_SENSE_KEY_UNIT_ATTENTION
)
||
usbh_msc.c:467
USBH_MSC_Process()
(
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
sense
.
key
==
SCSI_SENSE_KEY_NOT_READY
)
)
usbh_msc.c:472
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_TEST_UNIT_READY
;
usbh_msc.c:477
USBH_MSC_Process()
USBH_UsrLog
(
"Sense Key : %x"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
sense
.
key
)
;
usbh_msc.c:478
USBH_MSC_Process()
USBH_UsrLog
(
"Additional Sense Code : %x"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
sense
.
asc
)
;
usbh_msc.c:479
USBH_MSC_Process()
USBH_UsrLog
(
"Additional Sense Code Qualifier: %x"
,
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
sense
.
ascq
)
;
usbh_msc.c:480
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:486
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_UNRECOVERED_ERROR
;
usbh_msc.c:492
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:493
USBH_MSC_Process()
MSC_Handle
->
unit
[
MSC_Handle
->
current_lun
]
.
error
=
MSC_ERROR
;
usbh_msc.c:570
USBH_MSC_RdWrProcess()
switch
(
MSC_Handle
->
unit
[
lun
]
.
state
)
usbh_msc.c:578
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:583
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_REQUEST_SENSE
;
usbh_msc.c:589
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_UNRECOVERED_ERROR
;
usbh_msc.c:609
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:614
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_REQUEST_SENSE
;
usbh_msc.c:620
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_UNRECOVERED_ERROR
;
usbh_msc.c:636
USBH_MSC_RdWrProcess()
scsi_status
=
USBH_MSC_SCSI_RequestSense
(
phost
,
lun
,
&
MSC_Handle
->
unit
[
lun
]
.
sense
)
;
usbh_msc.c:640
USBH_MSC_RdWrProcess()
USBH_UsrLog
(
"Sense Key : %x"
,
MSC_Handle
->
unit
[
lun
]
.
sense
.
key
)
;
usbh_msc.c:641
USBH_MSC_RdWrProcess()
USBH_UsrLog
(
"Additional Sense Code : %x"
,
MSC_Handle
->
unit
[
lun
]
.
sense
.
asc
)
;
usbh_msc.c:642
USBH_MSC_RdWrProcess()
USBH_UsrLog
(
"Additional Sense Code Qualifier: %x"
,
MSC_Handle
->
unit
[
lun
]
.
sense
.
ascq
)
;
usbh_msc.c:643
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_IDLE
;
usbh_msc.c:644
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
error
=
MSC_ERROR
;
usbh_msc.c:656
USBH_MSC_RdWrProcess()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_UNRECOVERED_ERROR
;
usbh_msc.c:731
USBH_MSC_UnitIsReady()
if
(
(
phost
->
gState
==
HOST_CLASS
)
&&
(
MSC_Handle
->
unit
[
lun
]
.
error
==
MSC_OK
)
)
usbh_msc.c:755
USBH_MSC_GetLUNInfo()
(
void
)
USBH_memcpy
(
info
,
&
MSC_Handle
->
unit
[
lun
]
,
sizeof
(
MSC_LUNTypeDef
)
)
;
usbh_msc.c:785
USBH_MSC_Read()
(
MSC_Handle
->
unit
[
lun
]
.
state
!=
MSC_IDLE
)
)
usbh_msc.c:791
USBH_MSC_Read()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_READ
;
usbh_msc.c:832
USBH_MSC_Write()
(
MSC_Handle
->
unit
[
lun
]
.
state
!=
MSC_IDLE
)
)
usbh_msc.c:838
USBH_MSC_Write()
MSC_Handle
->
unit
[
lun
]
.
state
=
MSC_WRITE
;
usbh_msc_scsi.c:345
USBH_MSC_SCSI_Write()
MSC_Handle
->
hbot
.
cbw
.
field
.
DataTransferLength
=
length
*
MSC_Handle
->
unit
[
0
]
.
capacity
.
block_size
;
usbh_msc_scsi.c:405
USBH_MSC_SCSI_Read()
MSC_Handle
->
hbot
.
cbw
.
field
.
DataTransferLength
=
length
*
MSC_Handle
->
unit
[
0
]
.
capacity
.
block_size
;
Data Use
Functions reading
_MSC_Process::unit
_MSC_Process::unit
USBH_MSC_ClassRequest()
USBH_MSC_Process()
USBH_MSC_RdWrProcess()
USBH_MSC_UnitIsReady()
USBH_MSC_GetLUNInfo()
USBH_MSC_Read()
USBH_MSC_Write()
USBH_MSC_SCSI_Write()
USBH_MSC_SCSI_Read()
all items filtered out
Type of
_MSC_Process::unit
_MSC_Process::unit
MSC_LUNTypeDef
all items filtered out