discoverpixy
usb_hcd.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __USB_HCD_H__
24 #define __USB_HCD_H__
25 
26 /* Includes ------------------------------------------------------------------*/
27 #include "usb_regs.h"
28 #include "usb_core.h"
29 
30 
74 uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev ,
75  USB_OTG_CORE_ID_TypeDef coreID);
76 uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev ,
77  uint8_t hc_num);
78 uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev ,
79  uint8_t hc_num) ;
81 uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev);
84 URB_STATE HCD_GetURB_State (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
85 uint32_t HCD_GetXferCnt (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
86 HC_STATUS HCD_GetHCState (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num) ;
91 #endif //__USB_HCD_H__
92 
93 
101 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
102 
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:197
uint32_t HCD_GetCurrentFrame(USB_OTG_CORE_HANDLE *pdev)
HCD_GetCurrentFrame This function returns the frame number for sof packet.
Definition: usb_hcd.c:173
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:223
uint32_t HCD_ResetPort(USB_OTG_CORE_HANDLE *pdev)
HCD_ResetPort Issues the reset command to device.
Definition: usb_hcd.c:141
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:235
Definition: usb_core.h:287
uint32_t HCD_IsDeviceConnected(USB_OTG_CORE_HANDLE *pdev)
HCD_IsDeviceConnected Check if the device is connected.
Definition: usb_hcd.c:161
hardware registers
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:91
uint32_t HCD_GetCurrentSpeed(USB_OTG_CORE_HANDLE *pdev)
HCD_GetCurrentSpeed Get Current device Speed.
Definition: usb_hcd.c:127
Header of the Core Layer.
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:185
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:211