|
STM32F4xx_HAL_Driver
1.8.3
|
Collaboration diagram for USB Low Layer Exported Functions:Modules | |
| Initialization/de-initialization functions | |
| Initialization and Configuration functions. | |
Functions | |
| HAL_StatusTypeDef | USB_CoreInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) |
| Initializes the USB Core. More... | |
| HAL_StatusTypeDef | USB_DevInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) |
| USB_DevInit Initializes the USB_OTG controller registers for device mode. More... | |
| HAL_StatusTypeDef | USB_EnableGlobalInt (USB_OTG_GlobalTypeDef *USBx) |
| USB_EnableGlobalInt Enables the controller's Global Int in the AHB Config reg. More... | |
| HAL_StatusTypeDef | USB_DisableGlobalInt (USB_OTG_GlobalTypeDef *USBx) |
| USB_DisableGlobalInt Disable the controller's Global Int in the AHB Config reg. More... | |
| HAL_StatusTypeDef | USB_SetTurnaroundTime (USB_OTG_GlobalTypeDef *USBx, uint32_t hclk, uint8_t speed) |
| Set the USB turnaround time. More... | |
| HAL_StatusTypeDef | USB_SetCurrentMode (USB_OTG_GlobalTypeDef *USBx, USB_OTG_ModeTypeDef mode) |
| USB_SetCurrentMode Set functional mode. More... | |
| HAL_StatusTypeDef | USB_SetDevSpeed (const USB_OTG_GlobalTypeDef *USBx, uint8_t speed) |
| USB_SetDevSpeed Initializes the DevSpd field of DCFG register depending the PHY type and the enumeration speed of the device. More... | |
| HAL_StatusTypeDef | USB_FlushRxFifo (USB_OTG_GlobalTypeDef *USBx) |
| USB_FlushRxFifo Flush Rx FIFO. More... | |
| HAL_StatusTypeDef | USB_FlushTxFifo (USB_OTG_GlobalTypeDef *USBx, uint32_t num) |
| USB_FlushTxFifo Flush a Tx FIFO. More... | |
| HAL_StatusTypeDef | USB_ActivateEndpoint (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| Activate and configure an endpoint. More... | |
| HAL_StatusTypeDef | USB_DeactivateEndpoint (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| De-activate and de-initialize an endpoint. More... | |
| HAL_StatusTypeDef | USB_ActivateDedicatedEndpoint (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| Activate and configure a dedicated endpoint. More... | |
| HAL_StatusTypeDef | USB_DeactivateDedicatedEndpoint (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| De-activate and de-initialize a dedicated endpoint. More... | |
| HAL_StatusTypeDef | USB_EPStartXfer (USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma) |
| USB_EPStartXfer : setup and starts a transfer over an EP. More... | |
| HAL_StatusTypeDef | USB_WritePacket (const USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma) |
| USB_WritePacket : Writes a packet into the Tx FIFO associated with the EP/channel. More... | |
| void * | USB_ReadPacket (const USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len) |
| USB_ReadPacket : read a packet from the RX FIFO. More... | |
| HAL_StatusTypeDef | USB_EPSetStall (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| USB_EPSetStall : set a stall condition over an EP. More... | |
| HAL_StatusTypeDef | USB_EPClearStall (const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) |
| USB_EPClearStall : Clear a stall condition over an EP. More... | |
| HAL_StatusTypeDef | USB_EPStopXfer (const USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) |
| USB_EPStoptXfer Stop transfer on an EP. More... | |
| HAL_StatusTypeDef | USB_SetDevAddress (const USB_OTG_GlobalTypeDef *USBx, uint8_t address) |
| USB_SetDevAddress : Stop the usb device mode. More... | |
| HAL_StatusTypeDef | USB_DevConnect (const USB_OTG_GlobalTypeDef *USBx) |
| USB_DevConnect : Connect the USB device by enabling Rpu. More... | |
| HAL_StatusTypeDef | USB_DevDisconnect (const USB_OTG_GlobalTypeDef *USBx) |
| USB_DevDisconnect : Disconnect the USB device by disabling Rpu. More... | |
| HAL_StatusTypeDef | USB_StopDevice (USB_OTG_GlobalTypeDef *USBx) |
| USB_StopDevice : Stop the usb device mode. More... | |
| HAL_StatusTypeDef | USB_ActivateSetup (const USB_OTG_GlobalTypeDef *USBx) |
| Activate EP0 for Setup transactions. More... | |
| HAL_StatusTypeDef | USB_EP0_OutStart (const USB_OTG_GlobalTypeDef *USBx, uint8_t dma, const uint8_t *psetup) |
| Prepare the EP0 to start the first control setup. More... | |
| uint8_t | USB_GetDevSpeed (const USB_OTG_GlobalTypeDef *USBx) |
| USB_GetDevSpeed Return the Dev Speed. More... | |
| uint32_t | USB_GetMode (const USB_OTG_GlobalTypeDef *USBx) |
| Returns USB core mode. More... | |
| uint32_t | USB_ReadInterrupts (USB_OTG_GlobalTypeDef const *USBx) |
| USB_ReadInterrupts: return the global USB interrupt status. More... | |
| uint32_t | USB_ReadChInterrupts (const USB_OTG_GlobalTypeDef *USBx, uint8_t chnum) |
| USB_ReadChInterrupts: return USB channel interrupt status. More... | |
| uint32_t | USB_ReadDevAllOutEpInterrupt (const USB_OTG_GlobalTypeDef *USBx) |
| USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status. More... | |
| uint32_t | USB_ReadDevOutEPInterrupt (const USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) |
| Returns Device OUT EP Interrupt register. More... | |
| uint32_t | USB_ReadDevAllInEpInterrupt (const USB_OTG_GlobalTypeDef *USBx) |
| USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status. More... | |
| uint32_t | USB_ReadDevInEPInterrupt (const USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) |
| Returns Device IN EP Interrupt register. More... | |
| void | USB_ClearInterrupts (USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt) |
| USB_ClearInterrupts: clear a USB interrupt. More... | |
| HAL_StatusTypeDef | USB_HostInit (USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) |
| USB_HostInit : Initializes the USB OTG controller registers for Host mode. More... | |
| HAL_StatusTypeDef | USB_InitFSLSPClkSel (const USB_OTG_GlobalTypeDef *USBx, uint8_t freq) |
| USB_InitFSLSPClkSel : Initializes the FSLSPClkSel field of the HCFG register on the PHY type and set the right frame interval. More... | |
| HAL_StatusTypeDef | USB_ResetPort (const USB_OTG_GlobalTypeDef *USBx) |
| USB_OTG_ResetPort : Reset Host Port. More... | |
| HAL_StatusTypeDef | USB_DriveVbus (const USB_OTG_GlobalTypeDef *USBx, uint8_t state) |
| USB_DriveVbus : activate or de-activate vbus. More... | |
| uint32_t | USB_GetHostSpeed (USB_OTG_GlobalTypeDef const *USBx) |
| Return Host Core speed. More... | |
| uint32_t | USB_GetCurrentFrame (USB_OTG_GlobalTypeDef const *USBx) |
| Return Host Current Frame number. More... | |
| 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) |
| Initialize a host channel. More... | |
| HAL_StatusTypeDef | USB_HC_StartXfer (USB_OTG_GlobalTypeDef *USBx, USB_OTG_HCTypeDef *hc, uint8_t dma) |
| Start a transfer over a host channel. More... | |
| uint32_t | USB_HC_ReadInterrupt (const USB_OTG_GlobalTypeDef *USBx) |
| Read all host channel interrupts status. More... | |
| HAL_StatusTypeDef | USB_HC_Halt (const USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num) |
| Halt a host channel. More... | |
| HAL_StatusTypeDef | USB_DoPing (const USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num) |
| Initiate Do Ping protocol. More... | |
| HAL_StatusTypeDef | USB_StopHost (USB_OTG_GlobalTypeDef *USBx) |
| Stop Host Core. More... | |
| HAL_StatusTypeDef | USB_ActivateRemoteWakeup (const USB_OTG_GlobalTypeDef *USBx) |
| USB_ActivateRemoteWakeup active remote wakeup signalling. More... | |
| HAL_StatusTypeDef | USB_DeActivateRemoteWakeup (const USB_OTG_GlobalTypeDef *USBx) |
| USB_DeActivateRemoteWakeup de-active remote wakeup signalling. More... | |
| HAL_StatusTypeDef USB_ActivateDedicatedEndpoint | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
Activate and configure a dedicated endpoint.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 636 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_ActivateEndpoint | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
Activate and configure an endpoint.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 598 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_ActivateRemoteWakeup | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_ActivateRemoteWakeup active remote wakeup signalling.
| USBx | Selected device |
| HAL | status |
Definition at line 2275 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_ActivateSetup | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
Activate EP0 for Setup transactions.
| USBx | Selected device |
| HAL | status |
Definition at line 1351 of file stm32f4xx_ll_usb.c.
| void USB_ClearInterrupts | ( | USB_OTG_GlobalTypeDef * | USBx, |
| uint32_t | interrupt | ||
| ) |
USB_ClearInterrupts: clear a USB interrupt.
| USBx | Selected device |
| interrupt | flag |
| None |
Definition at line 1328 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_CoreInit | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_CfgTypeDef | cfg | ||
| ) |
Initializes the USB Core.
| USBx | USB Instance |
| cfg | pointer to a USB_OTG_CfgTypeDef structure that contains the configuration information for the specified USBx peripheral. |
| HAL | status |
Definition at line 83 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
De-activate and de-initialize a dedicated endpoint.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 722 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DeactivateEndpoint | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
De-activate and de-initialize an endpoint.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 675 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DeActivateRemoteWakeup | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_DeActivateRemoteWakeup de-active remote wakeup signalling.
| USBx | Selected device |
| HAL | status |
Definition at line 2293 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DevConnect | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_DevConnect : Connect the USB device by enabling Rpu.
| USBx | Selected device |
| HAL | status |
Definition at line 1189 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DevDisconnect | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_DevDisconnect : Disconnect the USB device by disabling Rpu.
| USBx | Selected device |
| HAL | status |
Definition at line 1206 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DevInit | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_CfgTypeDef | cfg | ||
| ) |
USB_DevInit Initializes the USB_OTG controller registers for device mode.
| USBx | Selected device |
| cfg | pointer to a USB_OTG_CfgTypeDef structure that contains the configuration information for the specified USBx peripheral. |
| HAL | status |
Definition at line 296 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DisableGlobalInt | ( | USB_OTG_GlobalTypeDef * | USBx | ) |
USB_DisableGlobalInt Disable the controller's Global Int in the AHB Config reg.
| USBx | Selected device |
| HAL | status |
Definition at line 234 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DoPing | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | ch_num | ||
| ) |
Initiate Do Ping protocol.
| USBx | Selected device |
| hc_num | Host Channel number This parameter can be a value from 1 to 15 |
| HAL | state |
Definition at line 2186 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_DriveVbus | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | state | ||
| ) |
USB_DriveVbus : activate or de-activate vbus.
| state | VBUS state This parameter can be one of these values: 0 : Deactivate VBUS 1 : Activate VBUS |
| HAL | status |
Definition at line 1618 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EnableGlobalInt | ( | USB_OTG_GlobalTypeDef * | USBx | ) |
USB_EnableGlobalInt Enables the controller's Global Int in the AHB Config reg.
| USBx | Selected device |
| HAL | status |
Definition at line 222 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EP0_OutStart | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | dma, | ||
| const uint8_t * | psetup | ||
| ) |
Prepare the EP0 to start the first control setup.
| USBx | Selected device |
| dma | USB dma enabled or disabled This parameter can be one of these values: 0 : DMA feature not used 1 : DMA feature used |
| psetup | pointer to setup packet |
| HAL | status |
Definition at line 1373 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EPClearStall | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
USB_EPClearStall : Clear a stall condition over an EP.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 1104 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EPSetStall | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| const USB_OTG_EPTypeDef * | ep | ||
| ) |
USB_EPSetStall : set a stall condition over an EP.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 1073 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EPStartXfer | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_EPTypeDef * | ep, | ||
| uint8_t | dma | ||
| ) |
USB_EPStartXfer : setup and starts a transfer over an EP.
| USBx | Selected device |
| ep | pointer to endpoint structure |
| dma | USB dma enabled or disabled This parameter can be one of these values: 0 : DMA feature not used 1 : DMA feature used |
| HAL | status |
Definition at line 764 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_EPStopXfer | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_EPTypeDef * | ep | ||
| ) |
USB_EPStoptXfer Stop transfer on an EP.
| USBx | usb device instance |
| ep | pointer to endpoint structure |
| HAL | status |
Definition at line 936 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_FlushRxFifo | ( | USB_OTG_GlobalTypeDef * | USBx | ) |
USB_FlushRxFifo Flush Rx FIFO.
| USBx | Selected device |
| HAL | status |
Definition at line 510 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_FlushTxFifo | ( | USB_OTG_GlobalTypeDef * | USBx, |
| uint32_t | num | ||
| ) |
USB_FlushTxFifo Flush a Tx FIFO.
| USBx | Selected device |
| num | FIFO number This parameter can be a value from 1 to 15 15 means Flush all Tx FIFOs |
| HAL | status |
Definition at line 473 of file stm32f4xx_ll_usb.c.
| uint32_t USB_GetCurrentFrame | ( | USB_OTG_GlobalTypeDef const * | USBx | ) |
Return Host Current Frame number.
| USBx | Selected device |
| current | frame number |
Definition at line 1662 of file stm32f4xx_ll_usb.c.
| uint8_t USB_GetDevSpeed | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_GetDevSpeed Return the Dev Speed.
| USBx | Selected device |
| speed | device speed This parameter can be one of these values:
|
Definition at line 569 of file stm32f4xx_ll_usb.c.
| uint32_t USB_GetHostSpeed | ( | USB_OTG_GlobalTypeDef const * | USBx | ) |
Return Host Core speed.
| USBx | Selected device |
| speed | : Host speed This parameter can be one of these values:
|
Definition at line 1648 of file stm32f4xx_ll_usb.c.
| uint32_t USB_GetMode | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
Returns USB core mode.
| USBx | Selected device |
| return | core mode : Host or Device This parameter can be one of these values: 0 : Host 1 : Device |
Definition at line 1341 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_HC_Halt | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | hc_num | ||
| ) |
Halt a host channel.
| USBx | Selected device |
| hc_num | Host Channel number This parameter can be a value from 1 to 15 |
| HAL | state |
Definition at line 2102 of file stm32f4xx_ll_usb.c.
| 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 | ||
| ) |
Initialize a host channel.
| USBx | Selected device |
| ch_num | Channel number This parameter can be a value from 1 to 15 |
| epnum | Endpoint number This parameter can be a value from 1 to 15 |
| dev_address | Current device address This parameter can be a value from 0 to 255 |
| speed | Current device speed This parameter can be one of these values:
|
| ep_type | Endpoint Type This parameter can be one of these values:
|
| mps | Max Packet Size This parameter can be a value from 0 to 32K |
| HAL | state |
Definition at line 1693 of file stm32f4xx_ll_usb.c.
| uint32_t USB_HC_ReadInterrupt | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
Read all host channel interrupts status.
| USBx | Selected device |
| HAL | state |
Definition at line 2088 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_HC_StartXfer | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_HCTypeDef * | hc, | ||
| uint8_t | dma | ||
| ) |
Start a transfer over a host channel.
| USBx | Selected device |
| hc | pointer to host channel structure |
| dma | USB dma enabled or disabled This parameter can be one of these values: 0 : DMA feature not used 1 : DMA feature used |
| HAL | state |
Definition at line 1825 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_HostInit | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_CfgTypeDef | cfg | ||
| ) |
USB_HostInit : Initializes the USB OTG controller registers for Host mode.
| USBx | Selected device |
| cfg | pointer to a USB_OTG_CfgTypeDef structure that contains the configuration information for the specified USBx peripheral. |
| HAL | status |
Definition at line 1446 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_InitFSLSPClkSel | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | freq | ||
| ) |
USB_InitFSLSPClkSel : Initializes the FSLSPClkSel field of the HCFG register on the PHY type and set the right frame interval.
| USBx | Selected device |
| freq | clock frequency This parameter can be one of these values: HCFG_48_MHZ : Full Speed 48 MHz Clock HCFG_6_MHZ : Low Speed 6 MHz Clock |
| HAL | status |
Definition at line 1561 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadChInterrupts | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | chnum | ||
| ) |
USB_ReadChInterrupts: return USB channel interrupt status.
| USBx | Selected device |
| chnum | Channel number |
| USB | Channel Interrupt status |
Definition at line 1239 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadDevAllInEpInterrupt | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status.
| USBx | Selected device |
| USB | Device IN EP interrupt status |
Definition at line 1271 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadDevAllOutEpInterrupt | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status.
| USBx | Selected device |
| USB | Device OUT EP interrupt status |
Definition at line 1255 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadDevInEPInterrupt | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | epnum | ||
| ) |
Returns Device IN EP Interrupt register.
| USBx | Selected device |
| epnum | endpoint number This parameter can be a value from 0 to 15 |
| Device | IN EP Interrupt register |
Definition at line 1307 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadDevOutEPInterrupt | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | epnum | ||
| ) |
Returns Device OUT EP Interrupt register.
| USBx | Selected device |
| epnum | endpoint number This parameter can be a value from 0 to 15 |
| Device | OUT EP Interrupt register |
Definition at line 1289 of file stm32f4xx_ll_usb.c.
| uint32_t USB_ReadInterrupts | ( | USB_OTG_GlobalTypeDef const * | USBx | ) |
USB_ReadInterrupts: return the global USB interrupt status.
| USBx | Selected device |
| USB | Global Interrupt status |
Definition at line 1223 of file stm32f4xx_ll_usb.c.
| void* USB_ReadPacket | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t * | dest, | ||
| uint16_t | len | ||
| ) |
USB_ReadPacket : read a packet from the RX FIFO.
| USBx | Selected device |
| dest | source pointer |
| len | Number of bytes to read |
| pointer | to destination buffer |
Definition at line 1031 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_ResetPort | ( | const USB_OTG_GlobalTypeDef * | USBx | ) |
USB_OTG_ResetPort : Reset Host Port.
| USBx | Selected device |
| HAL | status |
Definition at line 1591 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_SetCurrentMode | ( | USB_OTG_GlobalTypeDef * | USBx, |
| USB_OTG_ModeTypeDef | mode | ||
| ) |
USB_SetCurrentMode Set functional mode.
| USBx | Selected device |
| mode | current core mode This parameter can be one of these values:
|
| HAL | status |
Definition at line 249 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_SetDevAddress | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | address | ||
| ) |
USB_SetDevAddress : Stop the usb device mode.
| USBx | Selected device |
| address | new device address to be assigned This parameter can be a value from 0 to 255 |
| HAL | status |
Definition at line 1174 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_SetDevSpeed | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t | speed | ||
| ) |
USB_SetDevSpeed Initializes the DevSpd field of DCFG register depending the PHY type and the enumeration speed of the device.
| USBx | Selected device |
| speed | device speed This parameter can be one of these values:
|
| Hal | status |
Definition at line 553 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_SetTurnaroundTime | ( | USB_OTG_GlobalTypeDef * | USBx, |
| uint32_t | hclk, | ||
| uint8_t | speed | ||
| ) |
Set the USB turnaround time.
| USBx | USB Instance |
| hclk | AHB clock frequency |
| USB | turnaround time In PHY Clocks number |
Definition at line 139 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_StopDevice | ( | USB_OTG_GlobalTypeDef * | USBx | ) |
USB_StopDevice : Stop the usb device mode.
| USBx | Selected device |
| HAL | status |
Definition at line 1133 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_StopHost | ( | USB_OTG_GlobalTypeDef * | USBx | ) |
Stop Host Core.
| USBx | Selected device |
| HAL | state |
Definition at line 2210 of file stm32f4xx_ll_usb.c.
| HAL_StatusTypeDef USB_WritePacket | ( | const USB_OTG_GlobalTypeDef * | USBx, |
| uint8_t * | src, | ||
| uint8_t | ch_ep_num, | ||
| uint16_t | len, | ||
| uint8_t | dma | ||
| ) |
USB_WritePacket : Writes a packet into the Tx FIFO associated with the EP/channel.
| USBx | Selected device |
| src | pointer to source buffer |
| ch_ep_num | endpoint or host channel number |
| len | Number of bytes to write |
| dma | USB dma enabled or disabled This parameter can be one of these values: 0 : DMA feature not used 1 : DMA feature used |
| HAL | status |
Definition at line 1000 of file stm32f4xx_ll_usb.c.