33 #include "pprzlink/pprzlink_device.h"
37 #ifndef USB_RX_BUFFER_SIZE
38 #define USB_RX_BUFFER_SIZE UART_RX_BUFFER_SIZE
41 #ifdef USB_MAX_ENDPOINTS
42 #if USB_MAX_ENDPOINTS >= 4 && USE_USB_SERIAL_DEBUG
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void VCOM_event(void)
Poll usb (required by libopencm3).
int VCOM_getchar(void)
Reads one character from VCOM port.
int VCOM_putchar(int c)
Writes one character to VCOM port fifo.
void VCOM_set_linecoding(uint8_t mode)
int VCOM_check_available(void)
Checks if data available in VCOM buffer.
int VCOM_peekchar(int ofs)
Reads one character from VCOM port without removing it from the queue.
struct link_device device
Generic device interface.
void VCOM_send_message(void)
Send data from fifo right now.
void VCOM_allow_linecoding(uint8_t mode)
struct usb_serial_periph usb_serial
#define USB_RX_BUFFER_SIZE
uint8_t rx_buf[USB_RX_BUFFER_SIZE]
Receive buffer.
bool VCOM_check_free_space(uint16_t len)
Checks if buffer free in VCOM buffer.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.