Factory Diagnostics - Thread Stack#
This module includes functions that control the Thread stack's execution.
Typedefs#
Functions#
Sets the diag output callback.
Processes a factory diagnostics command line.
Processes a factory diagnostics command line.
Indicates whether or not the factory diagnostics mode is enabled.
Function Documentation#
otDiagSetOutputCallback#
void otDiagSetOutputCallback (otInstance * aInstance, otDiagOutputCallback aCallback, void * aContext)
Sets the diag output callback.
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [in] | aInstance | The OpenThread instance structure. |
otDiagOutputCallback | [in] | aCallback | A pointer to a function that is called on outputting diag messages. |
void * | [in] | aContext | A pointer to the user context. |
otDiagProcessCmd#
otError otDiagProcessCmd (otInstance * aInstance, uint8_t aArgsLength, char * aArgs)
Processes a factory diagnostics command line.
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [in] | aInstance | A pointer to an OpenThread instance. |
uint8_t | [in] | aArgsLength | The number of elements in |
char * | [in] | aArgs | An array of arguments. |
otDiagProcessCmdLine#
otError otDiagProcessCmdLine (otInstance * aInstance, const char * aString)
Processes a factory diagnostics command line.
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [in] | aInstance | A pointer to an OpenThread instance. |
const char * | [in] | aString | A NULL-terminated input string. |
otDiagIsEnabled#
bool otDiagIsEnabled (otInstance * aInstance)
Indicates whether or not the factory diagnostics mode is enabled.
Type | Direction | Argument Name | Description |
---|---|---|---|
otInstance * | [in] | aInstance | A pointer to an OpenThread instance. |