5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
command_console.c File Reference

Functions

cmd_err_t console_parse_cmd (const char *line)
 
int hex_str_to_int (const char *hex_str)
 
int str_to_int (const char *str)
 

Function Documentation

◆ console_parse_cmd()

cmd_err_t console_parse_cmd ( const char * line)

Break an input line into command and arguments and invoke it.

Parameters
[in]lineThe line of input.
Returns
Console error code indicating if the command was parsed correctly.

◆ hex_str_to_int()

int hex_str_to_int ( const char * hex_str)

Convert a hexidecimal string to an integer.

Parameters
[in]hex_strThe string containing the hex value.
Returns
The value represented by the string.

◆ str_to_int()

int str_to_int ( const char * str)

Convert a decimal or hexidecimal string to an integer.

Parameters
[in]strThe string containing the value.
Returns
The value represented by the string.