Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
usb_serial.h File Reference

arch independent USB API More...

#include <inttypes.h>
#include "std.h"
#include "pprzlink/pprzlink_device.h"
#include "mcu_periph/uart.h"
#include "mcu_arch.h"
+ Include dependency graph for usb_serial.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usb_serial_periph
 

Macros

#define USB_RX_BUFFER_SIZE   UART_RX_BUFFER_SIZE
 
#define USBD_NUMBER   1
 

Functions

void VCOM_init (void)
 
int VCOM_putchar (int c)
 
int VCOM_getchar (void)
 
int VCOM_peekchar (int ofs)
 
bool VCOM_check_free_space (uint16_t len)
 
int VCOM_check_available (void)
 
void VCOM_set_linecoding (uint8_t mode)
 
void VCOM_allow_linecoding (uint8_t mode)
 
void VCOM_send_message (void)
 
void VCOM_event (void)
 

Variables

struct usb_serial_periph usb_serial
 

Detailed Description

arch independent USB API

Definition in file usb_serial.h.


Data Structure Documentation

◆ usb_serial_periph

struct usb_serial_periph

Definition at line 51 of file usb_serial.h.

+ Collaboration diagram for usb_serial_periph:
Data Fields
struct link_device device Generic device interface.
uint16_t nb_bytes
void * reg_addr
uint8_t rx_buf[USB_RX_BUFFER_SIZE] Receive buffer.
uint16_t rx_read_idx

Macro Definition Documentation

◆ USB_RX_BUFFER_SIZE

#define USB_RX_BUFFER_SIZE   UART_RX_BUFFER_SIZE

Definition at line 38 of file usb_serial.h.

◆ USBD_NUMBER

#define USBD_NUMBER   1

Definition at line 48 of file usb_serial.h.

Function Documentation

◆ VCOM_allow_linecoding()

void VCOM_allow_linecoding ( uint8_t  mode)

Referenced by main().

+ Here is the caller graph for this function:

◆ VCOM_check_available()

int VCOM_check_available ( void  )

Referenced by dfu_command_event(), and tunnel_event().

+ Here is the caller graph for this function:

◆ VCOM_check_free_space()

bool VCOM_check_free_space ( uint16_t  len)

Referenced by dfu_command_event(), and tunnel_event().

+ Here is the caller graph for this function:

◆ VCOM_event()

void VCOM_event ( void  )

Referenced by main(), and mcu_event().

+ Here is the caller graph for this function:

◆ VCOM_getchar()

int VCOM_getchar ( void  )

Referenced by dfu_command_event(), and tunnel_event().

+ Here is the caller graph for this function:

◆ VCOM_init()

void VCOM_init ( void  )

Referenced by main(), and mcu_init().

+ Here is the caller graph for this function:

◆ VCOM_peekchar()

int VCOM_peekchar ( int  ofs)

Referenced by dfu_command_event().

+ Here is the caller graph for this function:

◆ VCOM_putchar()

int VCOM_putchar ( int  c)

Referenced by tunnel_event().

+ Here is the caller graph for this function:

◆ VCOM_send_message()

void VCOM_send_message ( void  )

◆ VCOM_set_linecoding()

void VCOM_set_linecoding ( uint8_t  mode)

Variable Documentation

◆ usb_serial

struct usb_serial_periph usb_serial
extern