mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 22:39:54 +00:00
[cli] refine CLI APIs (#3501)
This commit is contained in:
@@ -110,7 +110,7 @@ void otCliUartInit(otInstance *aInstance);
|
||||
* @param[in] aUserCommands A pointer to an array with user commands.
|
||||
* @param[in] aLength @p aUserCommands length.
|
||||
*/
|
||||
void otCliUartSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength);
|
||||
void otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength);
|
||||
|
||||
/**
|
||||
* Write a number of bytes to the CLI console as a hex string.
|
||||
@@ -118,7 +118,7 @@ void otCliUartSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength
|
||||
* @param[in] aBytes A pointer to data which should be printed.
|
||||
* @param[in] aLength @p aBytes length.
|
||||
*/
|
||||
void otCliUartOutputBytes(const uint8_t *aBytes, uint8_t aLength);
|
||||
void otCliOutputBytes(const uint8_t *aBytes, uint8_t aLength);
|
||||
|
||||
/**
|
||||
* Write formatted string to the CLI console
|
||||
@@ -126,7 +126,7 @@ void otCliUartOutputBytes(const uint8_t *aBytes, uint8_t aLength);
|
||||
* @param[in] aFmt A pointer to the format string.
|
||||
* @param[in] ... A matching list of arguments.
|
||||
*/
|
||||
void otCliUartOutputFormat(const char *aFmt, ...);
|
||||
void otCliOutputFormat(const char *aFmt, ...);
|
||||
|
||||
/**
|
||||
* Write string to the CLI console
|
||||
@@ -134,14 +134,14 @@ void otCliUartOutputFormat(const char *aFmt, ...);
|
||||
* @param[in] aString A pointer to the string, which may not be null-terminated.
|
||||
* @param[in] aLength Number of bytes.
|
||||
*/
|
||||
void otCliUartOutput(const char *aString, uint16_t aLength);
|
||||
void otCliOutput(const char *aString, uint16_t aLength);
|
||||
|
||||
/**
|
||||
* Write error code to the CLI console
|
||||
*
|
||||
* @param[in] aError Error code value.
|
||||
*/
|
||||
void otCliUartAppendResult(otError aError);
|
||||
void otCliAppendResult(otError aError);
|
||||
|
||||
/**
|
||||
* Callback to write the OpenThread Log to the CLI console
|
||||
|
||||
Reference in New Issue
Block a user