usbh_int.h 675 B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. \file usbh_int.h
  3. \brief USB host mode interrupt handler header file
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-02-10, V1.0.0, firmware for GD32F30x
  8. */
  9. #ifndef USBH_INT_H
  10. #define USBH_INT_H
  11. #include "usb_core.h"
  12. typedef struct
  13. {
  14. uint8_t (*sof) (usb_core_handle_struct *pudev);
  15. uint8_t (*device_connected) (usb_core_handle_struct *pudev);
  16. uint8_t (*device_disconnected) (usb_core_handle_struct *pudev);
  17. }usbh_hcd_int_cb_struct;
  18. extern usbh_hcd_int_cb_struct *usbh_hcd_int_fops;
  19. /* function declarations */
  20. /* handle global host interrupt */
  21. uint32_t usbh_isr (usb_core_handle_struct *pudev);
  22. #endif /* USBH_INT_H */