Factory Diagnostics - Thread Stack#

This module includes functions that control the Thread stack's execution.

Functions#

void
otDiagSetOutputCallback(otInstance *aInstance, otDiagOutputCallback aCallback, void *aContext)

Sets the diag output callback.

otDiagProcessCmd(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[])

Processes a factory diagnostics command line.

otDiagProcessCmdLine(otInstance *aInstance, const char *aString)

Processes a factory diagnostics command line.

bool
otDiagIsEnabled(otInstance *aInstance)

Indicates whether or not the factory diagnostics mode is enabled.

Typedef Documentation#

otDiagOutputCallback#

typedef otPlatDiagOutputCallback otDiagOutputCallback

Definition at line 55 of file include/openthread/diag.h

Function Documentation#

otDiagSetOutputCallback#

void otDiagSetOutputCallback (otInstance * aInstance, otDiagOutputCallback aCallback, void * aContext)

Sets the diag output callback.

Parameters
[in]aInstance

The OpenThread instance structure.

[in]aCallback

A pointer to a function that is called on outputting diag messages.

[in]aContext

A pointer to the user context.


Definition at line 64 of file include/openthread/diag.h

otDiagProcessCmd#

otError otDiagProcessCmd (otInstance * aInstance, uint8_t aArgsLength, char * aArgs)

Processes a factory diagnostics command line.

Parameters
[in]aInstance

A pointer to an OpenThread instance.

[in]aArgsLength

The number of elements in aArgs.

[in]aArgs

An array of arguments.


Definition at line 77 of file include/openthread/diag.h

otDiagProcessCmdLine#

otError otDiagProcessCmdLine (otInstance * aInstance, const char * aString)

Processes a factory diagnostics command line.

Parameters
[in]aInstance

A pointer to an OpenThread instance.

[in]aString

A NULL-terminated input string.


Definition at line 90 of file include/openthread/diag.h

otDiagIsEnabled#

bool otDiagIsEnabled (otInstance * aInstance)

Indicates whether or not the factory diagnostics mode is enabled.

Parameters
[in]aInstance

A pointer to an OpenThread instance.


Definition at line 100 of file include/openthread/diag.h