usbh_int.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. **************************************************************************
  3. * @file usbh_int.h
  4. * @brief usb header file
  5. **************************************************************************
  6. * Copyright notice & Disclaimer
  7. *
  8. * The software Board Support Package (BSP) that is made available to
  9. * download from Artery official website is the copyrighted work of Artery.
  10. * Artery authorizes customers to use, copy, and distribute the BSP
  11. * software and its related documentation for the purpose of design and
  12. * development in conjunction with Artery microcontrollers. Use of the
  13. * software is governed by this copyright notice and the following disclaimer.
  14. *
  15. * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  16. * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  17. * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  18. * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  19. * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  21. *
  22. **************************************************************************
  23. */
  24. /* define to prevent recursive inclusion -------------------------------------*/
  25. #ifndef __USBH_INT_H
  26. #define __USBH_INT_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /* includes ------------------------------------------------------------------*/
  31. #include "usbh_core.h"
  32. #include "usb_core.h"
  33. /** @addtogroup USBH_drivers_int
  34. * @{
  35. */
  36. /** @defgroup USBH_interrupt_exported_types
  37. * @{
  38. */
  39. #ifdef USE_OTG_HOST_MODE
  40. void usbh_irq_handler(otg_core_type *hdev);
  41. void usbh_hch_handler(usbh_core_type *uhost);
  42. void usbh_port_handler(usbh_core_type *uhost);
  43. void usbh_disconnect_handler(usbh_core_type *uhost);
  44. void usbh_hch_in_handler(usbh_core_type *uhost, uint8_t chn);
  45. void usbh_hch_out_handler(usbh_core_type *uhost, uint8_t chn);
  46. void usbh_rx_qlvl_handler(usbh_core_type *uhost);
  47. void usbh_wakeup_handler(usbh_core_type *uhost);
  48. void usbh_sof_handler(usbh_core_type *uhost);
  49. void usbh_connect_callback(usbh_core_type *uhost);
  50. void usbh_disconnect_callback(usbh_core_type *uhost);
  51. void usbd_notify_urbchange_callback(usbh_core_type *uhost, uint8_t chnum, urb_sts_type sts);
  52. #endif
  53. /**
  54. * @}
  55. */
  56. /**
  57. * @}
  58. */
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif