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

BusVoodoo RS-232 mode (code) More...

Go to the source code of this file.

Macros

#define BUSVOODOO_RS232_USART   2
 USART peripheral.
 
#define BUSVOODOO_RS232_RX_TIMER   2
 timer ID to capture RX edges
 
#define BUSVOODOO_RS232_RX_CHANNEL   4
 channel ID used as input capture to capture RX edges
 

Functions

static bool busvoodoo_rs232_setup (char **prefix, const char *line)
 setup RS-232 mode More...
 
static void busvoodoo_rs232_exit (void)
 exit RS-232 mode
 

Variables

static const struct busvoodoo_uart_generic_specific_t busvoodoo_uart_generic_rs232
 RS-232 specific methods that will be called by the generic methods.
 
const struct busvoodoo_mode_t busvoodoo_rs232_mode
 RS-232 mode interface definition. More...
 

Detailed Description

BusVoodoo RS-232 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 RS-232 communication, using an RS-232 transceiver

Definition in file busvoodoo_rs232.c.

Function Documentation

◆ busvoodoo_rs232_setup()

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

setup RS-232 mode

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

Definition at line 92 of file busvoodoo_rs232.c.

Variable Documentation

◆ busvoodoo_rs232_mode

const struct busvoodoo_mode_t busvoodoo_rs232_mode
Initial value:
= {
.name = "rs232",
.description = "Recommended Standard 232",
.full_only = true,
}
static void busvoodoo_rs232_exit(void)
exit RS-232 mode
static bool busvoodoo_rs232_setup(char **prefix, const char *line)
setup RS-232 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

RS-232 mode interface definition.

Definition at line 131 of file busvoodoo_rs232.c.