Plat-coprocessor-rpc
This module includes the platform abstraction for Co-processor RPC (CRPC) features.
Functions | |
otError | otPlatCRPCProcess (otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen) |
This function processes a Co-processor RPC command line. |
Detailed Description
This module includes the platform abstraction for Co-processor RPC (CRPC) features.
Function Documentation
◆ otPlatCRPCProcess()
otError otPlatCRPCProcess | ( | otInstance * | aInstance, |
uint8_t | aArgsLength, |
||
char * | aArgs[], |
||
char * | aOutput, |
||
size_t | aOutputMaxLen |
||
) |
This function processes a Co-processor RPC command line.
- Parameters
-
[in] aInstance
The OpenThread instance for current request. [in] aArgsLength
The number of arguments in aArgs
.[in] aArgs
The arguments of command line. [out] aOutput
The execution result. [in] aOutputMaxLen
The output buffer size.
- Return values
-
OT_ERROR_INVALID_ARGS
The command is supported but invalid arguments provided. OT_ERROR_NONE
The command is successfully process. OT_ERROR_INVALID_COMMAND
The command is not valid or not supported.