Factory Diagnostics

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

Summary

Functions

otDiagInit(otInstance *aInstance)
void
Initialize the diagnostics module.
otDiagIsEnabled(void)
bool
This function indicates whether or not the factory diagnostics mode is enabled.
otDiagProcessCmd(int aArgCount, char *aArgVector[], char *aOutput, size_t aOutputMaxLen)
void
This function processes a factory diagnostics command line.
otDiagProcessCmdLine(const char *aString, char *aOutput, size_t aOutputMaxLen)
void
This function processes a factory diagnostics command line.

Functions

otDiagInit

void otDiagInit(
  otInstance *aInstance
)

Initialize the diagnostics module.

Details
Parameters
[in] aInstance
A pointer to the OpenThread instance.

otDiagIsEnabled

bool otDiagIsEnabled(
  void
)

This function indicates whether or not the factory diagnostics mode is enabled.

Details
Returns
TRUE if factory diagnostics mode is enabled, FALSE otherwise.

otDiagProcessCmd

void otDiagProcessCmd(
  int aArgCount,
  char *aArgVector[],
  char *aOutput,
  size_t aOutputMaxLen
)

This function processes a factory diagnostics command line.

Details
Parameters
[in] aArgCount
The argument counter of diagnostics command line.
[in] aArgVector
The argument vector of diagnostics command line.
[out] aOutput
The diagnostics execution result.
[in] aOutputMaxLen
The output buffer size.

otDiagProcessCmdLine

void otDiagProcessCmdLine(
  const char *aString,
  char *aOutput,
  size_t aOutputMaxLen
)

This function processes a factory diagnostics command line.

Details
Parameters
[in] aString
A NULL-terminated input string.
[out] aOutput
The diagnostics execution result.
[in] aOutputMaxLen
The output buffer size.