77 uint16_t aBufLength,
void *aContext);
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
This file defines the types and structures used in the OpenThread library API.
const char * mName
A pointer to the command string.
Definition: cli.h:52
uint8_t otLogLevel
Log levels.
Definition: types.h:1182
void otCliConsoleInputLine(char *aBuf, uint16_t aBufLength)
This method is called to feed in a console input line.
Definition: cli_console.cpp:58
struct otCliCommand otCliCommand
This structure represents a CLI command.
void otCliUartAppendResult(otError aError)
Write error code the CLI console.
Definition: cli_uart.cpp:88
This structure represents a CLI command.
Definition: cli.h:50
void otCliUartInit(otInstance *aInstance)
Initialize the CLI UART module.
Definition: cli_uart.cpp:65
void otCliUartOutputBytes(const uint8_t *aBytes, uint8_t aLength)
Write a number of bytes to the CLI console as a hex string.
Definition: cli_uart.cpp:75
void otCliUartSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength)
Set a user command table.
Definition: cli_uart.cpp:70
void(* mCommand)(int argc, char *argv[])
A function pointer to process the command.
Definition: cli.h:53
void otCliPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat, va_list ap)
Callback to write the OpenThread Log to the CLI console.
Definition: cli_uart.cpp:295
otLogRegion
This enum represents log regions.
Definition: types.h:1188
int(* otCliConsoleOutputCallback)(const char *aBuf, uint16_t aBufLength, void *aContext)
This function pointer is called to notify about Console output.
Definition: cli.h:76
void otCliConsoleInit(otInstance *aInstance, otCliConsoleOutputCallback aCallback, void *aContext)
Initialize the CLI CONSOLE module.
Definition: cli_console.cpp:51
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
void otCliUartOutputFormat(const char *aFmt,...)
Write formatted string the CLI console.
Definition: cli_uart.cpp:80