BusVoodoo RS-485 mode (code)
More...
Go to the source code of this file.
|
enum | busvoodoo_rs485_setting_t {
BUSVOODOO_RS485_SETTING_NONE,
BUSVOODOO_RS485_SETTING_BAUDRATE,
BUSVOODOO_RS485_SETTING_DATABITS,
BUSVOODOO_RS485_SETTING_PARITY,
BUSVOODOO_RS485_SETTING_STOPBITS,
BUSVOODOO_RS485_SETTING_DONE
} |
| mode setup stage
|
|
◆ busvoodoo_rs485_action()
static bool busvoodoo_rs485_action |
( |
const char * |
action, |
|
|
uint32_t |
repetition, |
|
|
bool |
perform |
|
) |
| |
|
static |
perform RS-485 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 308 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_command_actions()
static void busvoodoo_rs485_command_actions |
( |
void * |
argument | ) |
|
|
static |
command to perform actions
- Parameters
-
[in] | argument | actions to perform |
Definition at line 409 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_command_error()
static void busvoodoo_rs485_command_error |
( |
void * |
argument | ) |
|
|
static |
command to verify incoming transmission for error
- Parameters
-
[in] | argument | argument not required |
Definition at line 586 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_command_receive()
static void busvoodoo_rs485_command_receive |
( |
void * |
argument | ) |
|
|
static |
command to receive data
- Parameters
-
[in] | argument | in which format to display |
Definition at line 474 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_command_transceive()
static void busvoodoo_rs485_command_transceive |
( |
void * |
argument | ) |
|
|
static |
command to transmit and receive data
- Parameters
-
[in] | argument | no argument required |
Definition at line 541 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_command_transmit()
static void busvoodoo_rs485_command_transmit |
( |
void * |
argument | ) |
|
|
static |
command to transmit a string
- Parameters
-
[in] | argument | string to transmit (CR+LF when none provided) |
Definition at line 445 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_setup()
static bool busvoodoo_rs485_setup |
( |
char ** |
prefix, |
|
|
const char * |
line |
|
) |
| |
|
static |
setup RS-485 mode
- Parameters
-
[out] | prefix | terminal prompt prefix |
[in] | line | terminal prompt line to configure mode |
- Returns
- if setup is complete
Definition at line 68 of file busvoodoo_rs485.c.
◆ busvoodoo_rs485_write()
static void busvoodoo_rs485_write |
( |
uint16_t |
value | ) |
|
|
static |
◆ busvoodoo_rs485_mode
Initial value:= {
.name = "rs485",
.description = "Recommended Standard 485/422",
.full_only = true,
}
static const struct menu_command_t busvoodoo_rs485_commands[]
RS-485 menu commands.
static bool busvoodoo_rs485_setup(char **prefix, const char *line)
setup RS-485 mode
#define LENGTH(x)
get the length of an array
static void busvoodoo_rs485_exit(void)
exit RS-485 mode
RS-485 mode interface definition.
Definition at line 640 of file busvoodoo_rs485.c.