BusVoodoo generic UART mode (code)
More...
Go to the source code of this file.
|
enum | busvoodoo_uart_generic_setting_t {
BUSVOODOO_UART_SETTING_NONE,
BUSVOODOO_UART_SETTING_BAUDRATE,
BUSVOODOO_UART_SETTING_DATABITS,
BUSVOODOO_UART_SETTING_PARITY,
BUSVOODOO_UART_SETTING_STOPBITS,
BUSVOODOO_UART_SETTING_HWFLOWCTL,
BUSVOODOO_UART_SETTING_DRIVE,
BUSVOODOO_UART_SETTING_DONE
} |
| mode setup stage
|
|
BusVoodoo generic UART mode (code)
- Note
- this only contains the common UART methods and should be supplied with mode specific methods and information
- Author
- King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
- Date
- 2018
Definition in file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_action()
static bool busvoodoo_uart_generic_action |
( |
const char * |
action, |
|
|
uint32_t |
repetition, |
|
|
bool |
perform |
|
) |
| |
|
static |
perform UART action
- Parameters
-
[in] | action | action to perform |
[in] | repetition | how many times to perform the action |
[in] | perform | the action (true) or just check it (false) |
- Returns
- true if the action has been performed, false if it is malformed
Definition at line 369 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_command_actions()
static void busvoodoo_uart_generic_command_actions |
( |
void * |
argument | ) |
|
|
static |
◆ busvoodoo_uart_generic_command_error()
static void busvoodoo_uart_generic_command_error |
( |
void * |
argument | ) |
|
|
static |
command to verify incoming transmission for error
- Parameters
-
[in] | argument | argument not required |
Definition at line 645 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_command_receive()
static void busvoodoo_uart_generic_command_receive |
( |
void * |
argument | ) |
|
|
static |
◆ busvoodoo_uart_generic_command_transceive()
static void busvoodoo_uart_generic_command_transceive |
( |
void * |
argument | ) |
|
|
static |
command to transmit and receive data
- Parameters
-
[in] | argument | no argument required |
Definition at line 585 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_command_transmit()
static void busvoodoo_uart_generic_command_transmit |
( |
void * |
argument | ) |
|
|
static |
command to transmit a string
- Parameters
-
[in] | argument | string to transmit (CR+LF when none provided) |
Definition at line 506 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_configure()
provide the generic USART with mode specific information
- Parameters
-
[in] | conf | USART mode specific information |
- Returns
- if configuration is valid
Definition at line 69 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_setup()
bool busvoodoo_uart_generic_setup |
( |
char ** |
prefix, |
|
|
const char * |
line |
|
) |
| |
setup generic UART mode
- Parameters
-
[out] | prefix | terminal prompt prefix |
[in] | line | terminal prompt line to configure mode |
- Returns
- if setup is complete
- Note
- run busvoodoo_uart_generic_configure before
Definition at line 88 of file busvoodoo_uart_generic.c.
◆ busvoodoo_uart_generic_write()
static void busvoodoo_uart_generic_write |
( |
uint8_t |
value | ) |
|
|
static |