|
GPS Device
|
Functions | |
| static ERR_te | button_getpushed_handler (uint32_t argc, char **argv) |
| CLI handler for the "getpushed" command. Reports the debounced pushed state of a button. | |
| static ERR_te | button_getheld_handler (uint32_t argc, char **argv) |
| CLI handler for the "getheld" command. Reports the held state of a button. | |
| static ERR_te | button_cmd_info_handler (uint32_t argc, char **argv) |
| CLI handler for the "info" command. Logs the names of all registered buttons. | |
|
static |
CLI handler for the "getpushed" command. Reports the debounced pushed state of a button.
Expected invocation: button getpushed <name>
Searches the registered button pool for a handle whose name matches argv[2], then calls button_get_pushed_state and logs the result.
| [in] | argc | Argument count. Must be exactly 3. |
| [in] | argv | Argument list: argv[0] = "button", argv[1] = "getpushed", argv[2] = button name. |
argc != 3 or no button with the given name existsDefinition at line 574 of file button.c.

|
static |
CLI handler for the "getheld" command. Reports the held state of a button.
Expected invocation: button getheld <name>
Searches the registered button pool for a handle whose name matches argv[2], then calls button_get_held_state and logs the result.
| [in] | argc | Argument count. Must be exactly 3. |
| [in] | argv | Argument list: argv[0] = "button", argv[1] = "getheld", argv[2] = button name. |
argc != 3 or no button with the given name existsDefinition at line 634 of file button.c.

|
static |
CLI handler for the "info" command. Logs the names of all registered buttons.
Expected invocation: button info
Iterates over the internal button pool and logs the name of every slot that is currently in use.
| [in] | argc | Argument count. Must be exactly 2. |
| [in] | argv | Argument list: argv[0] = "button", argv[1] = "info". |
argc != 2 Definition at line 692 of file button.c.