nRF5 SDK for Thread and Zigbee v1.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Factory Diagnostics

This module includes the platform abstraction for diagnostics features. More...

Functions

void otPlatDiagProcess (otInstance *aInstance, int argc, char *argv[], char *aOutput, size_t aOutputMaxLen)
 
void otPlatDiagModeSet (bool aMode)
 
bool otPlatDiagModeGet (void)
 
void otPlatDiagChannelSet (uint8_t aChannel)
 
void otPlatDiagTxPowerSet (int8_t aTxPower)
 
void otPlatDiagRadioReceived (otInstance *aInstance, otRadioFrame *aFrame, otError aError)
 
void otPlatDiagAlarmCallback (otInstance *aInstance)
 

Detailed Description

This module includes the platform abstraction for diagnostics features.

Function Documentation

void otPlatDiagAlarmCallback ( otInstance aInstance)

This function processes the alarm event.

Parameters
[in]aInstanceThe OpenThread instance for current request.
void otPlatDiagChannelSet ( uint8_t  aChannel)

This function sets the channel to use for factory diagnostics.

Parameters
[in]aChannelThe channel value.
bool otPlatDiagModeGet ( void  )

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

Returns
TRUE if factory diagnostics mode is enabled, FALSE otherwise.
void otPlatDiagModeSet ( bool  aMode)

This function enables/disables the factory diagnostics mode.

Parameters
[in]aModeTRUE to enable diagnostics mode, FALSE otherwise.
void otPlatDiagProcess ( otInstance aInstance,
int  argc,
char *  argv[],
char *  aOutput,
size_t  aOutputMaxLen 
)

This function processes a factory diagnostics command line.

Parameters
[in]aInstanceThe OpenThread instance for current request.
[in]argcThe argument counter of diagnostics command line.
[in]argvThe argument vector of diagnostics command line.
[out]aOutputThe diagnostics execution result.
[in]aOutputMaxLenThe output buffer size.
void otPlatDiagRadioReceived ( otInstance aInstance,
otRadioFrame aFrame,
otError  aError 
)

This function processes the received radio frame.

Parameters
[in]aInstanceThe OpenThread instance for current request.
[in]aFrameThe received radio frame.
[in]aErrorThe received radio frame status.
void otPlatDiagTxPowerSet ( int8_t  aTxPower)

This function sets the transmit power to use for factory diagnostics.

Parameters
[in]aTxPowerThe transmit power value.