usb_hcd.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_HCD_H__
30 #define __USB_HCD_H__
31 
32 /* Includes ------------------------------------------------------------------*/
33 #include "usb_regs.h"
34 #include "usb_core.h"
35 
36 
80 uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev ,
82 uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev ,
83  uint8_t hc_num);
84 uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev ,
85  uint8_t hc_num) ;
87 uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev);
89 uint32_t HCD_IsPortEnabled (USB_OTG_CORE_HANDLE *pdev);
90 
92 URB_STATE HCD_GetURB_State (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
93 uint32_t HCD_GetXferCnt (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
94 HC_STATUS HCD_GetHCState (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num) ;
99 #endif //__USB_HCD_H__
100 
101 
109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
110 
uint32_t HCD_SubmitRequest(USB_OTG_CORE_HANDLE *pdev, uint8_t hc_num)
HCD_SubmitRequest This function prepare a HC and start a transfer.
Definition: usb_hcd.c:254
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.
Definition: usb_hcd.c:242
uint32_t HCD_GetXferCnt(USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
HCD_GetXferCnt This function returns the last URBstate.
Definition: usb_hcd.c:216
HC_STATUS HCD_GetHCState(USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
HCD_GetHCState This function returns the HC Status.
Definition: usb_hcd.c:230
URB_STATE HCD_GetURB_State(USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num)
HCD_GetURB_State This function returns the last URBstate.
Definition: usb_hcd.c:204
USB_OTG_CORE_ID_TypeDef
Definition: usb_defines.h:190
hardware registers
Header of the Core Layer.
uint32_t HCD_GetCurrentSpeed(USB_OTG_CORE_HANDLE *pdev)
HCD_GetCurrentSpeed Get Current device Speed.
Definition: usb_hcd.c:133
URB_STATE
Definition: usb_core.h:96
uint32_t HCD_ResetPort(USB_OTG_CORE_HANDLE *pdev)
HCD_ResetPort Issues the reset command to device.
Definition: usb_hcd.c:147
uint32_t HCD_IsDeviceConnected(USB_OTG_CORE_HANDLE *pdev)
HCD_IsDeviceConnected Check if the device is connected.
Definition: usb_hcd.c:167
HC_STATUS
Definition: usb_core.h:84
uint32_t HCD_IsPortEnabled(USB_OTG_CORE_HANDLE *pdev)
HCD_IsPortEnabled This function checks if port is enabled.
Definition: usb_hcd.c:180
uint32_t HCD_Init(USB_OTG_CORE_HANDLE *pdev, USB_OTG_CORE_ID_TypeDef coreID)
HCD_Init Initialize the HOST portion of the driver.
Definition: usb_hcd.c:97
uint32_t HCD_GetCurrentFrame(USB_OTG_CORE_HANDLE *pdev)
HCD_GetCurrentFrame This function returns the frame number for sof packet.
Definition: usb_hcd.c:192


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