STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Modules | Data Structures | Macros | Enumerations | Functions

Modules

 PCD Exported Constants
 

Data Structures

struct  USB_OTG_CfgTypeDef
 PCD Initialization Structure definition. More...
 
struct  USB_OTG_EPTypeDef
 
struct  USB_OTG_HCTypeDef
 

Macros

#define USB_MASK_INTERRUPT(__INSTANCE__, __INTERRUPT__)    ((__INSTANCE__)->GINTMSK &= ~(__INTERRUPT__))
 
#define USB_UNMASK_INTERRUPT(__INSTANCE__, __INTERRUPT__)    ((__INSTANCE__)->GINTMSK |= (__INTERRUPT__))
 
#define CLEAR_IN_EP_INTR(__EPNUM__, __INTERRUPT__)    (USBx_INEP(__EPNUM__)->DIEPINT = (__INTERRUPT__))
 
#define CLEAR_OUT_EP_INTR(__EPNUM__, __INTERRUPT__)    (USBx_OUTEP(__EPNUM__)->DOEPINT = (__INTERRUPT__))
 

Enumerations

enum  USB_OTG_ModeTypeDef { USB_OTG_DEVICE_MODE = 0U, USB_OTG_HOST_MODE = 1U, USB_OTG_DRD_MODE = 2U }
 USB Mode definition. More...
 
enum  USB_OTG_URBStateTypeDef {
  URB_IDLE = 0U, URB_DONE, URB_NOTREADY, URB_NYET,
  URB_ERROR, URB_STALL
}
 URB States definition. More...
 
enum  USB_OTG_HCStateTypeDef {
  HC_IDLE = 0U, HC_XFRC, HC_HALTED, HC_NAK,
  HC_NYET, HC_STALL, HC_XACTERR, HC_BBLERR,
  HC_DATATGLERR
}
 Host channel States definition. More...
 

Functions

HAL_StatusTypeDef USB_CoreInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef Init)
 
HAL_StatusTypeDef USB_DevInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef Init)
 
HAL_StatusTypeDef USB_EnableGlobalInt (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_DisableGlobalInt (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_SetCurrentMode (USB_OTG_GlobalTypeDef *USBx, USB_OTG_ModeTypeDef mode)
 
HAL_StatusTypeDef USB_SetDevSpeed (USB_OTG_GlobalTypeDef *USBx, uint8_t speed)
 
HAL_StatusTypeDef USB_FlushRxFifo (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_FlushTxFifo (USB_OTG_GlobalTypeDef *USBx, uint32_t num)
 
HAL_StatusTypeDef USB_ActivateEndpoint (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_DeactivateEndpoint (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_ActivateDedicatedEndpoint (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_EPStartXfer (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma)
 
HAL_StatusTypeDef USB_EP0StartXfer (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma)
 
HAL_StatusTypeDef USB_WritePacket (USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma)
 
void * USB_ReadPacket (USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len)
 
HAL_StatusTypeDef USB_EPSetStall (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_EPClearStall (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
 
HAL_StatusTypeDef USB_SetDevAddress (USB_OTG_GlobalTypeDef *USBx, uint8_t address)
 
HAL_StatusTypeDef USB_DevConnect (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_DevDisconnect (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_StopDevice (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_ActivateSetup (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_EP0_OutStart (USB_OTG_GlobalTypeDef *USBx, uint8_t dma, uint8_t *psetup)
 
uint8_t USB_GetDevSpeed (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_GetMode (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_ReadInterrupts (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_ReadDevAllOutEpInterrupt (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_ReadDevOutEPInterrupt (USB_OTG_GlobalTypeDef *USBx, uint8_t epnum)
 
uint32_t USB_ReadDevAllInEpInterrupt (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_ReadDevInEPInterrupt (USB_OTG_GlobalTypeDef *USBx, uint8_t epnum)
 
void USB_ClearInterrupts (USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt)
 
HAL_StatusTypeDef USB_HostInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg)
 
HAL_StatusTypeDef USB_InitFSLSPClkSel (USB_OTG_GlobalTypeDef *USBx, uint8_t freq)
 
HAL_StatusTypeDef USB_ResetPort (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_DriveVbus (USB_OTG_GlobalTypeDef *USBx, uint8_t state)
 
uint32_t USB_GetHostSpeed (USB_OTG_GlobalTypeDef *USBx)
 
uint32_t USB_GetCurrentFrame (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_HC_Init (USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps)
 
HAL_StatusTypeDef USB_HC_StartXfer (USB_OTG_GlobalTypeDef *USBx, USB_OTG_HCTypeDef *hc, uint8_t dma)
 
uint32_t USB_HC_ReadInterrupt (USB_OTG_GlobalTypeDef *USBx)
 
HAL_StatusTypeDef USB_HC_Halt (USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num)
 
HAL_StatusTypeDef USB_DoPing (USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num)
 
HAL_StatusTypeDef USB_StopHost (USB_OTG_GlobalTypeDef *USBx)
 

Detailed Description

Macro Definition Documentation

#define CLEAR_IN_EP_INTR (   __EPNUM__,
  __INTERRUPT__ 
)    (USBx_INEP(__EPNUM__)->DIEPINT = (__INTERRUPT__))

Definition at line 392 of file stm32f7xx_ll_usb.h.

#define CLEAR_OUT_EP_INTR (   __EPNUM__,
  __INTERRUPT__ 
)    (USBx_OUTEP(__EPNUM__)->DOEPINT = (__INTERRUPT__))

Definition at line 393 of file stm32f7xx_ll_usb.h.

#define USB_MASK_INTERRUPT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->GINTMSK &= ~(__INTERRUPT__))

Definition at line 389 of file stm32f7xx_ll_usb.h.

#define USB_UNMASK_INTERRUPT (   __INSTANCE__,
  __INTERRUPT__ 
)    ((__INSTANCE__)->GINTMSK |= (__INTERRUPT__))

Definition at line 390 of file stm32f7xx_ll_usb.h.

Enumeration Type Documentation

Host channel States definition.

Enumerator
HC_IDLE 
HC_XFRC 
HC_HALTED 
HC_NAK 
HC_NYET 
HC_STALL 
HC_XACTERR 
HC_BBLERR 
HC_DATATGLERR 

Definition at line 86 of file stm32f7xx_ll_usb.h.

USB Mode definition.

Enumerator
USB_OTG_DEVICE_MODE 
USB_OTG_HOST_MODE 
USB_OTG_DRD_MODE 

Definition at line 62 of file stm32f7xx_ll_usb.h.

URB States definition.

Enumerator
URB_IDLE 
URB_DONE 
URB_NOTREADY 
URB_NYET 
URB_ERROR 
URB_STALL 

Definition at line 73 of file stm32f7xx_ll_usb.h.

Function Documentation

HAL_StatusTypeDef USB_ActivateDedicatedEndpoint ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_ActivateEndpoint ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_ActivateSetup ( USB_OTG_GlobalTypeDef USBx)
void USB_ClearInterrupts ( USB_OTG_GlobalTypeDef USBx,
uint32_t  interrupt 
)
HAL_StatusTypeDef USB_CoreInit ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_CfgTypeDef  Init 
)
HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_DeactivateEndpoint ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_DevConnect ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_DevDisconnect ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_DevInit ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_CfgTypeDef  Init 
)
HAL_StatusTypeDef USB_DisableGlobalInt ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_DoPing ( USB_OTG_GlobalTypeDef USBx,
uint8_t  ch_num 
)
HAL_StatusTypeDef USB_DriveVbus ( USB_OTG_GlobalTypeDef USBx,
uint8_t  state 
)
HAL_StatusTypeDef USB_EnableGlobalInt ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_EP0_OutStart ( USB_OTG_GlobalTypeDef USBx,
uint8_t  dma,
uint8_t *  psetup 
)
HAL_StatusTypeDef USB_EP0StartXfer ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep,
uint8_t  dma 
)
HAL_StatusTypeDef USB_EPClearStall ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_EPSetStall ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep 
)
HAL_StatusTypeDef USB_EPStartXfer ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_EPTypeDef ep,
uint8_t  dma 
)
HAL_StatusTypeDef USB_FlushRxFifo ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_FlushTxFifo ( USB_OTG_GlobalTypeDef USBx,
uint32_t  num 
)
uint32_t USB_GetCurrentFrame ( USB_OTG_GlobalTypeDef USBx)
uint8_t USB_GetDevSpeed ( USB_OTG_GlobalTypeDef USBx)
uint32_t USB_GetHostSpeed ( USB_OTG_GlobalTypeDef USBx)
uint32_t USB_GetMode ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_HC_Halt ( USB_OTG_GlobalTypeDef USBx,
uint8_t  hc_num 
)
HAL_StatusTypeDef USB_HC_Init ( USB_OTG_GlobalTypeDef USBx,
uint8_t  ch_num,
uint8_t  epnum,
uint8_t  dev_address,
uint8_t  speed,
uint8_t  ep_type,
uint16_t  mps 
)
uint32_t USB_HC_ReadInterrupt ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_HC_StartXfer ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_HCTypeDef hc,
uint8_t  dma 
)
HAL_StatusTypeDef USB_HostInit ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_CfgTypeDef  cfg 
)
HAL_StatusTypeDef USB_InitFSLSPClkSel ( USB_OTG_GlobalTypeDef USBx,
uint8_t  freq 
)
uint32_t USB_ReadDevAllInEpInterrupt ( USB_OTG_GlobalTypeDef USBx)
uint32_t USB_ReadDevAllOutEpInterrupt ( USB_OTG_GlobalTypeDef USBx)
uint32_t USB_ReadDevInEPInterrupt ( USB_OTG_GlobalTypeDef USBx,
uint8_t  epnum 
)
uint32_t USB_ReadDevOutEPInterrupt ( USB_OTG_GlobalTypeDef USBx,
uint8_t  epnum 
)
uint32_t USB_ReadInterrupts ( USB_OTG_GlobalTypeDef USBx)
void* USB_ReadPacket ( USB_OTG_GlobalTypeDef USBx,
uint8_t *  dest,
uint16_t  len 
)
HAL_StatusTypeDef USB_ResetPort ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_SetCurrentMode ( USB_OTG_GlobalTypeDef USBx,
USB_OTG_ModeTypeDef  mode 
)
HAL_StatusTypeDef USB_SetDevAddress ( USB_OTG_GlobalTypeDef USBx,
uint8_t  address 
)
HAL_StatusTypeDef USB_SetDevSpeed ( USB_OTG_GlobalTypeDef USBx,
uint8_t  speed 
)
HAL_StatusTypeDef USB_StopDevice ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_StopHost ( USB_OTG_GlobalTypeDef USBx)
HAL_StatusTypeDef USB_WritePacket ( USB_OTG_GlobalTypeDef USBx,
uint8_t *  src,
uint8_t  ch_ep_num,
uint16_t  len,
uint8_t  dma 
)