HAL
+
0
/1 examples
SourceVu will show references to
USB_EPTypeDef::maxpacket
from the following samples and libraries:
Libraries
STM32_USB_Device_Library
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
HAL
USB_EPTypeDef::maxpacket
USB_EPTypeDef::maxpacket field
Endpoint Max packet size This parameter must be a number between Min_Data = 0 and Max_Data = 64KB
Syntax
Show:
Summary
Declaration
from
stm32f4xx_ll_usb.h:151
uint32_t
maxpacket
;
Examples
USB_EPTypeDef::maxpacket
is referenced by 1 libraries and example projects:
Libraries
STM32_USB_Device_Library
References
from
0/1
examples
Code
Location
Referrer
uint32_t
maxpacket
;
/*!< Endpoint Max packet size
stm32f4xx_ll_usb.h:151
hpcd
->
IN_ep
[
i
]
.
maxpacket
=
0U
;
stm32f4xx_hal_pcd.c:212
HAL_PCD_Init()
hpcd
->
OUT_ep
[
i
]
.
maxpacket
=
0U
;
stm32f4xx_hal_pcd.c:223
HAL_PCD_Init()
hpcd
->
IN_ep
[
epnum
]
.
xfer_buff
+=
hpcd
->
IN_ep
[
epnum
]
.
maxpacket
;
stm32f4xx_hal_pcd.c:1225
HAL_PCD_IRQHandler()
ep
->
maxpacket
=
ep_mps
;
stm32f4xx_hal_pcd.c:1832
HAL_PCD_EP_Open()
if
(
len
>
ep
->
maxpacket
)
stm32f4xx_hal_pcd.c:2199
PCD_WriteEmptyTxFifo()
len
=
ep
->
maxpacket
;
stm32f4xx_hal_pcd.c:2201
PCD_WriteEmptyTxFifo()
if
(
len
>
ep
->
maxpacket
)
stm32f4xx_hal_pcd.c:2212
PCD_WriteEmptyTxFifo()
len
=
ep
->
maxpacket
;
stm32f4xx_hal_pcd.c:2214
PCD_WriteEmptyTxFifo()
USBx_INEP
(
epnum
)
->
DIEPCTL
|=
(
ep
->
maxpacket
&
USB_OTG_DIEPCTL_MPSIZ
)
|
stm32f4xx_ll_usb.c:609
USB_ActivateEndpoint()
USBx_OUTEP
(
epnum
)
->
DOEPCTL
|=
(
ep
->
maxpacket
&
USB_OTG_DOEPCTL_MPSIZ
)
|
stm32f4xx_ll_usb.c:621
USB_ActivateEndpoint()
USBx_INEP
(
epnum
)
->
DIEPCTL
|=
(
ep
->
maxpacket
&
USB_OTG_DIEPCTL_MPSIZ
)
|
stm32f4xx_ll_usb.c:646
USB_ActivateDedicatedEndpoint()
USBx_OUTEP
(
epnum
)
->
DOEPCTL
|=
(
ep
->
maxpacket
&
USB_OTG_DOEPCTL_MPSIZ
)
|
stm32f4xx_ll_usb.c:658
USB_ActivateDedicatedEndpoint()
if
(
ep
->
xfer_len
>
ep
->
maxpacket
)
stm32f4xx_ll_usb.c:792
USB_EPStartXfer()
ep
->
xfer_len
=
ep
->
maxpacket
;
stm32f4xx_ll_usb.c:794
USB_EPStartXfer()
(
(
(
ep
->
xfer_len
+
ep
->
maxpacket
-
1U
)
/
ep
->
maxpacket
)
<
<
19
)
)
;
stm32f4xx_ll_usb.c:802
USB_EPStartXfer()
ep
->
xfer_len
=
ep
->
maxpacket
;
stm32f4xx_ll_usb.c:877
USB_EPStartXfer()
ep
->
xfer_size
=
ep
->
maxpacket
;
stm32f4xx_ll_usb.c:881
USB_EPStartXfer()
USBx_OUTEP
(
epnum
)
->
DOEPTSIZ
|=
(
USB_OTG_DOEPTSIZ_XFRSIZ
&
ep
->
maxpacket
)
;
stm32f4xx_ll_usb.c:890
USB_EPStartXfer()
pktcnt
=
(
uint16_t
)
(
(
ep
->
xfer_len
+
ep
->
maxpacket
-
1U
)
/
ep
->
maxpacket
)
;
stm32f4xx_ll_usb.c:895
USB_EPStartXfer()
ep
->
xfer_size
=
ep
->
maxpacket
*
pktcnt
;
stm32f4xx_ll_usb.c:896
USB_EPStartXfer()
Call Tree
from
0/1
examples
All items filtered out
All items filtered out
Data Use
from
0/1
examples
USB_EPTypeDef::maxpacket
is written by 2 functions and is read by 5 functions:
HAL_PCD_Init()
HAL_PCD_EP_Open()
All items filtered out
USB_EPTypeDef::maxpacket
USB_ActivateEndpoint()
USB_ActivateDedicatedEndpoint()
USB_EPStartXfer()
HAL_PCD_IRQHandler()
PCD_WriteEmptyTxFifo()
All items filtered out
Class Tree
from
0/1
examples
All items filtered out
All items filtered out
Override Tree
from
0/1
examples
All items filtered out
All items filtered out
Implementations
from
0/1
examples
All items filtered out
All items filtered out
Instances
from
0/1
examples
Lifecycle
from
0/1
examples
All items filtered out
All items filtered out