|
GPS Device
|
Functions | |
| static ERR_te | io_cmd_w_handler (uint32_t argc, char **argv) |
| CLI handler for the "w" command. Writes a logic level to a named IO pin. | |
| static ERR_te | io_cmd_r_handler (uint32_t argc, char **argv) |
| CLI handler for the "r" command. Reads and logs the logic level of a named IO pin. | |
| static ERR_te | io_cmd_info_handler (uint32_t argc, char **argv) |
| CLI handler for the "info" command. Logs the name and GPIO mode of all active IO handles. | |
|
static |
CLI handler for the "w" command. Writes a logic level to a named IO pin.
Expected invocation: io w <name> <1|on|0|off>
Searches the registered IO pool for a handle whose name matches argv[2], then calls io_write with HIGH or LOW depending on argv[3].
| [in] | argc | Argument count. Must be exactly 4. |
| [in] | argv | Argument list: argv[0] = "io", argv[1] = "w", argv[2] = IO name, argv[3] = "1", "on", "0", or "off". |
argc != 4, the name is not found, or the value string is not recognizedDefinition at line 392 of file io.c.

|
static |
CLI handler for the "r" command. Reads and logs the logic level of a named IO pin.
Expected invocation: io r <name>
Searches the registered IO pool for a handle whose name matches argv[2], then calls io_read and logs the result.
| [in] | argc | Argument count. Must be exactly 3. |
| [in] | argv | Argument list: argv[0] = "io", argv[1] = "r", argv[2] = IO name. |
argc != 3 or the name is not foundDefinition at line 463 of file io.c.

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