Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
usb_serial_stm32.h File Reference

header for serial over USB modules More...

+ Include dependency graph for usb_serial_stm32.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_usb_serial (void)
 Init module, call VCOM_init() from here. More...
 
void periodic_usb_serial (void)
 Periodic function in case you needed to send data periodically like telemetry Note that the data are sent once the buffer is full, not immediately. More...
 
void event_usb_serial (void)
 Call VCOM_poll() from module event function. More...
 
void usb_serial_parse_packet (int c)
 Parse data from buffer Note that the function receives int, not char Because we want to be able to catch -1 in case no more data were available. More...
 

Detailed Description

header for serial over USB modules

Definition in file usb_serial_stm32.h.

Function Documentation

◆ event_usb_serial()

void event_usb_serial ( void  )

Call VCOM_poll() from module event function.

Definition at line 126 of file usb_serial_stm32_example1.c.

References cmd_avail, cmd_execute(), ReadUsbBuffer(), usb_serial_parse_packet(), VCOM_check_available(), VCOM_event(), and VCOM_getchar().

+ Here is the call graph for this function:

◆ init_usb_serial()

void init_usb_serial ( void  )

Init module, call VCOM_init() from here.

Definition at line 44 of file usb_serial_stm32_example1.c.

References cmd_avail, cmd_idx, run, and VCOM_init().

+ Here is the call graph for this function:

◆ periodic_usb_serial()

void periodic_usb_serial ( void  )

Periodic function in case you needed to send data periodically like telemetry Note that the data are sent once the buffer is full, not immediately.

Definition at line 55 of file usb_serial_stm32_example2.c.

References big_buffer, run, and VCOM_putchar().

+ Here is the call graph for this function:

◆ usb_serial_parse_packet()

void usb_serial_parse_packet ( int  c)

Parse data from buffer Note that the function receives int, not char Because we want to be able to catch -1 in case no more data were available.

Definition at line 58 of file usb_serial_stm32_example1.c.

References cmd_avail, cmd_buf, cmd_idx, prompt, run, VCOM_putchar(), and VCOM_send_message().

Referenced by event_usb_serial(), and ReadUsbBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: