Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_cli_command_parser.h
Go to the documentation of this file.
1
10#ifndef TR_CLI_COMMAND_PARSER_H
11#define TR_CLI_COMMAND_PARSER_H
12
13#include <stdint.h>
15
16#define TR_ARGUMENT_PARSER_MAX_ARGS (15)
17
18void tr_cli_parse_command(const tr_command_s *cmd_table,
19 int argc,
20 char **argv);
21
22uint8_t tr_cli_get_option(int argc,
23 char *argv[],
24 char *opt_string,
25 char **ret_arg);
26
27uint64_t tr_dec_or_hex_string_to_int(const char *number_string);
28
29#endif // TR_CLI_COMMAND_PARSER_H
Definition tr_cli_command_table.h:15
uint64_t tr_dec_or_hex_string_to_int(const char *number_string)
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)
common CLI command table structure