लिंक

इस मॉड्यूल में लिंक-लेयर कॉन्फ़िगरेशन को कंट्रोल करने वाले फ़ंक्शन शामिल हैं.

खास जानकारी

गिनती

otMacFilterAddressMode{
  OT_MAC_FILTER_ADDRESS_MODE_DISABLED,
  OT_MAC_FILTER_ADDRESS_MODE_ALLOWLIST,
  OT_MAC_FILTER_ADDRESS_MODE_DENYLIST
}
enum
mac फ़िल्टर का पता मोड तय करता है.

टाइपडीफ़

otActiveScanResult टाइपडिफ़
IEEE 802.15.4 पाने वाले बीकन का प्रतिनिधित्व करता है.
otEnergyScanResult टाइपडिफ़
एनर्जी स्कैन का नतीजा दिखाता है.
otHandleActiveScanResult)(otActiveScanResult *aResult, void *aContext) टाइपडिफ़
void(*
आईईईई 802.15.4 ऐक्टिव स्कैन के दौरान, पॉइंटर को तब कॉल किया जाता है, जब आईईईई 802.15.4 बीकन मिलता है या स्कैन पूरा हो जाता है.
otHandleEnergyScanResult)(otEnergyScanResult *aResult, void *aContext) टाइपडिफ़
void(*
आईईईई 802.15.4 एनर्जी स्कैन के दौरान, पॉइंटर को तब कॉल किया जाता है, जब चैनल का नतीजा तैयार हो या स्कैन पूरा हो गया हो.
otLinkPcapCallback)(const otRadioFrame *aFrame, bool aIsTx, void *aContext) टाइपडिफ़
void(*
IEEE 802.15.4 फ़्रेम मिलने पर पॉइंटर को कॉल किया जाता है.
otMacCounters टाइपडिफ़
struct otMacCounters
MAC लेयर काउंटर के बारे में बताता है.
otMacFilterAddressMode टाइपडिफ़
mac फ़िल्टर का पता मोड तय करता है.
otMacFilterEntry टाइपडिफ़
Mac फ़िल्टर एंट्री को दिखाता है.
otMacFilterIterator टाइपडिफ़
uint8_t
mac फ़िल्टर एंट्री के ज़रिए फिर से लागू करने के लिए इस्तेमाल किया जाता है.
otThreadLinkInfo टाइपडिफ़
Thread रेडियो से मिले मैसेज के लिए, लिंक से जुड़ी खास जानकारी को दिखाता है.

फ़ंक्शन

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
मिले हुए सिग्नल को लिंक की क्वालिटी में बदलता है.
otLinkEnergyScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext)
IEEE 802.15.4 एनर्जी स्कैन शुरू किया जाता है.
otLinkFilterAddAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
MAC फ़िल्टर में एक विस्तृत पता जोड़ता है.
otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss)
MAC फ़िल्टर में दिए गए एक्सटेंडेड पते से आने वाले मैसेज के लिए, मिल चुके सिग्नल की मज़बूती (dBm में) की एंट्री जोड़ता है.
otLinkFilterClearAddresses(otInstance *aInstance)
void
MAC फ़िल्टर से सभी एक्सटेंडेड पतों को हटा देता है.
otLinkFilterClearAllRssIn(otInstance *aInstance)
void
यह विकल्प, MAC फ़िल्टर पर मिले सिग्नल की क्षमता की सभी एंट्री को मिटाता है. इनमें डिफ़ॉल्ट आरएसएस-इन भी शामिल है.
otLinkFilterClearDefaultRssIn(otInstance *aInstance)
void
MAC फ़िल्टर पर पहले से सेट किए गए डिफ़ॉल्ट रूप से मिले सिग्नल की क्षमता (dBm में) को हटा देती है.
otLinkFilterGetAddressMode(otInstance *aInstance)
MAC फ़िल्टर के पता मोड की जानकारी देता है.
otLinkFilterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
इस्तेमाल में शामिल पता फ़िल्टर एंट्री मिलती है.
otLinkFilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
इस्तेमाल में होने पर एक RsIn फ़िल्टर एंट्री की सुविधा मिलती है.
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 फ़िल्टर पर डिफ़ॉल्ट रूप से मिले सिग्नल की क्षमता (dBm में) सेट करती है.
otLinkGetCcaFailureRate(otInstance *aInstance)
uint16_t
यह फ़ंक्शन, CCA (चैनल का आकलन साफ़ तौर पर) पूरा न कर पाने की दर दिखाता है.
otLinkGetChannel(otInstance *aInstance)
uint8_t
IEEE 802.15.4 चैनल पाएं.
otLinkGetCounters(otInstance *aInstance)
const otMacCounters *
MAC लेयर काउंटर पाएं.
otLinkGetCslChannel(otInstance *aInstance)
uint8_t
आपको CSL चैनल मिलता है.
otLinkGetCslPeriod(otInstance *aInstance)
uint32_t
माइक्रोसेकंड में सीएसएल पीरियड की जानकारी देता है.
otLinkGetCslTimeout(otInstance *aInstance)
uint32_t
सीएसएल टाइम आउट की जानकारी देता है.
otLinkGetExtendedAddress(otInstance *aInstance)
const otExtAddress *
IEEE 802.15.4 एक्सटेंडेड पता मिलता है.
otLinkGetFactoryAssignedIeeeEui64(otInstance *aInstance, otExtAddress *aEui64)
void
फ़ैक्ट्री के लिए असाइन किया गया आईईई ईयूआई-64 पाएं.
otLinkGetMaxFrameRetriesDirect(otInstance *aInstance)
uint8_t
डायरेक्ट ट्रांसमिशन के दौरान, ज़्यादा से ज़्यादा फ़्रेम की संख्या दिखाता है.
otLinkGetMaxFrameRetriesIndirect(otInstance *aInstance)
uint8_t
इनडायरेक्ट ट्रांसमिशन के दौरान, ज़्यादा से ज़्यादा फ़्रेम कितनी बार कोशिश की जा सकती है, इसकी जानकारी देता है.
otLinkGetPanId(otInstance *aInstance)
आईईई 802.15.4 पैन आईडी पाएं.
otLinkGetPollPeriod(otInstance *aInstance)
uint32_t
स्लीप मोड वाले डिवाइस के डेटा पोल की अवधि की जानकारी पाएं.
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
इससे पता चलता है कि आईईई 802.15.4 ऐक्टिव स्कैन फ़िलहाल चल रहा है या नहीं.
otLinkIsCslEnabled(otInstance *aInstance)
bool
इससे पता चलता है कि CSL चालू है या नहीं.
otLinkIsCslSupported(otInstance *aInstance)
bool
इससे पता चलता है कि डिवाइस, सीएसएल की सुविधा देने वाले पैरंट से कनेक्ट है या नहीं.
otLinkIsEnabled(otInstance *aInstance)
bool
इससे पता चलता है कि लिंक लेयर चालू है या नहीं.
otLinkIsEnergyScanInProgress(otInstance *aInstance)
bool
इससे पता चलता है कि आईईई 802.15.4 एनर्जी स्कैन की सुविधा फ़िलहाल चल रही है या नहीं.
otLinkIsInTransmitState(otInstance *aInstance)
bool
इससे पता चलता है कि IEEE 802.15.4 MAC, ट्रांसमिट की स्थिति में है या नहीं.
otLinkIsPromiscuous(otInstance *aInstance)
bool
यह बताता है कि लिंक लेयर पर संभावित मोड चालू है या नहीं.
otLinkIsRadioFilterEnabled(otInstance *aInstance)
bool
इससे पता चलता है कि 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 चैनल को सेट करें.
otLinkSetCslChannel(otInstance *aInstance, uint8_t aChannel)
CSL चैनल सेट करता है.
otLinkSetCslPeriod(otInstance *aInstance, uint32_t aPeriod)
सीएसएल पीरियड को माइक्रोसेकंड में सेट करता है.
otLinkSetCslTimeout(otInstance *aInstance, uint32_t aTimeout)
CSL टाइम आउट को सेकंड में सेट करता है.
otLinkSetEnabled(otInstance *aInstance, bool aEnable)
लिंक लेयर को चालू या बंद करता है.
otLinkSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
यह IEEE 802.15.4 एक्सटेंडेड पता सेट करता है.
otLinkSetMaxFrameRetriesDirect(otInstance *aInstance, uint8_t aMaxFrameRetriesDirect)
void
डायरेक्ट ट्रांसमिशन के दौरान, ज़्यादा से ज़्यादा फ़्रेम के लिए बार-बार कोशिश करने की संख्या सेट करता है.
otLinkSetMaxFrameRetriesIndirect(otInstance *aInstance, uint8_t aMaxFrameRetriesIndirect)
void
इनडायरेक्ट ट्रांसमिशन के दौरान, ज़्यादा से ज़्यादा फ़्रेम सेट करता है.
otLinkSetPanId(otInstance *aInstance, otPanId aPanId)
IEEE 802.15.4 पैन आईडी सेट करें.
otLinkSetPcapCallback(otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext)
void
यह रॉ IEEE 802.15.4 फ़्रेम पाने के लिए, कॉलबैक रजिस्टर करता है.
otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod)
स्लीप मोड वाले डिवाइस के लिए, उपयोगकर्ता की तय की गई/बाहरी डेटा पोल की अवधि सेट करें/साफ़ करें.
otLinkSetPromiscuous(otInstance *aInstance, bool aPromiscuous)
लिंक लेयर प्रोमिसस मोड को चालू या बंद करता है.
otLinkSetRadioFilterEnabled(otInstance *aInstance, bool aFilterEnabled)
void
IEEE 802.15.4 रेडियो फ़िल्टर मोड को चालू/बंद करता है.
otLinkSetSupportedChannelMask(otInstance *aInstance, uint32_t aChannelMask)
MAC लेयर के साथ काम करने वाला चैनल मास्क सेट करें.

स्ट्रक्चर

otActiveScan नतीजा

IEEE 802.15.4 पाने वाले बीकन का प्रतिनिधित्व करता है.

otEnergyScan नतीजा

एनर्जी स्कैन का नतीजा दिखाता है.

otMacCounters

MAC लेयर काउंटर के बारे में बताता है.

otMacFilterEntry

Mac फ़िल्टर एंट्री को दिखाता है.

otThreadLinkInfo

Thread रेडियो से मिले मैसेज के लिए, लिंक से जुड़ी खास जानकारी को दिखाता है.

गिनती

टाइपडीफ़

फ़ंक्शन

मैक्रो

संसाधन

OpenThread API के रेफ़रंस के विषय, सोर्स कोड से लिए जाते हैं. यह कोड, GitHub पर उपलब्ध है. ज़्यादा जानकारी के लिए या हमारे दस्तावेज़ में योगदान देने के लिए, संसाधन देखें.