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]aInstanceThe OpenThread instance for current request.
[in]aArgsLengthThe number of arguments in aArgs.
[in]aArgsThe arguments of command line.
[out]aOutputThe execution result.
[in]aOutputMaxLenThe output buffer size.
Return values
OT_ERROR_INVALID_ARGSThe command is supported but invalid arguments provided.
OT_ERROR_NONEThe command is successfully process.
OT_ERROR_INVALID_COMMANDThe command is not valid or not supported.