5.13.0.0R1
Software Development Kit
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

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.
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.
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.