usbd_int.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. **************************************************************************
  3. * @file usbd_int.h
  4. * @brief usb interrupt 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 __USBD_INT_H
  26. #define __USBD_INT_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /* includes ------------------------------------------------------------------*/
  31. #include "usbd_core.h"
  32. #include "usb_core.h"
  33. /** @addtogroup USBD_drivers_int
  34. * @{
  35. */
  36. /** @defgroup USBD_interrupt_exported_types
  37. * @{
  38. */
  39. #ifdef USE_OTG_DEVICE_MODE
  40. void usbd_irq_handler(otg_core_type *udev);
  41. void usbd_ept_handler(usbd_core_type *udev);
  42. void usbd_reset_handler(usbd_core_type *udev);
  43. void usbd_sof_handler(usbd_core_type *udev);
  44. void usbd_suspend_handler(usbd_core_type *udev);
  45. void usbd_wakeup_handler(usbd_core_type *udev);
  46. void usbd_inept_handler(usbd_core_type *udev);
  47. void usbd_outept_handler(usbd_core_type *udev);
  48. void usbd_enumdone_handler(usbd_core_type *udev);
  49. void usbd_rxflvl_handler(usbd_core_type *udev);
  50. void usbd_incomisioin_handler(usbd_core_type *udev);
  51. void usbd_discon_handler(usbd_core_type *udev);
  52. void usbd_incomisoout_handler(usbd_core_type *udev);
  53. void usb_write_empty_txfifo(usbd_core_type *udev, uint32_t ept_num);
  54. /* callback for rt-thread */
  55. void usbd_reset_callback(usbd_core_type *udev);
  56. void usbd_setup_phase_done_callback(usbd_core_type *udev);
  57. void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num);
  58. void usbd_sof_callback(usbd_core_type *udev);
  59. void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num);
  60. void usbd_connectCallback(usbd_core_type *udev);
  61. void usbd_disconnectCallback(usbd_core_type *udev);
  62. #endif
  63. /**
  64. * @}
  65. */
  66. /**
  67. * @}
  68. */
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif