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)
 

Functions

void tr_cli_parse_command (const tr_command_s *cmd_table, int argc, char **argv)
 
uint8_t tr_cli_get_option (int argc, char *argv[], char *opt_string, char **ret_arg)
 
uint64_t tr_dec_or_hex_string_to_int (const char *number_string)
 

Detailed Description

common CLI utility for parsing incoming commands


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


Macro Definition Documentation

◆ TR_ARGUMENT_PARSER_MAX_ARGS

#define TR_ARGUMENT_PARSER_MAX_ARGS   (15)

Function Documentation

◆ tr_cli_get_option()

uint8_t tr_cli_get_option ( int argc,
char * argv[],
char * opt_string,
char ** ret_arg )

◆ tr_cli_parse_command()

void tr_cli_parse_command ( const tr_command_s * cmd_table,
int argc,
char ** argv )

◆ tr_dec_or_hex_string_to_int()

uint64_t tr_dec_or_hex_string_to_int ( const char * number_string)