STM32_USB_Host_Library
_MSC_Process::current_lun
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::current_lun
_MSC_Process::current_lun field
Syntax
from
usbh_msc.h:123
uint16_t
current_lun
;
References
Location
Referrer
Text
usbh_msc.h:123
uint16_t
current_lun
;
usbh_msc.c:349
USBH_MSC_Process()
if
(
MSC_Handle
->
current_lun
<
MSC_Handle
->
max_lun
)
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:357
USBH_MSC_Process()
USBH_UsrLog
(
"LUN #%d: "
,
MSC_Handle
->
current_lun
)
;
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:387
USBH_MSC_Process()
ready_status
=
USBH_MSC_SCSI_TestUnitReady
(
phost
,
(
uint8_t
)
MSC_Handle
->
current_lun
)
;
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:445
USBH_MSC_Process()
MSC_Handle
->
current_lun
++
;
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:481
USBH_MSC_Process()
MSC_Handle
->
current_lun
++
;
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:499
USBH_MSC_Process()
MSC_Handle
->
current_lun
++
;
usbh_msc.c:517
USBH_MSC_Process()
MSC_Handle
->
current_lun
=
0U
;
Data Use
Functions writing
_MSC_Process::current_lun
Functions reading
_MSC_Process::current_lun
USBH_MSC_Process()
all items filtered out
_MSC_Process::current_lun
USBH_MSC_Process()
all items filtered out
Type of
_MSC_Process::current_lun
_MSC_Process::current_lun
uint16_t
all items filtered out