工場診断 - プラットフォーム
このモジュールには、診断機能のプラットフォーム抽象化が含まれています。
概要
列挙型 |
|
|---|---|
otGpioMode{
|
enum gpio モードを定義します。 |
関数 |
|
|---|---|
otPlatDiagAlarmCallback(otInstance *aInstance)
|
void
アラーム イベントを処理します。
|
otPlatDiagChannelSet(uint8_t aChannel)
|
void
工場出荷時診断に使用するチャネルを設定します。
|
otPlatDiagGpioGet(uint32_t aGpio, bool *aValue)
|
gpio 値を取得します。
|
otPlatDiagGpioGetMode(uint32_t aGpio, otGpioMode *aMode)
|
gpio モードを取得します。
|
otPlatDiagGpioSet(uint32_t aGpio, bool aValue)
|
gpio 値を設定します。
|
otPlatDiagGpioSetMode(uint32_t aGpio, otGpioMode aMode)
|
gpio モードを設定します。
|
otPlatDiagModeGet(void)
|
bool
出荷時診断モードが有効かどうかを示します。
|
otPlatDiagModeSet(bool aMode)
|
void
出荷時診断モードを有効または無効にします。
|
otPlatDiagProcess(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
工場出荷時診断のコマンドラインを処理します。
|
otPlatDiagRadioGetPowerSettings(otInstance *aInstance, uint8_t aChannel, int16_t *aTargetPower, int16_t *aActualPower, uint8_t *aRawPowerSetting, uint16_t *aRawPowerSettingLength)
|
指定されたチャネルの電源設定を取得します。
|
otPlatDiagRadioGetRawPowerSetting(otInstance *aInstance, uint8_t *aRawPowerSetting, uint16_t *aRawPowerSettingLength)
|
診断モジュールの無線通信の未加工電力の設定を取得します。
|
otPlatDiagRadioRawPowerSettingEnable(otInstance *aInstance, bool aEnable)
|
otPlatDiagRadioSetRawPowerSetting() によって設定された未加工電力設定を使用するために、プラットフォーム レイヤを有効または無効にします。 |
otPlatDiagRadioReceived(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
|
void
受信した無線フレームを処理します。
|
otPlatDiagRadioSetRawPowerSetting(otInstance *aInstance, const uint8_t *aRawPowerSetting, uint16_t aRawPowerSettingLength)
|
診断モジュールの無線通信の未加工電力の設定を設定します。
|
otPlatDiagRadioTransmitCarrier(otInstance *aInstance, bool aEnable)
|
連続的なキャリア波を送信するためのプラットフォーム レイヤの開始/停止。
|
otPlatDiagRadioTransmitStream(otInstance *aInstance, bool aEnable)
|
キャラクターのストリームを送信するプラットフォーム レイヤを開始/停止する。
|
otPlatDiagTxPowerSet(int8_t aTxPower)
|
void
工場出荷時診断に使用する送信電力を設定します。
|
列挙型
otGpioMode
otGpioMode
gpio モードを定義します。
| プロパティ | |
|---|---|
OT_GPIO_MODE_INPUT
|
プル抵抗のない入力モード。 |
OT_GPIO_MODE_OUTPUT
|
出力モード。 |
関数
otPlatDiagAlarmCallback
void otPlatDiagAlarmCallback( otInstance *aInstance )
アラーム イベントを処理します。
| 詳細 | |||
|---|---|---|---|
| パラメータ |
|
||
otPlatDiagChannelSet
void otPlatDiagChannelSet( uint8_t aChannel )
工場出荷時診断に使用するチャネルを設定します。
| 詳細 | |||
|---|---|---|---|
| パラメータ |
|
||
otPlatDiagGpioGet
otError otPlatDiagGpioGet( uint32_t aGpio, bool *aValue )
gpio 値を取得します。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||
| 戻り値 |
|
||||||||||
otPlatDiagGpioGetMode
otError otPlatDiagGpioGetMode( uint32_t aGpio, otGpioMode *aMode )
gpio モードを取得します。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||
| 戻り値 |
|
||||||||||
otPlatDiagGpioSet
otError otPlatDiagGpioSet( uint32_t aGpio, bool aValue )
gpio 値を設定します。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||
| 戻り値 |
|
||||||||||
otPlatDiagGpioSetMode
otError otPlatDiagGpioSetMode( uint32_t aGpio, otGpioMode aMode )
gpio モードを設定します。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||
| 戻り値 |
|
||||||||||
otPlatDiagModeGet
bool otPlatDiagModeGet( void )
出荷時診断モードが有効かどうかを示します。
| 詳細 | |
|---|---|
| 戻り値 |
出荷時診断モードが有効になっている場合は TRUE、それ以外の場合は FALSE です。
|
otPlatDiagModeSet
void otPlatDiagModeSet( bool aMode )
出荷時診断モードを有効または無効にします。
| 詳細 | |||
|---|---|---|---|
| パラメータ |
|
||
otPlatDiagProcess
otError otPlatDiagProcess( otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen )
工場出荷時診断のコマンドラインを処理します。
この関数の出力(aOutput に書き込まれるコンテンツ)は \0 で終了しなければならず、\0 は出力バッファ内にあります。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||
| 戻り値 |
|
||||||||||
otPlatDiagRadioGetPowerSettings
otError otPlatDiagRadioGetPowerSettings( otInstance *aInstance, uint8_t aChannel, int16_t *aTargetPower, int16_t *aActualPower, uint8_t *aRawPowerSetting, uint16_t *aRawPowerSettingLength )
指定されたチャネルの電源設定を取得します。
| 詳細 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||||||
| 戻り値 |
|
||||||||||||
otPlatDiagRadioGetRawPowerSetting
otError otPlatDiagRadioGetRawPowerSetting( otInstance *aInstance, uint8_t *aRawPowerSetting, uint16_t *aRawPowerSettingLength )
診断モジュールの無線通信の未加工電力の設定を取得します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||||
| 戻り値 |
|
||||||||
otPlatDiagRadioRawPowerSettingEnable
otError otPlatDiagRadioRawPowerSettingEnable( otInstance *aInstance, bool aEnable )
otPlatDiagRadioSetRawPowerSetting() によって設定された未加工電力設定を使用するために、プラットフォーム レイヤを有効または無効にします。
| 詳細 | |||||
|---|---|---|---|---|---|
| パラメータ |
|
||||
| 戻り値 |
|
||||
otPlatDiagRadioReceived
void otPlatDiagRadioReceived( otInstance *aInstance, otRadioFrame *aFrame, otError aError )
受信した無線フレームを処理します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||
otPlatDiagRadioSetRawPowerSetting
otError otPlatDiagRadioSetRawPowerSetting( otInstance *aInstance, const uint8_t *aRawPowerSetting, uint16_t aRawPowerSettingLength )
診断モジュールの無線通信の未加工電力の設定を設定します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||
| 戻り値 |
|
||||||
otPlatDiagRadioTransmitCarrier
otError otPlatDiagRadioTransmitCarrier( otInstance *aInstance, bool aEnable )
連続的なキャリア波を送信するためのプラットフォーム レイヤの開始/停止。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||
| 戻り値 |
|
||||||
otPlatDiagRadioTransmitStream
otError otPlatDiagRadioTransmitStream( otInstance *aInstance, bool aEnable )
キャラクターのストリームを送信するプラットフォーム レイヤを開始/停止する。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ |
|
||||||
| 戻り値 |
|
||||||
otPlatDiagTxPowerSet
void otPlatDiagTxPowerSet( int8_t aTxPower )
工場出荷時診断に使用する送信電力を設定します。
| 詳細 | |||
|---|---|---|---|
| パラメータ |
|
||
関連情報
OpenThread API リファレンスのトピックは、GitHub で入手できるソースコードに由来しています。 詳細について、またはドキュメントへの投稿については、リソースをご覧ください。