usb_application_enumspy.h 823 B

123456789101112131415161718192021222324252627
  1. #ifndef USB_APPLICATION_ENUMSPY_H
  2. #define USB_APPLICATION_ENUMSPY_H
  3. #include "usb/usb_bridge.h"
  4. #ifdef __CORE_USB_HEADER__
  5. extern const sUSBAppEntry_Control_t usbapplication_ACM_planarproto_enumspy;
  6. #endif
  7. typedef struct
  8. {
  9. void ( * startEnumerateTimeout )();
  10. void ( * stopEnumerateTimeout )();
  11. // checkEnumerateTimeout
  12. // Check if the host had not enumerate the device for a long time (ENUMERATE_TIMEOUT)
  13. // Returns: true in case the device had not been enumerated for a ENUMERATE_TIMEOUT ms
  14. bool ( * checkEnumerateTimeout )();
  15. // timerTickEventIrq1ms
  16. // 1-ms timer-IRQ event
  17. void ( * timerTickEventIrq1ms )();
  18. }
  19. sUsbApplicationEnumSpyHandle_t;
  20. extern const sUsbApplicationEnumSpyHandle_t UsbApplicationEnumSpyHandle;
  21. #endif