|
GPS Device
|
Functions | |
| static ERR_te | sd_cmd_list_handler (uint32_t argc, char **argv) |
| CLI handler for the "list" command. Logs the names of all active SD card handles. | |
| static ERR_te | sd_cmd_info_handler (uint32_t argc, char **argv) |
| CLI handler for the "info" command. Logs detailed information about a named SD card handle. | |
|
static |
CLI handler for the "list" command. Logs the names of all active SD card handles.
Expected invocation: sd list
| [in] | argc | Argument count. Must be exactly 2. |
| [in] | argv | Argument list: argv[0] = "sd", argv[1] = "list". |
argc != 2 Definition at line 1761 of file sd.c.
|
static |
CLI handler for the "info" command. Logs detailed information about a named SD card handle.
Expected invocation: sd info <n>
Searches the pool for a handle whose name matches argv[2] and logs its type (SDSC/SDHC), addressing mode (byte/block), capacity in MB, block size in bytes, and block count.
| [in] | argc | Argument count. Must be exactly 3. |
| [in] | argv | Argument list: argv[0] = "sd", argv[1] = "info", argv[2] = SD card handle name. |
argc != 3 or no handle with the given name exists Definition at line 1803 of file sd.c.
