usb_hcd.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. ******************************************************************************
  3. * @file usb_hcd.h
  4. * @author MCD Application Team
  5. * @version V2.1.0
  6. * @date 19-March-2012
  7. * @brief Host layer Header file
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __USB_HCD_H__
  29. #define __USB_HCD_H__
  30. /* Includes ------------------------------------------------------------------*/
  31. #include "usb_regs.h"
  32. #include "usb_core.h"
  33. /** @addtogroup USB_OTG_DRIVER
  34. * @{
  35. */
  36. /** @defgroup USB_HCD
  37. * @brief This file is the
  38. * @{
  39. */
  40. /** @defgroup USB_HCD_Exported_Defines
  41. * @{
  42. */
  43. /**
  44. * @}
  45. */
  46. /** @defgroup USB_HCD_Exported_Types
  47. * @{
  48. */
  49. /**
  50. * @}
  51. */
  52. /** @defgroup USB_HCD_Exported_Macros
  53. * @{
  54. */
  55. /**
  56. * @}
  57. */
  58. /** @defgroup USB_HCD_Exported_Variables
  59. * @{
  60. */
  61. /**
  62. * @}
  63. */
  64. /** @defgroup USB_HCD_Exported_FunctionsPrototype
  65. * @{
  66. */
  67. uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev ,
  68. USB_OTG_CORE_ID_TypeDef coreID);
  69. uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev ,
  70. uint8_t hc_num);
  71. uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev ,
  72. uint8_t hc_num) ;
  73. uint32_t HCD_GetCurrentSpeed (USB_OTG_CORE_HANDLE *pdev);
  74. uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev);
  75. uint32_t HCD_IsDeviceConnected (USB_OTG_CORE_HANDLE *pdev);
  76. uint32_t HCD_GetCurrentFrame (USB_OTG_CORE_HANDLE *pdev) ;
  77. URB_STATE HCD_GetURB_State (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
  78. uint32_t HCD_GetXferCnt (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
  79. HC_STATUS HCD_GetHCState (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num) ;
  80. /**
  81. * @}
  82. */
  83. #endif //__USB_HCD_H__
  84. /**
  85. * @}
  86. */
  87. /**
  88. * @}
  89. */
  90. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/