STM32_USB_Host_Library
_USBH_HandleTypeDef::device
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
_USBH_HandleTypeDef::device
_USBH_HandleTypeDef::device field
Syntax
from
usbh_def.h:470
USBH_DeviceTypeDef
device
;
References
Location
Referrer
Text
usbh_def.h:470
USBH_DeviceTypeDef
device
;
usbh_audio.c:286
USBH_AUDIO_InterfaceInit()
phost
->
device
.
address
,
usbh_audio.c:287
USBH_AUDIO_InterfaceInit()
phost
->
device
.
speed
,
usbh_audio.c:303
USBH_AUDIO_InterfaceInit()
phost
->
device
.
address
,
usbh_audio.c:304
USBH_AUDIO_InterfaceInit()
phost
->
device
.
speed
,
usbh_audio.c:319
USBH_AUDIO_InterfaceInit()
phost
->
device
.
address
,
usbh_audio.c:320
USBH_AUDIO_InterfaceInit()
phost
->
device
.
speed
,
usbh_audio.c:761
USBH_AUDIO_FindAudioStreamingIN()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
AC_CLASS
)
&&
usbh_audio.c:762
USBH_AUDIO_FindAudioStreamingIN()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceSubClass
==
USB_SUBCLASS_AUDIOSTREAMING
)
)
usbh_audio.c:764
USBH_AUDIO_FindAudioStreamingIN()
if
(
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
&&
usbh_audio.c:765
USBH_AUDIO_FindAudioStreamingIN()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
>
0U
)
)
usbh_audio.c:767
USBH_AUDIO_FindAudioStreamingIN()
AUDIO_Handle
->
stream_in
[
alt_settings
]
.
Ep
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_audio.c:768
USBH_AUDIO_FindAudioStreamingIN()
AUDIO_Handle
->
stream_in
[
alt_settings
]
.
EpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_audio.c:769
USBH_AUDIO_FindAudioStreamingIN()
AUDIO_Handle
->
stream_in
[
alt_settings
]
.
interface
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceNumber
;
usbh_audio.c:770
USBH_AUDIO_FindAudioStreamingIN()
AUDIO_Handle
->
stream_in
[
alt_settings
]
.
AltSettings
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bAlternateSetting
;
usbh_audio.c:771
USBH_AUDIO_FindAudioStreamingIN()
AUDIO_Handle
->
stream_in
[
alt_settings
]
.
Poll
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bInterval
;
usbh_audio.c:803
USBH_AUDIO_FindAudioStreamingOUT()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
AC_CLASS
)
&&
usbh_audio.c:804
USBH_AUDIO_FindAudioStreamingOUT()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceSubClass
==
USB_SUBCLASS_AUDIOSTREAMING
)
)
usbh_audio.c:806
USBH_AUDIO_FindAudioStreamingOUT()
if
(
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
==
0x00U
)
&&
usbh_audio.c:807
USBH_AUDIO_FindAudioStreamingOUT()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
>
0U
)
)
usbh_audio.c:809
USBH_AUDIO_FindAudioStreamingOUT()
AUDIO_Handle
->
stream_out
[
alt_settings
]
.
Ep
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_audio.c:810
USBH_AUDIO_FindAudioStreamingOUT()
AUDIO_Handle
->
stream_out
[
alt_settings
]
.
EpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_audio.c:811
USBH_AUDIO_FindAudioStreamingOUT()
AUDIO_Handle
->
stream_out
[
alt_settings
]
.
interface
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceNumber
;
usbh_audio.c:812
USBH_AUDIO_FindAudioStreamingOUT()
AUDIO_Handle
->
stream_out
[
alt_settings
]
.
AltSettings
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bAlternateSetting
;
usbh_audio.c:813
USBH_AUDIO_FindAudioStreamingOUT()
AUDIO_Handle
->
stream_out
[
alt_settings
]
.
Poll
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bInterval
;
usbh_audio.c:850
USBH_AUDIO_FindHIDControl()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
0x03U
)
&&
/*HID*/
usbh_audio.c:851
USBH_AUDIO_FindHIDControl()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
>
0U
)
)
usbh_audio.c:853
USBH_AUDIO_FindHIDControl()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
==
0x80U
)
usbh_audio.c:855
USBH_AUDIO_FindHIDControl()
AUDIO_Handle
->
control
.
Ep
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_audio.c:856
USBH_AUDIO_FindHIDControl()
AUDIO_Handle
->
control
.
EpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_audio.c:857
USBH_AUDIO_FindHIDControl()
AUDIO_Handle
->
control
.
interface
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceNumber
;
usbh_audio.c:858
USBH_AUDIO_FindHIDControl()
AUDIO_Handle
->
control
.
Poll
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bInterval
;
usbh_audio.c:885
USBH_AUDIO_ParseCSDescriptors()
pdesc
=
(
USBH_DescHeader_t
*
)
(
void
*
)
(
phost
->
device
.
CfgDesc_Raw
)
;
usbh_audio.c:893
USBH_AUDIO_ParseCSDescriptors()
while
(
ptr
<
phost
->
device
.
CfgDesc
.
wTotalLength
)
usbh_audio.c:907
USBH_AUDIO_ParseCSDescriptors()
if
(
itf_number
<=
phost
->
device
.
CfgDesc
.
bNumInterfaces
)
usbh_audio.c:918
USBH_AUDIO_ParseCSDescriptors()
phost
->
device
.
CfgDesc
.
Itf_Desc
[
itf_index
]
.
bInterfaceSubClass
,
usbh_cdc.c:187
USBH_CDC_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_cdc.c:189
USBH_CDC_InterfaceInit()
CDC_Handle
->
CommItf
.
NotifEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_cdc.c:190
USBH_CDC_InterfaceInit()
CDC_Handle
->
CommItf
.
NotifEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_cdc.c:198
USBH_CDC_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_INTR
,
usbh_cdc.c:213
USBH_CDC_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_cdc.c:215
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
InEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_cdc.c:216
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
InEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_cdc.c:220
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
OutEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_cdc.c:221
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
OutEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_cdc.c:224
USBH_CDC_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_cdc.c:226
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
InEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
;
usbh_cdc.c:227
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
InEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
wMaxPacketSize
;
usbh_cdc.c:231
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
OutEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
;
usbh_cdc.c:232
USBH_CDC_InterfaceInit()
CDC_Handle
->
DataItf
.
OutEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
wMaxPacketSize
;
usbh_cdc.c:243
USBH_CDC_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_BULK
,
usbh_cdc.c:248
USBH_CDC_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_BULK
,
usbh_core.c:117
USBH_Init()
phost
->
device
.
PortEnabled
=
0U
;
usbh_core.c:118
USBH_Init()
phost
->
device
.
is_connected
=
0U
;
usbh_core.c:119
USBH_Init()
phost
->
device
.
is_disconnected
=
0U
;
usbh_core.c:120
USBH_Init()
phost
->
device
.
is_ReEnumerated
=
0U
;
usbh_core.c:182
USBH_DeInit()
phost
->
device
.
PortEnabled
=
0U
;
usbh_core.c:183
USBH_DeInit()
phost
->
device
.
is_connected
=
0U
;
usbh_core.c:184
USBH_DeInit()
phost
->
device
.
is_disconnected
=
0U
;
usbh_core.c:185
USBH_DeInit()
phost
->
device
.
is_ReEnumerated
=
0U
;
usbh_core.c:186
USBH_DeInit()
phost
->
device
.
RstCnt
=
0U
;
usbh_core.c:187
USBH_DeInit()
phost
->
device
.
EnumCnt
=
0U
;
usbh_core.c:232
DeInitStateMachine()
phost
->
device
.
Data
[
i
]
=
0U
;
usbh_core.c:244
DeInitStateMachine()
phost
->
device
.
address
=
USBH_ADDRESS_DEFAULT
;
usbh_core.c:245
DeInitStateMachine()
phost
->
device
.
speed
=
(
uint8_t
)
USBH_SPEED_FULL
;
usbh_core.c:246
DeInitStateMachine()
phost
->
device
.
RstCnt
=
0U
;
usbh_core.c:247
DeInitStateMachine()
phost
->
device
.
EnumCnt
=
0U
;
usbh_core.c:250
DeInitStateMachine()
USBH_memset
(
&
phost
->
device
.
CfgDesc_Raw
,
0
,
sizeof
(
phost
->
device
.
CfgDesc_Raw
)
)
;
usbh_core.c:251
DeInitStateMachine()
USBH_memset
(
&
phost
->
device
.
Data
,
0
,
sizeof
(
phost
->
device
.
Data
)
)
;
usbh_core.c:252
DeInitStateMachine()
USBH_memset
(
&
phost
->
device
.
DevDesc
,
0
,
sizeof
(
phost
->
device
.
DevDesc
)
)
;
usbh_core.c:253
DeInitStateMachine()
USBH_memset
(
&
phost
->
device
.
CfgDesc
,
0
,
sizeof
(
phost
->
device
.
CfgDesc
)
)
;
usbh_core.c:305
USBH_SelectInterface()
if
(
interface
<
phost
->
device
.
CfgDesc
.
bNumInterfaces
)
usbh_core.c:307
USBH_SelectInterface()
phost
->
device
.
current_interface
=
interface
;
usbh_core.c:309
USBH_SelectInterface()
USBH_UsrLog
(
"Class : %xh"
,
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
)
;
usbh_core.c:310
USBH_SelectInterface()
USBH_UsrLog
(
"SubClass : %xh"
,
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceSubClass
)
;
usbh_core.c:311
USBH_SelectInterface()
USBH_UsrLog
(
"Protocol : %xh"
,
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceProtocol
)
;
usbh_core.c:332
USBH_GetActiveClass()
return
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
0
]
.
bInterfaceClass
)
;
usbh_core.c:353
USBH_FindInterface()
pcfg
=
&
phost
->
device
.
CfgDesc
;
usbh_core.c:386
USBH_FindInterfaceIndex()
pcfg
=
&
phost
->
device
.
CfgDesc
;
usbh_core.c:451
USBH_ReEnumerate()
phost
->
device
.
is_ReEnumerated
=
1U
;
usbh_core.c:456
USBH_ReEnumerate()
phost
->
device
.
is_disconnected
=
1U
;
usbh_core.c:484
USBH_Process()
if
(
phost
->
device
.
is_disconnected
==
1U
)
usbh_core.c:493
USBH_Process()
if
(
(
phost
->
device
.
is_connected
)
!=
0U
)
usbh_core.c:503
USBH_Process()
phost
->
device
.
address
=
USBH_ADDRESS_DEFAULT
;
usbh_core.c:519
USBH_Process()
if
(
phost
->
device
.
PortEnabled
==
1U
)
usbh_core.c:522
USBH_Process()
phost
->
device
.
RstCnt
=
0U
;
usbh_core.c:529
USBH_Process()
phost
->
device
.
RstCnt
++
;
usbh_core.c:530
USBH_Process()
if
(
phost
->
device
.
RstCnt
>
3U
)
usbh_core.c:567
USBH_Process()
phost
->
device
.
speed
=
(
uint8_t
)
USBH_LL_GetSpeed
(
phost
)
;
usbh_core.c:576
USBH_Process()
phost
->
device
.
address
,
phost
->
device
.
speed
,
usbh_core.c:581
USBH_Process()
phost
->
device
.
address
,
phost
->
device
.
speed
,
usbh_core.c:602
USBH_Process()
phost
->
device
.
current_interface
=
0U
;
usbh_core.c:604
USBH_Process()
if
(
phost
->
device
.
DevDesc
.
bNumConfigurations
==
1U
)
usbh_core.c:646
USBH_Process()
if
(
USBH_SetCfg
(
phost
,
(
uint16_t
)
phost
->
device
.
CfgDesc
.
bConfigurationValue
)
==
USBH_OK
)
usbh_core.c:664
USBH_Process()
if
(
(
(
phost
->
device
.
CfgDesc
.
bmAttributes
)
&
(
1U
<
<
5
)
)
!=
0U
)
usbh_core.c:710
USBH_Process()
if
(
phost
->
pClass
[
idx
]
->
ClassCode
==
phost
->
device
.
CfgDesc
.
Itf_Desc
[
0
]
.
bInterfaceClass
)
usbh_core.c:794
USBH_Process()
phost
->
device
.
is_disconnected
=
0U
;
usbh_core.c:811
USBH_Process()
if
(
phost
->
device
.
is_ReEnumerated
==
1U
)
usbh_core.c:813
USBH_Process()
phost
->
device
.
is_ReEnumerated
=
0U
;
usbh_core.c:860
USBH_HandleEnum()
phost
->
Control
.
pipe_size
=
phost
->
device
.
DevDesc
.
bMaxPacketSize
;
usbh_core.c:865
USBH_HandleEnum()
(
void
)
USBH_OpenPipe
(
phost
,
phost
->
Control
.
pipe_in
,
0x80U
,
phost
->
device
.
address
,
usbh_core.c:866
USBH_HandleEnum()
phost
->
device
.
speed
,
USBH_EP_CONTROL
,
usbh_core.c:870
USBH_HandleEnum()
(
void
)
USBH_OpenPipe
(
phost
,
phost
->
Control
.
pipe_out
,
0x00U
,
phost
->
device
.
address
,
usbh_core.c:871
USBH_HandleEnum()
phost
->
device
.
speed
,
USBH_EP_CONTROL
,
usbh_core.c:877
USBH_HandleEnum()
phost
->
device
.
EnumCnt
++
;
usbh_core.c:878
USBH_HandleEnum()
if
(
phost
->
device
.
EnumCnt
>
3U
)
usbh_core.c:905
USBH_HandleEnum()
USBH_UsrLog
(
"PID: %xh"
,
phost
->
device
.
DevDesc
.
idProduct
)
;
usbh_core.c:906
USBH_HandleEnum()
USBH_UsrLog
(
"VID: %xh"
,
phost
->
device
.
DevDesc
.
idVendor
)
;
usbh_core.c:913
USBH_HandleEnum()
phost
->
device
.
EnumCnt
++
;
usbh_core.c:914
USBH_HandleEnum()
if
(
phost
->
device
.
EnumCnt
>
3U
)
usbh_core.c:943
USBH_HandleEnum()
phost
->
device
.
address
=
USBH_DEVICE_ADDRESS
;
usbh_core.c:946
USBH_HandleEnum()
USBH_UsrLog
(
"Address (#%d) assigned."
,
phost
->
device
.
address
)
;
usbh_core.c:950
USBH_HandleEnum()
(
void
)
USBH_OpenPipe
(
phost
,
phost
->
Control
.
pipe_in
,
0x80U
,
phost
->
device
.
address
,
usbh_core.c:951
USBH_HandleEnum()
phost
->
device
.
speed
,
USBH_EP_CONTROL
,
usbh_core.c:955
USBH_HandleEnum()
(
void
)
USBH_OpenPipe
(
phost
,
phost
->
Control
.
pipe_out
,
0x00U
,
phost
->
device
.
address
,
usbh_core.c:956
USBH_HandleEnum()
phost
->
device
.
speed
,
USBH_EP_CONTROL
,
usbh_core.c:984
USBH_HandleEnum()
phost
->
device
.
EnumCnt
++
;
usbh_core.c:985
USBH_HandleEnum()
if
(
phost
->
device
.
EnumCnt
>
3U
)
usbh_core.c:1010
USBH_HandleEnum()
ReqStatus
=
USBH_Get_CfgDesc
(
phost
,
phost
->
device
.
CfgDesc
.
wTotalLength
)
;
usbh_core.c:1018
USBH_HandleEnum()
phost
->
device
.
EnumCnt
++
;
usbh_core.c:1019
USBH_HandleEnum()
if
(
phost
->
device
.
EnumCnt
>
3U
)
usbh_core.c:1043
USBH_HandleEnum()
if
(
phost
->
device
.
DevDesc
.
iManufacturer
!=
0U
)
usbh_core.c:1046
USBH_HandleEnum()
ReqStatus
=
USBH_Get_StringDesc
(
phost
,
phost
->
device
.
DevDesc
.
iManufacturer
,
usbh_core.c:1047
USBH_HandleEnum()
phost
->
device
.
Data
,
0xFFU
)
;
usbh_core.c:1051
USBH_HandleEnum()
USBH_UsrLog
(
"Manufacturer : %s"
,
(
char
*
)
(
void
*
)
phost
->
device
.
Data
)
;
usbh_core.c:1099
USBH_HandleEnum()
if
(
phost
->
device
.
DevDesc
.
iProduct
!=
0U
)
usbh_core.c:1102
USBH_HandleEnum()
ReqStatus
=
USBH_Get_StringDesc
(
phost
,
phost
->
device
.
DevDesc
.
iProduct
,
usbh_core.c:1103
USBH_HandleEnum()
phost
->
device
.
Data
,
0xFFU
)
;
usbh_core.c:1107
USBH_HandleEnum()
USBH_UsrLog
(
"Product : %s"
,
(
char
*
)
(
void
*
)
phost
->
device
.
Data
)
;
usbh_core.c:1146
USBH_HandleEnum()
if
(
phost
->
device
.
DevDesc
.
iSerialNumber
!=
0U
)
usbh_core.c:1149
USBH_HandleEnum()
ReqStatus
=
USBH_Get_StringDesc
(
phost
,
phost
->
device
.
DevDesc
.
iSerialNumber
,
usbh_core.c:1150
USBH_HandleEnum()
phost
->
device
.
Data
,
0xFFU
)
;
usbh_core.c:1154
USBH_HandleEnum()
USBH_UsrLog
(
"Serial Number : %s"
,
(
char
*
)
(
void
*
)
phost
->
device
.
Data
)
;
usbh_core.c:1229
USBH_LL_PortEnabled()
phost
->
device
.
PortEnabled
=
1U
;
usbh_core.c:1252
USBH_LL_PortDisabled()
phost
->
device
.
PortEnabled
=
0U
;
usbh_core.c:1266
USBH_IsPortEnabled()
return
(
phost
->
device
.
PortEnabled
)
;
usbh_core.c:1278
USBH_LL_Connect()
phost
->
device
.
is_connected
=
1U
;
usbh_core.c:1279
USBH_LL_Connect()
phost
->
device
.
is_disconnected
=
0U
;
usbh_core.c:1280
USBH_LL_Connect()
phost
->
device
.
is_ReEnumerated
=
0U
;
usbh_core.c:1305
USBH_LL_Disconnect()
phost
->
device
.
is_disconnected
=
1U
;
usbh_core.c:1306
USBH_LL_Disconnect()
phost
->
device
.
is_connected
=
0U
;
usbh_core.c:1307
USBH_LL_Disconnect()
phost
->
device
.
PortEnabled
=
0U
;
usbh_ctlreq.c:100
USBH_Get_DevDesc()
if
(
length
>
sizeof
(
phost
->
device
.
Data
)
)
usbh_ctlreq.c:108
USBH_Get_DevDesc()
USB_DESC_DEVICE
,
phost
->
device
.
Data
,
length
)
;
usbh_ctlreq.c:113
USBH_Get_DevDesc()
status
=
USBH_ParseDevDesc
(
phost
,
phost
->
device
.
Data
,
length
)
;
usbh_ctlreq.c:132
USBH_Get_CfgDesc()
uint8_t
*
pData
=
phost
->
device
.
CfgDesc_Raw
;
usbh_ctlreq.c:134
USBH_Get_CfgDesc()
if
(
length
>
sizeof
(
phost
->
device
.
CfgDesc_Raw
)
)
usbh_ctlreq.c:167
USBH_Get_StringDesc()
if
(
(
length
>
sizeof
(
phost
->
device
.
Data
)
)
||
(
buff
==
NULL
)
)
usbh_ctlreq.c:176
USBH_Get_StringDesc()
phost
->
device
.
Data
,
length
)
;
usbh_ctlreq.c:181
USBH_Get_StringDesc()
USBH_ParseStringDesc
(
phost
->
device
.
Data
,
buff
,
length
)
;
usbh_ctlreq.c:357
USBH_ParseDevDesc()
USBH_DevDescTypeDef
*
dev_desc
=
&
phost
->
device
.
DevDesc
;
usbh_ctlreq.c:373
USBH_ParseDevDesc()
if
(
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_HIGH
)
||
usbh_ctlreq.c:374
USBH_ParseDevDesc()
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_FULL
)
)
usbh_ctlreq.c:391
USBH_ParseDevDesc()
else
if
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_LOW
)
usbh_ctlreq.c:431
USBH_ParseCfgDesc()
USBH_CfgDescTypeDef
*
cfg_desc
=
&
phost
->
device
.
CfgDesc
;
usbh_ctlreq.c:585
USBH_ParseEPDesc()
if
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_HIGH
)
usbh_ctlreq.c:615
USBH_ParseEPDesc()
else
if
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_FULL
)
usbh_ctlreq.c:648
USBH_ParseEPDesc()
else
if
(
phost
->
device
.
speed
==
(
uint8_t
)
USBH_SPEED_LOW
)
usbh_hid.c:176
USBH_HID_InterfaceInit()
if
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceProtocol
==
HID_KEYBRD_BOOT_CODE
)
usbh_hid.c:181
USBH_HID_InterfaceInit()
else
if
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceProtocol
==
HID_MOUSE_BOOT_CODE
)
usbh_hid.c:194
USBH_HID_InterfaceInit()
HID_Handle
->
ep_addr
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
;
usbh_hid.c:195
USBH_HID_InterfaceInit()
HID_Handle
->
length
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_hid.c:196
USBH_HID_InterfaceInit()
HID_Handle
->
poll
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bInterval
;
usbh_hid.c:206
USBH_HID_InterfaceInit()
max_ep
=
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bNumEndpoints
<=
USBH_MAX_NUM_ENDPOINTS
)
?
usbh_hid.c:207
USBH_HID_InterfaceInit()
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bNumEndpoints
:
USBH_MAX_NUM_ENDPOINTS
)
;
usbh_hid.c:213
USBH_HID_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
num
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_hid.c:215
USBH_HID_InterfaceInit()
HID_Handle
->
InEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
num
]
.
bEndpointAddress
)
;
usbh_hid.c:217
USBH_HID_InterfaceInit()
ep_mps
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
num
]
.
wMaxPacketSize
;
usbh_hid.c:220
USBH_HID_InterfaceInit()
(
void
)
USBH_OpenPipe
(
phost
,
HID_Handle
->
InPipe
,
HID_Handle
->
InEp
,
phost
->
device
.
address
,
usbh_hid.c:221
USBH_HID_InterfaceInit()
phost
->
device
.
speed
,
USB_EP_TYPE_INTR
,
ep_mps
)
;
usbh_hid.c:227
USBH_HID_InterfaceInit()
HID_Handle
->
OutEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
num
]
.
bEndpointAddress
)
;
usbh_hid.c:229
USBH_HID_InterfaceInit()
ep_mps
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
num
]
.
wMaxPacketSize
;
usbh_hid.c:232
USBH_HID_InterfaceInit()
(
void
)
USBH_OpenPipe
(
phost
,
HID_Handle
->
OutPipe
,
HID_Handle
->
OutEp
,
phost
->
device
.
address
,
usbh_hid.c:233
USBH_HID_InterfaceInit()
phost
->
device
.
speed
,
USB_EP_TYPE_INTR
,
ep_mps
)
;
usbh_hid.c:295
USBH_HID_ClassRequest()
USBH_HID_ParseHIDDesc
(
&
HID_Handle
->
HID_Desc
,
phost
->
device
.
CfgDesc_Raw
)
;
usbh_hid.c:553
USBH_HID_GetHIDReportDescriptor()
if
(
length
>
sizeof
(
phost
->
device
.
Data
)
)
usbh_hid.c:562
USBH_HID_GetHIDReportDescriptor()
phost
->
device
.
Data
,
usbh_hid.c:588
USBH_HID_GetHIDDescriptor()
if
(
length
>
sizeof
(
phost
->
device
.
Data
)
)
usbh_hid.c:597
USBH_HID_GetHIDDescriptor()
phost
->
device
.
Data
,
usbh_hid.c:772
USBH_HID_GetDeviceType()
InterfaceProtocol
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
phost
->
device
.
current_interface
]
.
bInterfaceProtocol
;
usbh_hid_keybd.c:354
USBH_HID_KeybdInit()
if
(
(
HID_QUEUE_SIZE
*
sizeof
(
keybd_report_data
)
)
>
sizeof
(
phost
->
device
.
Data
)
)
usbh_hid_keybd.c:360
USBH_HID_KeybdInit()
USBH_HID_FifoInit
(
&
HID_Handle
->
fifo
,
phost
->
device
.
Data
,
(
uint16_t
)
(
HID_QUEUE_SIZE
*
sizeof
(
keybd_report_data
)
)
)
;
usbh_hid_mouse.c:203
USBH_HID_MouseInit()
if
(
(
HID_QUEUE_SIZE
*
sizeof
(
mouse_report_data
)
)
>
sizeof
(
phost
->
device
.
Data
)
)
usbh_hid_mouse.c:209
USBH_HID_MouseInit()
USBH_HID_FifoInit
(
&
HID_Handle
->
fifo
,
phost
->
device
.
Data
,
(
uint16_t
)
(
HID_QUEUE_SIZE
*
sizeof
(
mouse_report_data
)
)
)
;
usbh_ioreq.c:123
USBH_CtlSendData()
if
(
phost
->
device
.
speed
!=
USBH_SPEED_HIGH
)
usbh_ioreq.c:183
USBH_BulkSendData()
if
(
phost
->
device
.
speed
!=
USBH_SPEED_HIGH
)
usbh_msc.c:183
USBH_MSC_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_msc.c:185
USBH_MSC_InterfaceInit()
MSC_Handle
->
InEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
)
;
usbh_msc.c:186
USBH_MSC_InterfaceInit()
MSC_Handle
->
InEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_msc.c:190
USBH_MSC_InterfaceInit()
MSC_Handle
->
OutEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
bEndpointAddress
)
;
usbh_msc.c:191
USBH_MSC_InterfaceInit()
MSC_Handle
->
OutEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
0
]
.
wMaxPacketSize
;
usbh_msc.c:194
USBH_MSC_InterfaceInit()
if
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
usbh_msc.c:196
USBH_MSC_InterfaceInit()
MSC_Handle
->
InEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
)
;
usbh_msc.c:197
USBH_MSC_InterfaceInit()
MSC_Handle
->
InEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
wMaxPacketSize
;
usbh_msc.c:201
USBH_MSC_InterfaceInit()
MSC_Handle
->
OutEp
=
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
bEndpointAddress
)
;
usbh_msc.c:202
USBH_MSC_InterfaceInit()
MSC_Handle
->
OutEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
1
]
.
wMaxPacketSize
;
usbh_msc.c:217
USBH_MSC_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
usbh_msc.c:228
USBH_MSC_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_BULK
,
usbh_msc.c:783
USBH_MSC_Read()
if
(
(
phost
->
device
.
is_connected
==
0U
)
||
usbh_msc.c:800
USBH_MSC_Read()
if
(
(
(
phost
->
Timer
-
timeout
)
>
(
10000U
*
length
)
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_msc.c:830
USBH_MSC_Write()
if
(
(
phost
->
device
.
is_connected
==
0U
)
||
usbh_msc.c:846
USBH_MSC_Write()
if
(
(
(
phost
->
Timer
-
timeout
)
>
(
10000U
*
length
)
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:180
USBH_MTP_InterfaceInit()
MTP_Handle
->
NotificationEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
;
usbh_mtp.c:181
USBH_MTP_InterfaceInit()
MTP_Handle
->
NotificationEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
;
usbh_mtp.c:183
USBH_MTP_InterfaceInit()
MTP_Handle
->
events
.
poll
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bInterval
;
usbh_mtp.c:187
USBH_MTP_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_INTR
,
usbh_mtp.c:200
USBH_MTP_InterfaceInit()
MTP_Handle
->
DataInEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
;
usbh_mtp.c:201
USBH_MTP_InterfaceInit()
MTP_Handle
->
DataInEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
;
usbh_mtp.c:206
USBH_MTP_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_BULK
,
usbh_mtp.c:219
USBH_MTP_InterfaceInit()
MTP_Handle
->
DataOutEp
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
;
usbh_mtp.c:220
USBH_MTP_InterfaceInit()
MTP_Handle
->
DataOutEpSize
=
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
;
usbh_mtp.c:225
USBH_MTP_InterfaceInit()
phost
->
device
.
address
,
phost
->
device
.
speed
,
USB_EP_TYPE_BULK
,
usbh_mtp.c:248
MTP_FindCtlEndpoint()
if
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
USB_MTP_CLASS
)
usbh_mtp.c:252
MTP_FindCtlEndpoint()
if
(
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
&&
usbh_mtp.c:253
MTP_FindCtlEndpoint()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
>
0U
)
&&
usbh_mtp.c:254
MTP_FindCtlEndpoint()
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bmAttributes
&
USBH_EP_INTERRUPT
)
==
USBH_EP_INTERRUPT
)
)
usbh_mtp.c:276
MTP_FindDataOutEndpoint()
if
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
USB_MTP_CLASS
)
usbh_mtp.c:281
MTP_FindDataOutEndpoint()
if
(
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
&
0x80U
)
==
0U
)
&&
usbh_mtp.c:282
MTP_FindDataOutEndpoint()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
>
0U
)
&&
usbh_mtp.c:283
MTP_FindDataOutEndpoint()
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bmAttributes
&
USBH_EP_BULK
)
==
USBH_EP_BULK
)
)
usbh_mtp.c:305
MTP_FindDataInEndpoint()
if
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
bInterfaceClass
==
USB_MTP_CLASS
)
usbh_mtp.c:310
MTP_FindDataInEndpoint()
if
(
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bEndpointAddress
&
0x80U
)
!=
0U
)
&&
usbh_mtp.c:311
MTP_FindDataInEndpoint()
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
wMaxPacketSize
>
0U
)
&&
usbh_mtp.c:312
MTP_FindDataInEndpoint()
(
(
phost
->
device
.
CfgDesc
.
Itf_Desc
[
interface
]
.
Ep_Desc
[
endpoint
]
.
bmAttributes
&
USBH_EP_BULK
)
==
USBH_EP_BULK
)
)
usbh_mtp.c:640
USBH_MTP_GetNumObjects()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:674
USBH_MTP_GetObjectHandles()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:702
USBH_MTP_GetObjectInfo()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:730
USBH_MTP_DeleteObject()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:759
USBH_MTP_GetObject()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:791
USBH_MTP_GetPartialObject()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:822
USBH_MTP_GetObjectPropsSupported()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:851
USBH_MTP_GetObjectPropDesc()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:881
USBH_MTP_GetObjectPropList()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:910
USBH_MTP_SendObject()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
usbh_mtp.c:1076
USBH_MTP_GetDevicePropDesc()
if
(
(
(
phost
->
Timer
-
timeout
)
>
5000U
)
||
(
phost
->
device
.
is_connected
==
0U
)
)
Data Use
Functions reading
_USBH_HandleTypeDef::device
_USBH_HandleTypeDef::device
USBH_Init()
USBH_DeInit()
DeInitStateMachine()
USBH_SelectInterface()
USBH_GetActiveClass()
USBH_FindInterface()
USBH_FindInterfaceIndex()
USBH_ReEnumerate()
USBH_Process()
USBH_HandleEnum()
USBH_LL_PortEnabled()
USBH_LL_PortDisabled()
USBH_IsPortEnabled()
USBH_LL_Connect()
USBH_LL_Disconnect()
USBH_Get_DevDesc()
USBH_Get_CfgDesc()
USBH_Get_StringDesc()
USBH_ParseDevDesc()
USBH_ParseCfgDesc()
USBH_ParseEPDesc()
USBH_CtlSendData()
USBH_BulkSendData()
USBH_MSC_InterfaceInit()
USBH_MSC_Read()
USBH_MSC_Write()
USBH_HID_InterfaceInit()
USBH_HID_ClassRequest()
USBH_HID_GetHIDReportDescriptor()
USBH_HID_GetHIDDescriptor()
USBH_HID_GetDeviceType()
USBH_HID_KeybdInit()
USBH_HID_MouseInit()
USBH_CDC_InterfaceInit()
USBH_AUDIO_InterfaceInit()
USBH_AUDIO_FindAudioStreamingIN()
USBH_AUDIO_FindAudioStreamingOUT()
USBH_AUDIO_FindHIDControl()
USBH_AUDIO_ParseCSDescriptors()
USBH_MTP_InterfaceInit()
MTP_FindCtlEndpoint()
MTP_FindDataOutEndpoint()
MTP_FindDataInEndpoint()
USBH_MTP_GetNumObjects()
USBH_MTP_GetObjectHandles()
USBH_MTP_GetObjectInfo()
USBH_MTP_DeleteObject()
USBH_MTP_GetObject()
USBH_MTP_GetPartialObject()
USBH_MTP_GetObjectPropsSupported()
USBH_MTP_GetObjectPropDesc()
USBH_MTP_GetObjectPropList()
USBH_MTP_SendObject()
USBH_MTP_GetDevicePropDesc()
all items filtered out
Type of
_USBH_HandleTypeDef::device
_USBH_HandleTypeDef::device
USBH_DeviceTypeDef
all items filtered out