CuVoodoo STM32F1 firmware template
Macros | Functions | Variables
busvoodoo_uart.c File Reference

BusVoodoo UART mode (code) More...

Go to the source code of this file.

Macros

#define BUSVOODOO_UART_USART   3
 USART peripheral.
 
#define BUSVOODOO_UART_RX_TIMER   2
 timer ID to capture RX edges
 
#define BUSVOODOO_UART_RX_CHANNEL   4
 channel ID used as input capture to capture RX edges
 

Functions

static bool busvoodoo_uart_setup (char **prefix, const char *line)
 setup UART mode More...
 
static void busvoodoo_uart_exit (void)
 exit UART mode
 

Variables

static const struct busvoodoo_uart_generic_specific_t busvoodoo_uart_generic_uart
 UART specific methods that will be called by the generic methods.
 
const struct busvoodoo_mode_t busvoodoo_uart_mode
 UART mode interface definition. More...
 

Detailed Description

BusVoodoo UART mode (code)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2018
Note
peripherals used: USART USART peripheral used for UART communication

Definition in file busvoodoo_uart.c.

Function Documentation

◆ busvoodoo_uart_setup()

static bool busvoodoo_uart_setup ( char **  prefix,
const char *  line 
)
static

setup UART mode

Parameters
[out]prefixterminal prompt prefix
[in]lineterminal prompt line to configure mode
Returns
if setup is complete

Definition at line 93 of file busvoodoo_uart.c.

Variable Documentation

◆ busvoodoo_uart_mode

const struct busvoodoo_mode_t busvoodoo_uart_mode
Initial value:
= {
.name = "uart",
.description = "Universal Asynchronous Receiver-Transmitter",
.full_only = false,
}
static bool busvoodoo_uart_setup(char **prefix, const char *line)
setup UART mode
#define busvoodoo_uart_generic_commands_nb
number of commands supported by the generic UART mode
const struct menu_command_t busvoodoo_uart_generic_commands[busvoodoo_uart_generic_commands_nb]
commands supported by the generic UART mode
static void busvoodoo_uart_exit(void)
exit UART mode

UART mode interface definition.

Definition at line 133 of file busvoodoo_uart.c.