حلقة الوصل
تتضمن هذه الوحدة الوظائف التي تتحكم في تكوين طبقة الارتباط.
ملخص
التعداد | |
---|---|
otMacFilterAddressMode { | تعداد يحدد وضع العنوان لمرشح mac. |
النوع | |
---|---|
otActiveScanResult | typedefstruct otActiveScanResult يمثل هذا الهيكل منارة IEEE 802.15.4 المستلمة. |
otEnergyScanResult | typedefstruct otEnergyScanResult يمثل هذا الهيكل نتيجة مسح الطاقة. |
otHandleActiveScanResult )(otActiveScanResult *aResult, void *aContext) | typedefvoid(* يتم استدعاء مؤشر الوظيفة هذا أثناء المسح النشط IEEE 802.15.4 عند استلام إشارة IEEE 802.15.4 أو اكتمال المسح. |
otHandleEnergyScanResult )(otEnergyScanResult *aResult, void *aContext) | typedefvoid(* يتم استدعاء مؤشر الوظيفة هذا أثناء فحص الطاقة IEEE 802.15.4 عندما تكون نتيجة القناة جاهزة أو يكتمل المسح. |
otLinkPcapCallback )(const otRadioFrame *aFrame, bool aIsTx, void *aContext) | typedefvoid(* يتم استدعاء مؤشر الوظيفة هذا عند تلقي إطار IEEE 802.15.4. |
otMacCounters | typedefstruct otMacCounters تمثل هذه البنية عدادات طبقة MAC. |
otMacFilterAddressMode | typedef يحدد وضع العنوان لمرشح mac. |
otMacFilterEntry | typedefstruct otMacFilterEntry تمثل هذه البنية إدخال عامل تصفية Mac. |
otMacFilterIterator | typedefuint8_t يستخدم للتكرار من خلال إدخالات عامل التصفية mac. |
otThreadLinkInfo | typedefstruct otThreadLinkInfo تمثل هذه البنية معلومات خاصة بالارتباط للرسائل المستلمة من راديو الموضوع. |
المهام | |
---|---|
otLinkActiveScan ( otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleActiveScanResult aCallback, void *aCallbackContext) | تعمل هذه الوظيفة على بدء المسح النشط IEEE 802.15.4. |
otLinkConvertLinkQualityToRss ( otInstance *aInstance, uint8_t aLinkQuality) | int8_t تقوم هذه الطريقة بتحويل جودة الارتباط إلى قوة الإشارة المستقبلة النموذجية. |
otLinkConvertRssToLinkQuality ( otInstance *aInstance, int8_t aRss) | uint8_t تقوم هذه الطريقة بتحويل قوة الإشارة المستلمة إلى جودة الارتباط. |
otLinkCslGetChannel ( otInstance *aInstance) | uint8_t تحصل هذه الوظيفة على قناة CSL. |
otLinkCslGetPeriod ( otInstance *aInstance) | uint16_t تحصل هذه الوظيفة على فترة CSL. |
otLinkCslGetTimeout ( otInstance *aInstance) | uint32_t تحصل هذه الوظيفة على مهلة CSL. |
otLinkCslSetChannel ( otInstance *aInstance, uint8_t aChannel) | تحدد هذه الوظيفة قناة CSL. |
otLinkCslSetPeriod ( otInstance *aInstance, uint16_t aPeriod) | تحدد هذه الوظيفة فترة CSL. |
otLinkCslSetTimeout ( otInstance *aInstance, uint32_t aTimeout) | تحدد هذه الوظيفة مهلة CSL. |
otLinkEnergyScan ( otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext) | تبدأ هذه الوظيفة في مسح الطاقة IEEE 802.15.4. |
otLinkFilterAddAddress ( otInstance *aInstance, const otExtAddress *aExtAddress) | تضيف هذه الطريقة Extended Address إلى عامل تصفية MAC. |
otLinkFilterAddRssIn ( otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss) | تضيف هذه الطريقة إدخالًا ثابتًا لقوة الإشارة المستلمة (بالديسيبل ميلي واط) للرسائل من عنوان موسع معين في عامل تصفية MAC. |
otLinkFilterClearAddresses ( otInstance *aInstance) | void تقوم هذه الطريقة بمسح جميع العناوين الموسعة من مرشح MAC. |
otLinkFilterClearAllRssIn ( otInstance *aInstance) | void تقوم هذه الطريقة بمسح جميع إدخالات قوة الإشارة المستلمة (بما في ذلك RSS-in الافتراضي) على مرشح MAC. |
otLinkFilterClearDefaultRssIn ( otInstance *aInstance) | void تقوم هذه الطريقة بمسح أي قوة إشارة تم استلامها افتراضيًا تم تعيينها مسبقًا (بالديسيبل) على مرشح MAC. |
otLinkFilterGetAddressMode ( otInstance *aInstance) | تحصل هذه الوظيفة على وضع عنوان مرشح MAC. |
otLinkFilterGetNextAddress ( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) | تحصل هذه الطريقة على إدخال عامل تصفية عنوان قيد الاستخدام. |
otLinkFilterGetNextRssIn ( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry) | تحصل هذه الطريقة على إدخال عامل تصفية RssIn قيد الاستخدام. |
otLinkFilterRemoveAddress ( otInstance *aInstance, const otExtAddress *aExtAddress) | void تقوم هذه الطريقة بإزالة العنوان الممتد من عامل تصفية MAC. |
otLinkFilterRemoveRssIn ( otInstance *aInstance, const otExtAddress *aExtAddress) | void تزيل هذه الطريقة إدخال عامل تصفية MAC لإعداد قوة الإشارة المستقبلة الثابتة لعنوان موسع معين. |
otLinkFilterSetAddressMode ( otInstance *aInstance, otMacFilterAddressMode aMode) | void تحدد هذه الوظيفة وضع العنوان لمرشح MAC. |
otLinkFilterSetDefaultRssIn ( otInstance *aInstance, int8_t aRss) | void تحدد هذه الطريقة قوة الإشارة الافتراضية المستلمة (بالديسيبل) على مرشح MAC. |
otLinkGetCcaFailureRate ( otInstance *aInstance) | uint16_t تقوم هذه الوظيفة بإرجاع معدل فشل CCA (مسح القناة التقييم) الحالي. |
otLinkGetChannel ( otInstance *aInstance) | uint8_t احصل على قناة IEEE 802.15.4. |
otLinkGetCounters ( otInstance *aInstance) | const otMacCounters * احصل على عدادات طبقة MAC. |
otLinkGetExtendedAddress ( otInstance *aInstance) | const otExtAddress * احصل على IEEE 802.15.4 Extended Address. |
otLinkGetFactoryAssignedIeeeEui64 ( otInstance *aInstance, otExtAddress *aEui64) | void احصل على IEEE EUI-64 المخصص من المصنع. |
otLinkGetMaxFrameRetriesDirect ( otInstance *aInstance) | uint8_t ترجع هذه الطريقة الحد الأقصى لعدد محاولات إعادة الإطارات أثناء الإرسال المباشر. |
otLinkGetMaxFrameRetriesIndirect ( otInstance *aInstance) | uint8_t ترجع هذه الطريقة الحد الأقصى لعدد محاولات إعادة الإطارات أثناء الإرسال غير المباشر. |
otLinkGetPanId ( otInstance *aInstance) | احصل على IEEE 802.15.4 PAN ID. |
otLinkGetPollPeriod ( otInstance *aInstance) | uint32_t احصل على فترة استطلاع البيانات الخاصة بجهاز Sleepy end |
otLinkGetShortAddress ( otInstance *aInstance) | احصل على عنوان IEEE 802.15.4 المختصر. |
otLinkGetSupportedChannelMask ( otInstance *aInstance) | uint32_t احصل على قناع القناة المدعوم لطبقة MAC. |
otLinkGetTxDirectRetrySuccessHistogram ( otInstance *aInstance, uint8_t *aNumberOfEntries) | const uint32_t * تحصل هذه الطريقة على مدرج تكراري لإعادة المحاولات لحزمة مباشرة واحدة حتى النجاح. |
otLinkGetTxIndirectRetrySuccessHistogram ( otInstance *aInstance, uint8_t *aNumberOfEntries) | const uint32_t * تحصل هذه الطريقة على مدرج تكراري لإعادة المحاولات لحزمة واحدة غير مباشرة حتى النجاح. |
otLinkIsActiveScanInProgress ( otInstance *aInstance) | bool تشير هذه الوظيفة إلى ما إذا كان المسح النشط IEEE 802.15.4 قيد التقدم حاليًا أم لا. |
otLinkIsEnabled ( otInstance *aInstance) | bool تشير هذه الوظيفة إلى ما إذا كانت طبقة الارتباط ممكنة أم لا. |
otLinkIsEnergyScanInProgress ( otInstance *aInstance) | bool تشير هذه الوظيفة إلى ما إذا كان مسح الطاقة IEEE 802.15.4 قيد التقدم حاليًا أم لا. |
otLinkIsInTransmitState ( otInstance *aInstance) | bool تشير هذه الوظيفة إلى ما إذا كان IEEE 802.15.4 MAC في حالة الإرسال أم لا. |
otLinkIsPromiscuous ( otInstance *aInstance) | bool تشير هذه الوظيفة إلى ما إذا كان الوضع المختلط ممكّنًا أم لا في طبقة الارتباط. |
otLinkOutOfBandTransmitRequest ( otInstance *aInstance, otRadioFrame *aOobFrame) | تُدرج هذه الوظيفة إطار IEEE 802.15.4 خارج النطاق للإرسال. |
otLinkResetCounters ( otInstance *aInstance) | void إعادة تعيين عدادات طبقة MAC. |
otLinkResetTxRetrySuccessHistogram ( otInstance *aInstance) | void تقوم هذه الطريقة بمسح إحصائيات الرسم البياني لعمليات الإرسال المباشرة وغير المباشرة. |
otLinkSendDataRequest ( otInstance *aInstance) | تقوم هذه الوظيفة بإدراج رسالة طلب بيانات IEEE 802.15.4 للإرسال. |
otLinkSendEmptyData ( otInstance *aInstance) | ترشد هذه الوظيفة الجهاز إلى إرسال إطار بيانات IEEE 802.15.4 فارغ. |
otLinkSetChannel ( otInstance *aInstance, uint8_t aChannel) | قم بتعيين قناة IEEE 802.15.4. |
otLinkSetEnabled ( otInstance *aInstance, bool aEnable) | تعمل هذه الوظيفة على تمكين طبقة الارتباط أو تعطيلها. |
otLinkSetExtendedAddress ( otInstance *aInstance, const otExtAddress *aExtAddress) | تقوم هذه الوظيفة بتعيين IEEE 802.15.4 Extended Address. |
otLinkSetMaxFrameRetriesDirect ( otInstance *aInstance, uint8_t aMaxFrameRetriesDirect) | void تحدد هذه الطريقة الحد الأقصى لعدد محاولات إعادة الرتل أثناء الإرسال المباشر. |
otLinkSetMaxFrameRetriesIndirect ( otInstance *aInstance, uint8_t aMaxFrameRetriesIndirect) | void تحدد هذه الطريقة الحد الأقصى لعدد محاولات إعادة الرتل أثناء الإرسال غير المباشر. |
otLinkSetPanId ( otInstance *aInstance, otPanId aPanId) | قم بتعيين IEEE 802.15.4 PAN ID. |
otLinkSetPcapCallback ( otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext) | void تسجل هذه الوظيفة رد اتصال لتوفير إطارات IEEE 802.15.4 الأولية المستلمة. |
otLinkSetPollPeriod ( otInstance *aInstance, uint32_t aPollPeriod) | قم بتعيين / مسح فترة استطلاع البيانات الخارجية المحددة من قبل المستخدم للجهاز السكون. |
otLinkSetPromiscuous ( otInstance *aInstance, bool aPromiscuous) | تعمل هذه الوظيفة على تمكين أو تعطيل الوضع المختلط لطبقة الارتباط. |
otLinkSetSupportedChannelMask ( otInstance *aInstance, uint32_t aChannelMask) | اضبط قناع القناة المدعوم لطبقة MAC. |
الهياكل | |
---|---|
نتيجة otActiveScan | يمثل هذا الهيكل منارة IEEE 802.15.4 المستلمة. |
نتيجة otEnergyScan | يمثل هذا الهيكل نتيجة مسح الطاقة. |
otMacCounters | تمثل هذه البنية عدادات طبقة MAC. |
otMacFilterEntry | تمثل هذه البنية إدخال عامل تصفية Mac. |
otThreadLinkInfo | تمثل هذه البنية معلومات خاصة بالارتباط للرسائل المستلمة من راديو الموضوع. |
التعداد
otMacFilterAddressMode
otMacFilterAddressMode
النوع
نتيجة otActiveScan
struct otActiveScanResult otActiveScanResult
يمثل هذا الهيكل منارة IEEE 802.15.4 المستلمة.
نتيجة otHandleActiveScan
void(* otHandleActiveScanResult)(otActiveScanResult *aResult, void *aContext)
يتم استدعاء مؤشر الوظيفة هذا أثناء المسح النشط IEEE 802.15.4 عند استلام إشارة IEEE 802.15.4 أو اكتمال المسح.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
نتيجة otHandleEnergyScan
void(* otHandleEnergyScanResult)(otEnergyScanResult *aResult, void *aContext)
يتم استدعاء مؤشر الوظيفة هذا أثناء مسح الطاقة IEEE 802.15.4 عندما تكون نتيجة القناة جاهزة أو يكتمل المسح.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkPcap
0 درهميتم استدعاء مؤشر الوظيفة هذا عند تلقي إطار IEEE 802.15.4.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
|
otMacFilterAddressMode
enum otMacFilterAddressMode otMacFilterAddressMode
يحدد وضع العنوان لمرشح mac.
otMacFilterIterator
uint8_t otMacFilterIterator
يستخدم للتكرار من خلال إدخالات عامل التصفية mac.
otThreadLinkInfo
struct otThreadLinkInfo otThreadLinkInfo
تمثل هذه البنية معلومات خاصة بالارتباط للرسائل المستلمة من راديو الموضوع.
المهام
otLinkActiveScan
otError otLinkActiveScan( otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleActiveScanResult aCallback, void *aCallbackContext )
تعمل هذه الوظيفة على بدء المسح النشط IEEE 802.15.4.
تفاصيل | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||||
إرجاع القيم |
|
otLinkConvertLinkQualityToRss
int8_t otLinkConvertLinkQualityToRss( otInstance *aInstance, uint8_t aLinkQuality )
تقوم هذه الطريقة بتحويل جودة الارتباط إلى قوة الإشارة المستقبلة النموذجية.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
عائدات | تلقت المنصة النموذجية تعيين قوة الإشارة إلى aLinkQuality . |
otLinkConvertRssToLinkQuality
uint8_t otLinkConvertRssToLinkQuality( otInstance *aInstance, int8_t aRss )
تقوم هذه الطريقة بتحويل قوة الإشارة المستلمة إلى جودة الارتباط.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
عائدات | ربط تعيين قيمة الجودة بـ aRss . |
otLinkCslGetChannel
uint8_t otLinkCslGetChannel( otInstance *aInstance )
تحصل هذه الوظيفة على قناة CSL.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قناة CSL. |
otLinkCslGetPeriod
uint16_t otLinkCslGetPeriod( otInstance *aInstance )
تحصل هذه الوظيفة على فترة CSL.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | فترة CSL بوحدات من 10 رموز. |
otLinkCslGetTimeout
uint32_t otLinkCslGetTimeout( otInstance *aInstance )
تحصل هذه الوظيفة على مهلة CSL.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | مهلة CSL بالثواني. |
otLinkCslSetChannel
otError otLinkCslSetChannel( otInstance *aInstance, uint8_t aChannel )
تحدد هذه الوظيفة قناة CSL.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkCslSetPeriod
otError otLinkCslSetPeriod( otInstance *aInstance, uint16_t aPeriod )
تحدد هذه الوظيفة فترة CSL.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkCslSetTimeout
otError otLinkCslSetTimeout( otInstance *aInstance, uint32_t aTimeout )
تحدد هذه الوظيفة مهلة CSL.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkEnergyScan
otError otLinkEnergyScan( otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext )
تبدأ هذه الوظيفة في مسح الطاقة IEEE 802.15.4.
تفاصيل | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||||
إرجاع القيم |
|
otLinkFilterAddAddress
otError otLinkFilterAddAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
تضيف هذه الطريقة Extended Address إلى عامل تصفية MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkFilterAddRssIn
otError otLinkFilterAddRssIn( otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss )
تضيف هذه الطريقة إدخالًا ثابتًا لقوة الإشارة المستلمة (بالديسيبل ميلي واط) للرسائل من عنوان موسع معين في عامل تصفية MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkFilterClearAddresses
void otLinkFilterClearAddresses( otInstance *aInstance )
تقوم هذه الطريقة بمسح جميع العناوين الموسعة من مرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otLinkFilterClearAllRssIn
void otLinkFilterClearAllRssIn( otInstance *aInstance )
تقوم هذه الطريقة بمسح جميع إدخالات قوة الإشارة المستلمة (بما في ذلك RSS-in الافتراضي) على مرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otLinkFilterClearDefaultRssIn
void otLinkFilterClearDefaultRssIn( otInstance *aInstance )
تقوم هذه الطريقة بمسح أي قوة إشارة تم استلامها افتراضيًا تم تعيينها مسبقًا (بالديسيبل) على مرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otLinkFilterGetAddressMode
otMacFilterAddressMode otLinkFilterGetAddressMode( otInstance *aInstance )
تحصل هذه الوظيفة على وضع عنوان مرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | وضع العنوان. |
otLinkFilterGetNextAddress
otError otLinkFilterGetNextAddress( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry )
تحصل هذه الطريقة على إدخال عامل تصفية عنوان قيد الاستخدام.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkFilterGetNextRssIn
otError otLinkFilterGetNextRssIn( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry )
تحصل هذه الطريقة على إدخال عامل تصفية RssIn قيد الاستخدام.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkFilterRemoveAddress
void otLinkFilterRemoveAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
تقوم هذه الطريقة بإزالة العنوان الممتد من عامل تصفية MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
لا يتم تنفيذ أي إجراء إذا لم يكن هناك إدخال موجود في الفلتر يطابق العنوان الموسع المحدد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkFilterRemoveRssIn
void otLinkFilterRemoveRssIn( otInstance *aInstance, const otExtAddress *aExtAddress )
تزيل هذه الطريقة إدخال عامل تصفية MAC لإعداد قوة الإشارة المستقبلة الثابتة لعنوان موسع معين.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
لا يتم تنفيذ أي إجراء إذا لم يكن هناك إدخال موجود في الفلتر يطابق العنوان الموسع المحدد.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkFilterSetAddressMode
void otLinkFilterSetAddressMode( otInstance *aInstance, otMacFilterAddressMode aMode )
تحدد هذه الوظيفة وضع العنوان لمرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkFilterSetDefaultRssIn
void otLinkFilterSetDefaultRssIn( otInstance *aInstance, int8_t aRss )
تحدد هذه الطريقة قوة الإشارة الافتراضية المستلمة (بالديسيبل) على مرشح MAC.
هذه الوظيفة متاحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_FILTER_ENABLE.
يتم استخدام قيمة RSS الافتراضية لجميع الإطارات المستلمة من العناوين التي لا يوجد لها إدخال RSS-IN صريح في قائمة otLinkFilterAddRssIn()
التصفية (تمت إضافته باستخدام otLinkFilterAddRssIn()
).
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkGetCcaFailureRate
uint16_t otLinkGetCcaFailureRate( otInstance *aInstance )
تقوم هذه الوظيفة بإرجاع معدل فشل CCA (مسح القناة التقييم) الحالي.
يتم الحفاظ على المعدل خلال نافذة (تقريبًا) من OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW
نقل الإطارات OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW
الأخيرة.
تفاصيل | |
---|---|
عائدات | معدل فشل CCA بقيمة قصوى 0xffff تقابل معدل الفشل بنسبة 100٪. |
otLinkGetChannel
uint8_t otLinkGetChannel( otInstance *aInstance )
احصل على قناة IEEE 802.15.4.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قناة IEEE 802.15.4. |
otLinkSetChannel
otLinkGetCounters
const otMacCounters * otLinkGetCounters( otInstance *aInstance )
احصل على عدادات طبقة MAC.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | مؤشر إلى عدادات طبقة MAC. |
otLinkGetExtendedAddress
const otExtAddress * otLinkGetExtendedAddress( otInstance *aInstance )
احصل على IEEE 802.15.4 Extended Address.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | مؤشر إلى IEEE 802.15.4 Extended Address. |
otLinkGetFactoryAssignedIeeeEui64
void otLinkGetFactoryAssignedIeeeEui64( otInstance *aInstance, otExtAddress *aEui64 )
احصل على IEEE EUI-64 المخصص من المصنع.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkGetMaxFrameRetriesDirect
uint8_t otLinkGetMaxFrameRetriesDirect( otInstance *aInstance )
ترجع هذه الطريقة الحد الأقصى لعدد محاولات إعادة الإطارات أثناء الإرسال المباشر.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | الحد الأقصى لعدد المحاولات أثناء الإرسال المباشر. |
otLinkGetMaxFrameRetriesIndirect
uint8_t otLinkGetMaxFrameRetriesIndirect( otInstance *aInstance )
ترجع هذه الطريقة الحد الأقصى لعدد محاولات إعادة الإطارات أثناء الإرسال غير المباشر.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | الحد الأقصى لعدد المحاولات أثناء الإرسال غير المباشر. |
otLinkGetPanId
otPanId otLinkGetPanId( otInstance *aInstance )
احصل على IEEE 802.15.4 PAN ID.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | معرف IEEE 802.15.4 PAN. |
otLinkSetPanId
otLinkGetPollPeriod
uint32_t otLinkGetPollPeriod( otInstance *aInstance )
احصل على فترة استطلاع البيانات الخاصة بجهاز Sleepy End.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | فترة استقصاء البيانات لجهاز النهاية النائمة بالمللي ثانية. |
otLinkSetPollPer الفترة
otLinkGetShortAddress
otShortAddress otLinkGetShortAddress( otInstance *aInstance )
احصل على عنوان IEEE 802.15.4 المختصر.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | مؤشر إلى عنوان IEEE 802.15.4 القصير. |
otLinkGetSupportedChannelMask
uint32_t otLinkGetSupportedChannelMask( otInstance *aInstance )
احصل على قناع القناة المدعوم لطبقة MAC.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | قناع القناة المدعوم مثل uint32_t مع تعيين بت 0 (lsb) للقناة 0 ، بت 1 إلى القناة 1 ، وهكذا. |
otLinkGetTxDirectRetrySuccessHistogram
const uint32_t * otLinkGetTxDirectRetrySuccessHistogram( otInstance *aInstance, uint8_t *aNumberOfEntries )
تحصل هذه الطريقة على مدرج تكراري لإعادة المحاولات لحزمة مباشرة واحدة حتى النجاح.
هذه الوظيفة صالحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_RETRY_SUCCESS_HISTOGRAM_ENABLE.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
عائدات | مؤشر إلى الرسم البياني لعمليات إعادة المحاولة (في شكل مصفوفة). يشير العنصر n إلى أنه تم إرسال الحزمة مع المحاولة رقم n. |
otLinkGetTxIndirectRetrySuccessHistogram
const uint32_t * otLinkGetTxIndirectRetrySuccessHistogram( otInstance *aInstance, uint8_t *aNumberOfEntries )
تحصل هذه الطريقة على مدرج تكراري لإعادة المحاولة لحزمة واحدة غير مباشرة حتى النجاح.
هذه الوظيفة صالحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_RETRY_SUCCESS_HISTOGRAM_ENABLE.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
عائدات | مؤشر إلى الرسم البياني لعمليات إعادة المحاولة (في شكل مصفوفة). يشير العنصر n إلى أنه تم إرسال الحزمة مع المحاولة رقم n. |
otLinkIsActiveScanInProgress
bool otLinkIsActiveScanInProgress( otInstance *aInstance )
تشير هذه الوظيفة إلى ما إذا كان المسح النشط IEEE 802.15.4 قيد التقدم حاليًا أم لا.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | صحيح إذا كان المسح النشط IEEE 802.15.4 قيد التقدم ، خطأ في الحالات الأخرى. |
otLinkIsEnabled
bool otLinkIsEnabled( otInstance *aInstance )
تشير هذه الوظيفة إلى ما إذا كانت طبقة الارتباط ممكنة أم لا.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkIsEnergyScanInProgress
bool otLinkIsEnergyScanInProgress( otInstance *aInstance )
تشير هذه الوظيفة إلى ما إذا كان مسح الطاقة IEEE 802.15.4 قيد التقدم حاليًا أم لا.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | صحيح إذا كان مسح الطاقة IEEE 802.15.4 قيد التقدم ، خطأ في الحالات الأخرى. |
otLinkIsInTransmitState
bool otLinkIsInTransmitState( otInstance *aInstance )
تشير هذه الوظيفة إلى ما إذا كان IEEE 802.15.4 MAC في حالة الإرسال أم لا.
وحدة MAC في حالة الإرسال أثناء إجراء CSMA / CA ، أو CCA ، أو إرسال البيانات ، أو منارة أو إطار طلب البيانات ، وتلقي ACK لإطار مُرسَل. وحدة MAC ليست في حالة الإرسال أثناء إرسال إطار ACK أو إطار طلب منارة.
تفاصيل | |||
---|---|---|---|
المعلمات |
| ||
عائدات | صواب إذا كان IEEE 802.15.4 MAC في حالة الإرسال ، وخطأ بخلاف ذلك. |
otLinkIsPromiscuous
bool otLinkIsPromiscuous( otInstance *aInstance )
تشير هذه الوظيفة إلى ما إذا كان الوضع المختلط ممكّنًا أم لا في طبقة الارتباط.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
طلب إرسال otLinkOutOfBandTransmit
otError otLinkOutOfBandTransmitRequest( otInstance *aInstance, otRadioFrame *aOobFrame )
تُدرج هذه الوظيفة إطار IEEE 802.15.4 خارج النطاق للإرسال.
إطار Out of Band هو أحد الإطارات التي تم إنشاؤها خارج OpenThread.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||
إرجاع القيم |
|
otLinkResetCounters
void otLinkResetCounters( otInstance *aInstance )
إعادة تعيين عدادات طبقة MAC.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otLinkResetTxRetrySuccessHistogram
void otLinkResetTxRetrySuccessHistogram( otInstance *aInstance )
تقوم هذه الطريقة بمسح إحصائيات الرسم البياني لعمليات الإرسال المباشرة وغير المباشرة.
هذه الوظيفة صالحة عند تمكين تكوين OPENTHREAD_CONFIG_MAC_RETRY_SUCCESS_HISTOGRAM_ENABLE.
تفاصيل | |||
---|---|---|---|
المعلمات |
|
otLinkSendDataRequest
otError otLinkSendDataRequest( otInstance *aInstance )
تقوم هذه الوظيفة بإدراج رسالة طلب بيانات IEEE 802.15.4 للإرسال.
تفاصيل | |||||||||
---|---|---|---|---|---|---|---|---|---|
المعلمات |
| ||||||||
إرجاع القيم |
|
otLinkSendEmptyData
otError otLinkSendEmptyData( otInstance *aInstance )
ترشد هذه الوظيفة الجهاز إلى إرسال إطار بيانات IEEE 802.15.4 فارغ.
هذه الوظيفة مدعومة فقط على جهاز Rx-Off-When-Idle لإرسال إطار بيانات فارغ إلى الأصل. ملاحظة: متاح فقط عند تمكين OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkSetChannel
otError otLinkSetChannel( otInstance *aInstance, uint8_t aChannel )
قم بتعيين قناة IEEE 802.15.4.
تنجح هذه الوظيفة فقط عندما يتم تعطيل بروتوكولات الموضوع. يؤدي الاستدعاء الناجح لهذه الوظيفة إلى إبطال مجموعات البيانات التشغيلية النشطة والمعلقة في الذاكرة غير المتطايرة.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkGetChannel
otLinkSetEnabled
02 cfdee150تعمل هذه الوظيفة على تمكين طبقة الارتباط أو تعطيلها.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkSetExtendedAddress
otError otLinkSetExtendedAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
تقوم هذه الوظيفة بتعيين IEEE 802.15.4 Extended Address.
تنجح هذه الوظيفة فقط عندما يتم تعطيل بروتوكولات الموضوع.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkSetMaxFrameRetriesDirect
void otLinkSetMaxFrameRetriesDirect( otInstance *aInstance, uint8_t aMaxFrameRetriesDirect )
تحدد هذه الطريقة الحد الأقصى لعدد محاولات إعادة الرتل أثناء الإرسال المباشر.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkSetMaxFrameRetriesIndirect
void otLinkSetMaxFrameRetriesIndirect( otInstance *aInstance, uint8_t aMaxFrameRetriesIndirect )
تحدد هذه الطريقة الحد الأقصى لعدد محاولات إعادة الرتل أثناء الإرسال غير المباشر.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
|
otLinkSetPanId
otError otLinkSetPanId( otInstance *aInstance, otPanId aPanId )
قم بتعيين IEEE 802.15.4 PAN ID.
تنجح هذه الوظيفة فقط عندما يتم تعطيل بروتوكولات الموضوع. يؤدي الاستدعاء الناجح لهذه الوظيفة أيضًا إلى إبطال مجموعات البيانات التشغيلية النشطة والمعلقة في الذاكرة غير المتطايرة.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
| ||||||
إرجاع القيم |
|
otLinkGetPanId
otLinkSetPcapCallback
void otLinkSetPcapCallback( otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext )
تسجل هذه الوظيفة رد اتصال لتوفير إطارات IEEE 802.15.4 الأولية المستلمة.
تفاصيل | |||||||
---|---|---|---|---|---|---|---|
المعلمات |
|
otLinkSetPollPer الفترة
otError otLinkSetPollPeriod( otInstance *aInstance, uint32_t aPollPeriod )
قم بتعيين / مسح فترة استطلاع البيانات الخارجية المحددة من قبل المستخدم للجهاز السكون.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkGetPollPeriod
otLinkSetPromiscuous
otError otLinkSetPromiscuous( otInstance *aInstance, bool aPromiscuous )
تعمل هذه الوظيفة على تمكين أو تعطيل الوضع المختلط لطبقة الارتباط.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
otLinkSetSupportedChannelMask
otError otLinkSetSupportedChannelMask( otInstance *aInstance, uint32_t aChannelMask )
اضبط قناع القناة المدعوم لطبقة MAC.
تنجح هذه الوظيفة فقط عندما يتم تعطيل بروتوكولات الموضوع.
تفاصيل | |||||
---|---|---|---|---|---|
المعلمات |
| ||||
إرجاع القيم |
|
وحدات الماكرو
OT_MAC_FILTER_FIXED_RSS_DISABLED
OT_MAC_FILTER_FIXED_RSS_DISABLED 127
يُستخدم للإشارة إلى عدم تعيين قوة إشارة ثابتة مستلمة.
OT_MAC_FILTER_ITERATOR_INIT
OT_MAC_FILTER_ITERATOR_INIT 0
مُهيئ لـ otMacFilterIterator.
OT_US_PER_TEN_SYMBOLS
OT_US_PER_TEN_SYMBOLS 160
الميكروثانية لكل 10 رموز.