Trident IoT SDK
Loading...
Searching...
No Matches
tr_cli_command_parser.h File Reference

common CLI utility for parsing incoming commands More...

#include <stdint.h>
#include "tr_cli_command_table.h"
Include dependency graph for tr_cli_command_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TR_ARGUMENT_PARSER_MAX_ARGS   (15)
 Maximum number of arguments that can be parsed from a command line.

Functions

void tr_cli_parse_command (const tr_command_s *cmd_table, int argc, char **argv)
 Parses a command and executes the appropriate handler.
uint8_t tr_cli_get_option (int argc, char *argv[], char *opt_string, char **ret_arg)
 Gets an option from the command line arguments.
uint64_t tr_dec_or_hex_string_to_int (const char *number_string)
 Converts a decimal or hexadecimal string to an integer.

Detailed Description

common CLI utility for parsing incoming commands


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com