usbd_int.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. **************************************************************************
  3. * @file usb_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 __USB_INT_H
  26. #define __USB_INT_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /* includes ------------------------------------------------------------------*/
  31. #include "usbd_core.h"
  32. /** @addtogroup USBD_drivers_interrupt
  33. * @{
  34. */
  35. /** @defgroup USBD_int_exported_functions
  36. * @{
  37. */
  38. #ifdef BSP_USING_USBD
  39. void usbd_irq_handler(usbd_core_type *udev);
  40. void usbd_ept_loop_handler(usbd_core_type *udev);
  41. void usbd_eptn_handler(usbd_core_type *udev, usb_ept_number_type ept_num);
  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. /* callback for rt-thread */
  47. void usbd_reset_callback(usbd_core_type *udev);
  48. void usbd_setup_phase_done_callback(usbd_core_type *udev);
  49. void usbd_data_in_stage_callback(usbd_core_type *udev, uint32_t ept_num);
  50. void usbd_sof_callback(usbd_core_type *udev);
  51. void usbd_data_out_stage_callback(usbd_core_type *udev, uint32_t ept_num);
  52. void usbd_connectCallback(usbd_core_type *udev);
  53. void usbd_disconnectCallback(usbd_core_type *udev);
  54. #endif
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif