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