未加工リンク
このモジュールには、未加工のリンクレイヤ構成を制御する関数が含まれています。
概要
Typedef |
|
---|---|
otLinkRawEnergyScanDone)(otInstance *aInstance, int8_t aEnergyScanMaxRssi)
|
typedefvoid(*
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。 |
otLinkRawReceiveDone)(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
|
typedefvoid(*
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。 |
otLinkRawTransmitDone)(otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFrame, otError aError)
|
typedefvoid(*
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。 |
関数 |
|
---|---|
otLinkRawEnergyScan(otInstance *aInstance, uint8_t aScanChannel, uint16_t aScanDuration, otLinkRawEnergyScanDone aCallback)
|
このメソッドは、ラジオのエネルギー スキャン シーケンスを開始します。
|
otLinkRawGetCaps(otInstance *aInstance)
|
ラジオ機能を取得します。
|
otLinkRawGetPromiscuous(otInstance *aInstance)
|
bool
この関数は無作為モードのステータスを取得します。
|
otLinkRawGetRadioTime(otInstance *aInstance)
|
uint64_t
無線チップの現在のプラットフォーム時間(64 ビット幅)を取得します。
|
otLinkRawGetRssi(otInstance *aInstance)
|
int8_t
最新の RSSI 測定値を取得します。
|
otLinkRawGetTransmitBuffer(otInstance *aInstance)
|
無線通信が送信から受信に遷移します。
|
otLinkRawIsEnabled(otInstance *aInstance)
|
bool
この関数は、未加工のリンクレイヤが有効かどうかを示します。
|
otLinkRawReceive(otInstance *aInstance)
|
ラジオをスリープから受信に移行します。
|
otLinkRawSetMacFrameCounter(otInstance *aInstance, uint32_t aMacFrameCounter)
|
現在の MAC フレーム カウンタの値を設定します。
|
otLinkRawSetMacKey(otInstance *aInstance, uint8_t aKeyIdMode, uint8_t aKeyId, const otMacKey *aPrevKey, const otMacKey *aCurrKey, const otMacKey *aNextKey)
|
MAC キーとキー インデックスを更新します。
|
otLinkRawSetPromiscuous(otInstance *aInstance, bool aEnable)
|
この関数は、無作為モードを有効または無効にします。
|
otLinkRawSetReceiveDone(otInstance *aInstance, otLinkRawReceiveDone aCallback)
|
この関数は未加工リンクレイヤを有効または無効にします。
|
otLinkRawSetShortAddress(otInstance *aInstance, uint16_t aShortAddress)
|
住所のフィルタリング用ショート アドレスを設定します。
|
otLinkRawSleep(otInstance *aInstance)
|
ラジオを [受信] から [スリープ] に移行します。
|
otLinkRawSrcMatchAddExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress)
|
参照元の一致テーブルに拡張アドレスを追加。
|
otLinkRawSrcMatchAddShortEntry(otInstance *aInstance, uint16_t aShortAddress)
|
引用元マッチテーブルに短いアドレスを追加しました。
|
otLinkRawSrcMatchClearExtEntries(otInstance *aInstance)
|
ソースのマッチテーブルからすべての拡張アドレスを削除します。
|
otLinkRawSrcMatchClearExtEntry(otInstance *aInstance, const otExtAddress *aExtAddress)
|
ラジオのソースのマッチテーブルへの拡張アドレスの削除。
|
otLinkRawSrcMatchClearShortEntries(otInstance *aInstance)
|
ソースマッチ テーブルからすべての短いアドレスを削除します。
|
otLinkRawSrcMatchClearShortEntry(otInstance *aInstance, uint16_t aShortAddress)
|
元のマッチテーブルから短いアドレスを削除しています。
|
otLinkRawSrcMatchEnable(otInstance *aInstance, bool aEnable)
|
保留中のフレームに対するソースマッチを有効または無効にします。
|
otLinkRawTransmit(otInstance *aInstance, otLinkRawTransmitDone aCallback)
|
このメソッドは、ラジオの送信シーケンスを開始します。
|
Typedef
otLinkRawEnergyScanDone
void(* otLinkRawEnergyScanDone)(otInstance *aInstance, int8_t aEnergyScanMaxRssi)
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
otLinkRawReceiveDone
void(* otLinkRawReceiveDone)(otInstance *aInstance, otRadioFrame *aFrame, otError aError)
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
otLinkRawTransmitDone
void(* otLinkRawTransmitDone)(otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFrame, otError aError)
この関数ポインタは、IEEE 802.15.4 フレームを受信したときになります。
詳細 | |||||||||
---|---|---|---|---|---|---|---|---|---|
パラメータ |
|
関数
otLinkRawEnergyScan
otError otLinkRawEnergyScan( otInstance *aInstance, uint8_t aScanChannel, uint16_t aScanDuration, otLinkRawEnergyScanDone aCallback )
このメソッドは、ラジオのエネルギー スキャン シーケンスを開始します。
詳細 | |||||||||
---|---|---|---|---|---|---|---|---|---|
パラメータ |
|
||||||||
戻り値 |
|
otLinkRawGetCaps
otRadioCaps otLinkRawGetCaps( otInstance *aInstance )
ラジオ機能を取得します。
詳細 | |||
---|---|---|---|
パラメータ |
|
||
戻り値 |
無線機能ビットベクトル。スタックによって、この値に基づいていくつかの関数が有効または無効になります。
|
otLinkRawGetPromiscuous
bool otLinkRawGetPromiscuous( otInstance *aInstance )
この関数は無作為モードのステータスを取得します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawGetRadioTime
uint64_t otLinkRawGetRadioTime( otInstance *aInstance )
無線チップの現在のプラットフォーム時間(64 ビット幅)を取得します。
詳細 | |||
---|---|---|---|
パラメータ |
|
||
戻り値 |
現在のラジオ時間(マイクロ秒単位)です。
|
otLinkRawGetRssi
int8_t otLinkRawGetRssi( otInstance *aInstance )
最新の RSSI 測定値を取得します。
詳細 | |||
---|---|---|---|
パラメータ |
|
||
戻り値 |
有効な RSSI(dBm)。RSSI が無効な場合は 127。
|
otLinkRawGetTransmitBuffer(英語)
otRadioFrame * otLinkRawGetTransmitBuffer( otInstance *aInstance )
無線通信が送信から受信に遷移します。
このメソッドは、送信バッファへのポインタを返します。
呼び出し元は、このバッファ内で IEEE 802.15.4 フレームを形成し、その後 otLinkRawTransmit() を呼び出して送信をリクエストします。
詳細 | |||
---|---|---|---|
パラメータ |
|
||
戻り値 |
送信バッファへのポインタ。未加工のリンクレイヤが有効になっていない場合は NULL。
|
otLinkRawIsEnabled(otLinkRawIsEnabled)
bool otLinkRawIsEnabled( otInstance *aInstance )
この関数は、未加工のリンクレイヤが有効かどうかを示します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawReceive
otError otLinkRawReceive( otInstance *aInstance )
ラジオをスリープから受信に移行します。
ラジオをオンにします。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSetMacFrameCounter(OTLinkRawSetMacFrameCounter)
otError otLinkRawSetMacFrameCounter( otInstance *aInstance, uint32_t aMacFrameCounter )
現在の MAC フレーム カウンタの値を設定します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSetMacKey
otError otLinkRawSetMacKey( otInstance *aInstance, uint8_t aKeyIdMode, uint8_t aKeyId, const otMacKey *aPrevKey, const otMacKey *aCurrKey, const otMacKey *aNextKey )
MAC キーとキー インデックスを更新します。
詳細 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
パラメータ |
|
||||||||||||
戻り値 |
|
otLinkRawSetPromiscuous
otError otLinkRawSetPromiscuous( otInstance *aInstance, bool aEnable )
この関数は、無作為モードを有効または無効にします。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSetReceiveDone
otError otLinkRawSetReceiveDone( otInstance *aInstance, otLinkRawReceiveDone aCallback )
この関数は未加工リンクレイヤを有効または無効にします。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSetShortAddress
otError otLinkRawSetShortAddress( otInstance *aInstance, uint16_t aShortAddress )
住所のフィルタリング用ショート アドレスを設定します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSleep(otLinkRawSleep)
otError otLinkRawSleep( otInstance *aInstance )
ラジオを [受信] から [スリープ] に移行します。
ラジオをオフにします。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSrcMatchAddExtEntry について
otError otLinkRawSrcMatchAddExtEntry( otInstance *aInstance, const otExtAddress *aExtAddress )
参照元の一致テーブルに拡張アドレスを追加。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSrcMatchAddShortEntry
otError otLinkRawSrcMatchAddShortEntry( otInstance *aInstance, uint16_t aShortAddress )
引用元マッチテーブルに短いアドレスを追加しました。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSrcMatchClearExtEntries
otError otLinkRawSrcMatchClearExtEntries( otInstance *aInstance )
ソースのマッチテーブルからすべての拡張アドレスを削除します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSrcMatchClearExtEntry
otError otLinkRawSrcMatchClearExtEntry( otInstance *aInstance, const otExtAddress *aExtAddress )
ラジオのソースのマッチテーブルへの拡張アドレスの削除。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSrcMatchClearShortEntries(OTLRawSrcMatchClearShortEntries)
otError otLinkRawSrcMatchClearShortEntries( otInstance *aInstance )
ソースマッチ テーブルからすべての短いアドレスを削除します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawSrcMatchClearShortEntry
otError otLinkRawSrcMatchClearShortEntry( otInstance *aInstance, uint16_t aShortAddress )
元のマッチテーブルから短いアドレスを削除しています。
詳細 | |||||||
---|---|---|---|---|---|---|---|
パラメータ |
|
||||||
戻り値 |
|
otLinkRawSrcMatchEnable(OTLinkRawSrcMatchEnable を有効にする)
otError otLinkRawSrcMatchEnable( otInstance *aInstance, bool aEnable )
保留中のフレームに対するソースマッチを有効または無効にします。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
otLinkRawTransmit
otError otLinkRawTransmit( otInstance *aInstance, otLinkRawTransmitDone aCallback )
このメソッドは、ラジオの送信シーケンスを開始します。
呼び出し元は、送信をリクエストする前に otLinkRawGetTransmitBuffer() によって提供されるバッファで IEEE 802.15.4 フレームを形成する必要があります。チャンネルと送信電力は otRadioFrame 構造にも含まれます。
送信シーケンスの構成内容は次のとおりです。
- 受信から送信に対して無線機の遷移。
- 指定されたチャネルと送信電力で PSDU を送信します。
詳細 | |||||
---|---|---|---|---|---|
パラメータ |
|
||||
戻り値 |
|
リソース
OpenThread API リファレンスのトピックは、GitHub で入手可能なソースコードに基づいています。 詳細またはドキュメントへの投稿については、リソースをご覧ください。