BusVoodoo 1-wire mode (code)
More...
Go to the source code of this file.
|
enum | busvoodoo_onewire_setting_t { BUSVOODOO_ONEWIRE_SETTING_NONE,
BUSVOODOO_ONEWIRE_SETTING_PULLUP,
BUSVOODOO_ONEWIRE_SETTING_POWER,
BUSVOODOO_ONEWIRE_SETTING_DONE
} |
| mode setup stage
|
|
◆ busvoodoo_onewire_action()
static bool busvoodoo_onewire_action |
( |
const char * |
action, |
|
|
uint32_t |
repetition, |
|
|
bool |
perform |
|
) |
| |
|
static |
perform 1-wire 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 172 of file busvoodoo_onewire.c.
◆ busvoodoo_onewire_command_actions()
static void busvoodoo_onewire_command_actions |
( |
void * |
argument | ) |
|
|
static |
command to perform actions
- Parameters
-
[in] | argument | actions to perform |
Definition at line 294 of file busvoodoo_onewire.c.
◆ busvoodoo_onewire_rom_search()
static void busvoodoo_onewire_rom_search |
( |
void * |
argument | ) |
|
|
static |
command to perform ROM search
- Parameters
-
[in] | argument | if only ROMs with alarms should be searched |
Definition at line 327 of file busvoodoo_onewire.c.
◆ busvoodoo_onewire_setup()
static bool busvoodoo_onewire_setup |
( |
char ** |
prefix, |
|
|
const char * |
line |
|
) |
| |
|
static |
setup 1-wire mode
- Parameters
-
[out] | prefix | terminal prompt prefix |
[in] | line | terminal prompt line to configure mode |
- Returns
- if setup is complete
Definition at line 57 of file busvoodoo_onewire.c.
◆ busvoodoo_onewire_write()
static void busvoodoo_onewire_write |
( |
uint8_t |
value | ) |
|
|
static |
◆ busvoodoo_onewire_commands
Initial value:= {
{
.shortcut = 'a',
.name = "action",
.command_description = "perform protocol actions",
.argument_description = "[actions]",
},
{
.shortcut = 's',
.name = "search",
.command_description = "perform ROM search",
.argument_description = "[alarm]",
},
}
static void busvoodoo_onewire_rom_search(void *argument)
command to perform ROM search
static void busvoodoo_onewire_command_actions(void *argument)
command to perform actions
1-wire menu commands
Definition at line 363 of file busvoodoo_onewire.c.
◆ busvoodoo_onewire_mode
Initial value:= {
.name = "1-wire",
.description = "1-Wire",
.full_only = false,
}
static void busvoodoo_onewire_exit(void)
exit 1-wire mode
#define LENGTH(x)
get the length of an array
static bool busvoodoo_onewire_setup(char **prefix, const char *line)
setup 1-wire mode
static const struct menu_command_t busvoodoo_onewire_commands[]
1-wire menu commands
1-wire mode interface definition
Definition at line 382 of file busvoodoo_onewire.c.