Functions
USB_CORE_Exported_FunctionsPrototype
Collaboration diagram for USB_CORE_Exported_FunctionsPrototype:

Functions

USB_OTG_STS USB_OTG_CoreInit (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_CoreInit Initializes the USB_OTG controller registers and prepares the core device mode or host mode operation. More...
 
USB_OTG_STS USB_OTG_DisableGlobalInt (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_DisableGlobalInt Enables the controller's Global Int in the AHB Config reg. More...
 
USB_OTG_STS USB_OTG_EnableGlobalInt (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_EnableGlobalInt Enables the controller's Global Int in the AHB Config reg. More...
 
USB_OTG_STS USB_OTG_FlushRxFifo (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_FlushRxFifo : Flush a Rx FIFO. More...
 
USB_OTG_STS USB_OTG_FlushTxFifo (USB_OTG_CORE_HANDLE *pdev, uint32_t num)
 USB_OTG_FlushTxFifo : Flush a Tx FIFO. More...
 
uint32_t USB_OTG_GetMode (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_GetMode : Get current mode. More...
 
uint8_t USB_OTG_IsDeviceMode (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_IsDeviceMode : Check if it is device mode. More...
 
uint8_t USB_OTG_IsHostMode (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_IsHostMode : Check if it is host mode. More...
 
USB_OTG_STS USB_OTG_PhyInit (USB_OTG_CORE_HANDLE *pdev)
 
uint32_t USB_OTG_ReadCoreItr (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_ReadCoreItr : returns the Core Interrupt register. More...
 
uint32_t USB_OTG_ReadOtgItr (USB_OTG_CORE_HANDLE *pdev)
 USB_OTG_ReadOtgItr : returns the USB_OTG Interrupt register. More...
 
void * USB_OTG_ReadPacket (USB_OTG_CORE_HANDLE *pdev, uint8_t *dest, uint16_t len)
 USB_OTG_ReadPacket : Reads a packet from the Rx FIFO. More...
 
USB_OTG_STS USB_OTG_SelectCore (USB_OTG_CORE_HANDLE *pdev, USB_OTG_CORE_ID_TypeDef coreID)
 USB_OTG_SelectCore Initialize core registers address. More...
 
USB_OTG_STS USB_OTG_SetCurrentMode (USB_OTG_CORE_HANDLE *pdev, uint8_t mode)
 USB_OTG_SetCurrentMode : Set ID line. More...
 
USB_OTG_STS USB_OTG_WritePacket (USB_OTG_CORE_HANDLE *pdev, uint8_t *src, uint8_t ch_ep_num, uint16_t len)
 USB_OTG_WritePacket : Writes a packet into the Tx FIFO associated with the EP. More...
 

Detailed Description

Function Documentation

USB_OTG_STS USB_OTG_CoreInit ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_CoreInit Initializes the USB_OTG controller registers and prepares the core device mode or host mode operation.

Parameters
pdev: Selected device
Return values
USB_OTG_STS: status

Definition at line 329 of file usb_core.c.

USB_OTG_STS USB_OTG_DisableGlobalInt ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_DisableGlobalInt Enables the controller's Global Int in the AHB Config reg.

Parameters
pdev: Selected device
Return values
USB_OTG_STS: status

Definition at line 464 of file usb_core.c.

USB_OTG_STS USB_OTG_EnableGlobalInt ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_EnableGlobalInt Enables the controller's Global Int in the AHB Config reg.

Parameters
pdev: Selected device
Return values
USB_OTG_STS: status

Definition at line 446 of file usb_core.c.

USB_OTG_STS USB_OTG_FlushRxFifo ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_FlushRxFifo : Flush a Rx FIFO.

Parameters
pdev: Selected device
Return values
USB_OTG_STS: status

Definition at line 511 of file usb_core.c.

USB_OTG_STS USB_OTG_FlushTxFifo ( USB_OTG_CORE_HANDLE pdev,
uint32_t  num 
)

USB_OTG_FlushTxFifo : Flush a Tx FIFO.

Parameters
pdev: Selected device
num: FO num
Return values
USB_OTG_STS: status

Definition at line 481 of file usb_core.c.

uint32_t USB_OTG_GetMode ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_GetMode : Get current mode.

Parameters
pdev: Selected device
Return values
currentmode

Definition at line 576 of file usb_core.c.

uint8_t USB_OTG_IsDeviceMode ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_IsDeviceMode : Check if it is device mode.

Parameters
pdev: Selected device
Return values
num_in_ep

Definition at line 587 of file usb_core.c.

uint8_t USB_OTG_IsHostMode ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_IsHostMode : Check if it is host mode.

Parameters
pdev: Selected device
Return values
num_in_ep

Definition at line 598 of file usb_core.c.

USB_OTG_STS USB_OTG_PhyInit ( USB_OTG_CORE_HANDLE pdev)
uint32_t USB_OTG_ReadCoreItr ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_ReadCoreItr : returns the Core Interrupt register.

Parameters
pdev: Selected device
Return values
Status

Definition at line 609 of file usb_core.c.

uint32_t USB_OTG_ReadOtgItr ( USB_OTG_CORE_HANDLE pdev)

USB_OTG_ReadOtgItr : returns the USB_OTG Interrupt register.

Parameters
pdev: Selected device
Return values
Status

Definition at line 623 of file usb_core.c.

void* USB_OTG_ReadPacket ( USB_OTG_CORE_HANDLE pdev,
uint8_t *  dest,
uint16_t  len 
)

USB_OTG_ReadPacket : Reads a packet from the Rx FIFO.

Parameters
pdev: Selected device
dest: Destination Pointer
bytes: No. of bytes
Return values
None

Definition at line 198 of file usb_core.c.

USB_OTG_STS USB_OTG_SelectCore ( USB_OTG_CORE_HANDLE pdev,
USB_OTG_CORE_ID_TypeDef  coreID 
)

USB_OTG_SelectCore Initialize core registers address.

Parameters
pdev: Selected device
coreID: USB OTG Core ID
Return values
USB_OTG_STS: status

Definition at line 222 of file usb_core.c.

USB_OTG_STS USB_OTG_SetCurrentMode ( USB_OTG_CORE_HANDLE pdev,
uint8_t  mode 
)

USB_OTG_SetCurrentMode : Set ID line.

Parameters
pdev: Selected device
mode: (Host/device)
Return values
USB_OTG_STS: status

Definition at line 541 of file usb_core.c.

USB_OTG_STS USB_OTG_WritePacket ( USB_OTG_CORE_HANDLE pdev,
uint8_t *  src,
uint8_t  ch_ep_num,
uint16_t  len 
)

USB_OTG_WritePacket : Writes a packet into the Tx FIFO associated with the EP.

Parameters
pdev: Selected device
src: source pointer
ch_ep_num: end point number
bytes: No. of bytes
Return values
USB_OTG_STS: status

Definition at line 168 of file usb_core.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:22