出荷時診断 - プラットフォーム
このモジュールには、診断機能のためのプラットフォーム抽象化が含まれています。
概要
関数 |
|
---|---|
otPlatDiagAlarmCallback(otInstance *aInstance)
|
void
この関数は、アラーム イベントを処理します。
|
otPlatDiagChannelSet(uint8_t aChannel)
|
void
この関数は、ファクトリー診断に使用するチャネルを設定します。
|
otPlatDiagModeGet(void)
|
bool
この関数は、出荷時診断モードが有効かどうかを示します。
|
otPlatDiagModeSet(bool aMode)
|
void
出荷時診断モードを有効または無効にします。
|
otPlatDiagProcess(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
この関数は、出荷時診断のコマンドラインを処理します。
|
otPlatDiagRadioReceived(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
|
void
この関数は、受信した無線フレームを処理します。
|
otPlatDiagTxPowerSet(int8_t aTxPower)
|
void
この関数は、診断に使用する送信電力を設定します。
|
関数
otPlatDiagAlarmCallback
void otPlatDiagAlarmCallback( otInstance *aInstance )
この関数は、アラーム イベントを処理します。
詳細 | |||
---|---|---|---|
パラメータ |
|
otPlatDiagChannelSet
void otPlatDiagChannelSet( uint8_t aChannel )
この関数は、ファクトリー診断に使用するチャネルを設定します。
詳細 | |||
---|---|---|---|
パラメータ |
|
otPlatDiagModeGet(OTPLatDiagMode の取得)
bool otPlatDiagModeGet( void )
この関数は、出荷時診断モードが有効かどうかを示します。
詳細 | |
---|---|
戻り値 |
出荷時診断モードが有効になっている場合は TRUE、それ以外の場合は FALSE。
|
otPlatDiagModeSet(オットラットの Diag モードセット)
void otPlatDiagModeSet( bool aMode )
出荷時診断モードを有効または無効にします。
詳細 | |||
---|---|---|---|
パラメータ |
|
otPlatDiagProcess(OTPlatgiagProcess)
otError otPlatDiagProcess( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen )
この関数は、出荷時診断のコマンドラインを処理します。
この関数の出力(aOutput
に書き込まれたコンテンツ)は \0
で終了しなければならず、\0
は出力バッファ内にあります。
詳細 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
パラメータ |
|
||||||||||
戻り値 |
|
otPlatDiagRadioReceived(相手)
void otPlatDiagRadioReceived( otInstance *aInstance, otRadioFrame *aFrame, otError aError )
この関数は、受信した無線フレームを処理します。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
otPlatDiagTxPowerSet
void otPlatDiagTxPowerSet( int8_t aTxPower )
この関数は、診断に使用する送信電力を設定します。
詳細 | |||
---|---|---|---|
パラメータ |
|
リソース
OpenThread API リファレンスのトピックは、GitHub で入手可能なソースコードに基づいています。 詳細またはドキュメントへの投稿については、リソースをご覧ください。