HAL + 0/1 examples
CodeScope will show references to USB_EPTypeDef::maxpacket from the following samples and libraries:
 
Symbols
loading...
Files
loading...

USB_EPTypeDef::maxpacket field

Endpoint Max packet size This parameter must be a number between Min_Data = 0 and Max_Data = 64KB

Syntax

uint32_t maxpacket;

Examples

USB_EPTypeDef::maxpacket is referenced by 1 libraries and example projects.

References

LocationReferrerText
stm32f4xx_ll_usb.h:151
uint32_t maxpacket; /*!< Endpoint Max packet size
stm32f4xx_hal_pcd.c:212HAL_PCD_Init()
hpcd->IN_ep[i].maxpacket = 0U;
stm32f4xx_hal_pcd.c:223HAL_PCD_Init()
hpcd->OUT_ep[i].maxpacket = 0U;
stm32f4xx_hal_pcd.c:1225HAL_PCD_IRQHandler()
hpcd->IN_ep[epnum].xfer_buff += hpcd->IN_ep[epnum].maxpacket;
stm32f4xx_hal_pcd.c:1832HAL_PCD_EP_Open()
ep->maxpacket = ep_mps;
stm32f4xx_hal_pcd.c:2199PCD_WriteEmptyTxFifo()
if (len > ep->maxpacket)
stm32f4xx_hal_pcd.c:2201PCD_WriteEmptyTxFifo()
len = ep->maxpacket;
stm32f4xx_hal_pcd.c:2212PCD_WriteEmptyTxFifo()
if (len > ep->maxpacket)
stm32f4xx_hal_pcd.c:2214PCD_WriteEmptyTxFifo()
len = ep->maxpacket;
stm32f4xx_ll_usb.c:609USB_ActivateEndpoint()
USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) |
stm32f4xx_ll_usb.c:621USB_ActivateEndpoint()
USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) |
stm32f4xx_ll_usb.c:646USB_ActivateDedicatedEndpoint()
USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) |
stm32f4xx_ll_usb.c:658USB_ActivateDedicatedEndpoint()
USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) |
stm32f4xx_ll_usb.c:792USB_EPStartXfer()
if (ep->xfer_len > ep->maxpacket)
stm32f4xx_ll_usb.c:794USB_EPStartXfer()
ep->xfer_len = ep->maxpacket;
stm32f4xx_ll_usb.c:802USB_EPStartXfer()
(((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket) << 19));
stm32f4xx_ll_usb.c:877USB_EPStartXfer()
ep->xfer_len = ep->maxpacket;
stm32f4xx_ll_usb.c:881USB_EPStartXfer()
ep->xfer_size = ep->maxpacket;
stm32f4xx_ll_usb.c:890USB_EPStartXfer()
USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket);
stm32f4xx_ll_usb.c:895USB_EPStartXfer()
pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket);
stm32f4xx_ll_usb.c:896USB_EPStartXfer()
ep->xfer_size = ep->maxpacket * pktcnt;

Data Use

Functions writing USB_EPTypeDef::maxpacket
Functions reading USB_EPTypeDef::maxpacket
all items filtered out
USB_EPTypeDef::maxpacket
Type of USB_EPTypeDef::maxpacket
USB_EPTypeDef::maxpacket
uint32_t
all items filtered out