Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _usb_dev_h_
  2. #define _usb_dev_h_
  3. // This header is NOT meant to be included when compiling
  4. // user sketches in Arduino. The low-level functions
  5. // provided by usb_dev.c are meant to be called only by
  6. // code which provides higher-level interfaces to the user.
  7. #include "usb_mem.h"
  8. #include "usb_desc.h"
  9. void usb_init(void);
  10. uint8_t usb_configured(void); // is the USB port configured
  11. void usb_isr(void);
  12. usb_packet_t *usb_rx(uint32_t endpoint);
  13. uint32_t usb_rx_byte_count(uint32_t endpoint);
  14. uint32_t usb_tx_byte_count(uint32_t endpoint);
  15. uint32_t usb_tx_packet_count(uint32_t endpoint);
  16. void usb_tx(uint32_t endpoint, usb_packet_t *packet);
  17. void usb_tx_isr(uint32_t endpoint, usb_packet_t *packet);
  18. extern volatile uint8_t usb_configuration;
  19. #ifdef CDC_DATA_INTERFACE
  20. extern uint8_t usb_cdc_line_coding[7];
  21. extern volatile uint8_t usb_cdc_line_rtsdtr;
  22. extern volatile uint8_t usb_cdc_transmit_flush_timer;
  23. extern void usb_serial_flush_callback(void);
  24. #endif
  25. #ifdef SEREMU_INTERFACE
  26. extern volatile uint8_t usb_seremu_transmit_flush_timer;
  27. extern void usb_seremu_flush_callback(void);
  28. #endif
  29. #endif