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.
 

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. More...
 
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 76 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 115 of file busvoodoo_rs232.c.

◆ busvoodoo_uart_generic_rs232

const struct busvoodoo_uart_generic_specific_t busvoodoo_uart_generic_rs232
static
Initial value:
= {
.multidrive = false,
.tx_pre = NULL,
.tx_post = NULL,
.rx_pre = NULL,
.rx_post = NULL,
.hwflowctl = true,
}
#define USART_TX_PORT(x)
get port for USART transmit pin based on USART identifier
Definition: global.h:194
#define RCC_USART(x)
get RCC for USART based on USART identifier
Definition: global.h:186
#define RCC_USART_PORT(x)
get RCC for USART port based on USART identifier
Definition: global.h:210
#define USART_RX_PIN(x)
get pin for USART receive pin based on USART identifier
Definition: global.h:204
#define USART_TX_PIN(x)
get pin for USART transmit pin based on USART identifier
Definition: global.h:202
#define USART_CTS_PORT(x)
get port for USART CTS pin based on USART identifier
Definition: global.h:200
#define RST_USART(x)
get RST for USART based on USART identifier
Definition: global.h:188
#define USART(x)
get USART based on USART identifier
Definition: global.h:184
#define BUSVOODOO_RS232_USART
USART peripheral.
#define USART_RX_PORT(x)
get port for USART receive pin based on USART identifier
Definition: global.h:196
#define USART_RTS_PIN(x)
get pin for USART RTS pin based on USART identifier
Definition: global.h:206
#define USART_CTS_PIN(x)
get pin for USART CTS pin based on USART identifier
Definition: global.h:208
#define USART_RTS_PORT(x)
get port for USART RTS pin based on USART identifier
Definition: global.h:198

RS-232 specific methods that will be called by the generic methods.

Definition at line 47 of file busvoodoo_rs232.c.