Factory Diagnostics - Platform
This module includes the platform abstraction for diagnostics features.
Summary
Functions |
|
---|---|
otPlatDiagAlarmCallback(otInstance *aInstance)
|
void
This function processes the alarm event.
|
otPlatDiagChannelSet(uint8_t aChannel)
|
void
This function sets the channel to use for factory diagnostics.
|
otPlatDiagModeGet(void)
|
bool
This function indicates whether or not factory diagnostics mode is enabled.
|
otPlatDiagModeSet(bool aMode)
|
void
This function enables/disables the factory diagnostics mode.
|
otPlatDiagProcess(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
This function processes a factory diagnostics command line.
|
otPlatDiagRadioReceived(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
|
void
This function processes the received radio frame.
|
otPlatDiagTxPowerSet(int8_t aTxPower)
|
void
This function sets the transmit power to use for factory diagnostics.
|
Functions
otPlatDiagAlarmCallback
void otPlatDiagAlarmCallback( otInstance *aInstance )
This function processes the alarm event.
Details | |||
---|---|---|---|
Parameters |
|
otPlatDiagChannelSet
void otPlatDiagChannelSet( uint8_t aChannel )
This function sets the channel to use for factory diagnostics.
Details | |||
---|---|---|---|
Parameters |
|
otPlatDiagModeGet
bool otPlatDiagModeGet( void )
This function indicates whether or not factory diagnostics mode is enabled.
Details | |
---|---|
Returns |
TRUE if factory diagnostics mode is enabled, FALSE otherwise.
|
otPlatDiagModeSet
void otPlatDiagModeSet( bool aMode )
This function enables/disables the factory diagnostics mode.
Details | |||
---|---|---|---|
Parameters |
|
otPlatDiagProcess
otError otPlatDiagProcess( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen )
This function processes a factory diagnostics command line.
The output of this function (the content written to aOutput
) MUST terminate with \0
and the \0
is within the output buffer.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
otPlatDiagRadioReceived
void otPlatDiagRadioReceived( otInstance *aInstance, otRadioFrame *aFrame, otError aError )
This function processes the received radio frame.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otPlatDiagTxPowerSet
void otPlatDiagTxPowerSet( int8_t aTxPower )
This function sets the transmit power to use for factory diagnostics.
Details | |||
---|---|---|---|
Parameters |
|
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.