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.
13 uint8_t usb_configured(void); // is the USB port configured
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);
22 extern volatile uint8_t usb_configuration;
24 #ifdef CDC_DATA_INTERFACE
25 extern uint8_t usb_cdc_line_coding[7];
26 extern volatile uint8_t usb_cdc_line_rtsdtr;
27 extern volatile uint8_t usb_cdc_transmit_flush_timer;
28 extern void usb_serial_flush_callback(void);