Functions
USB_HCD_Private_Functions
Collaboration diagram for USB_HCD_Private_Functions:

Functions

uint32_t HCD_GetCurrentFrame (USB_OTG_CORE_HANDLE *pdev)
 HCD_GetCurrentFrame This function returns the frame number for sof packet. More...
 
uint32_t HCD_GetCurrentSpeed (USB_OTG_CORE_HANDLE *pdev)
 HCD_GetCurrentSpeed Get Current device Speed. More...
 
HC_STATUS HCD_GetHCState (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
 HCD_GetHCState This function returns the HC Status. More...
 
URB_STATE HCD_GetURB_State (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
 HCD_GetURB_State This function returns the last URBstate. More...
 
uint32_t HCD_GetXferCnt (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
 HCD_GetXferCnt This function returns the last URBstate. More...
 
uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev, uint8_t hc_num)
 HCD_HC_Init This function prepare a HC and start a transfer. More...
 
uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev, USB_OTG_CORE_ID_TypeDef coreID)
 HCD_Init Initialize the HOST portion of the driver. More...
 
uint32_t HCD_IsDeviceConnected (USB_OTG_CORE_HANDLE *pdev)
 HCD_IsDeviceConnected Check if the device is connected. More...
 
uint32_t HCD_IsPortEnabled (USB_OTG_CORE_HANDLE *pdev)
 HCD_IsPortEnabled This function checks if port is enabled. More...
 
uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev)
 HCD_ResetPort Issues the reset command to device. More...
 
uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev, uint8_t hc_num)
 HCD_SubmitRequest This function prepare a HC and start a transfer. More...
 

Detailed Description

Function Documentation

uint32_t HCD_GetCurrentFrame ( USB_OTG_CORE_HANDLE pdev)

HCD_GetCurrentFrame This function returns the frame number for sof packet.

Parameters
pdev: Selected device
Return values
Framenumber

Definition at line 192 of file usb_hcd.c.

uint32_t HCD_GetCurrentSpeed ( USB_OTG_CORE_HANDLE pdev)

HCD_GetCurrentSpeed Get Current device Speed.

Parameters
pdev: Selected device
Return values
Status

Definition at line 133 of file usb_hcd.c.

HC_STATUS HCD_GetHCState ( USB_OTG_CORE_HANDLE pdev,
uint8_t  ch_num 
)

HCD_GetHCState This function returns the HC Status.

Parameters
pdevSelected device
Return values
HC_STATUS

Definition at line 230 of file usb_hcd.c.

URB_STATE HCD_GetURB_State ( USB_OTG_CORE_HANDLE pdev,
uint8_t  ch_num 
)

HCD_GetURB_State This function returns the last URBstate.

Parameters
pdevSelected device
Return values
URB_STATE

Definition at line 204 of file usb_hcd.c.

uint32_t HCD_GetXferCnt ( USB_OTG_CORE_HANDLE pdev,
uint8_t  ch_num 
)

HCD_GetXferCnt This function returns the last URBstate.

Parameters
pdevSelected device
Return values
No.of data bytes transferred

Definition at line 216 of file usb_hcd.c.

uint32_t HCD_HC_Init ( USB_OTG_CORE_HANDLE pdev,
uint8_t  hc_num 
)

HCD_HC_Init This function prepare a HC and start a transfer.

Parameters
pdevSelected device
hc_numChannel number
Return values
status

Definition at line 242 of file usb_hcd.c.

uint32_t HCD_Init ( USB_OTG_CORE_HANDLE pdev,
USB_OTG_CORE_ID_TypeDef  coreID 
)

HCD_Init Initialize the HOST portion of the driver.

Parameters
pdevSelected device
base_addressOTG base address
Return values
Status

Definition at line 97 of file usb_hcd.c.

uint32_t HCD_IsDeviceConnected ( USB_OTG_CORE_HANDLE pdev)

HCD_IsDeviceConnected Check if the device is connected.

Parameters
pdev: Selected device
Return values
Deviceconnection status. 1 -> connected and 0 -> disconnected

Definition at line 167 of file usb_hcd.c.

uint32_t HCD_IsPortEnabled ( USB_OTG_CORE_HANDLE pdev)

HCD_IsPortEnabled This function checks if port is enabled.

Parameters
pdev: Selected device
Return values
Framenumber

Definition at line 180 of file usb_hcd.c.

uint32_t HCD_ResetPort ( USB_OTG_CORE_HANDLE pdev)

HCD_ResetPort Issues the reset command to device.

Parameters
pdev: Selected device
Return values
Status

Definition at line 147 of file usb_hcd.c.

uint32_t HCD_SubmitRequest ( USB_OTG_CORE_HANDLE pdev,
uint8_t  hc_num 
)

HCD_SubmitRequest This function prepare a HC and start a transfer.

Parameters
pdevSelected device
hc_numChannel number
Return values
status

Definition at line 254 of file usb_hcd.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28