35 #ifndef OPENTHREAD_LINK_H_ 36 #define OPENTHREAD_LINK_H_ 616 #endif // OPENTHREAD_LINK_H_ OTAPI void OTCALL otLinkFilterClearRssIn(otInstance *aInstance)
This method clears all the received signal strength settings.
This struct represents an energy scan result.
Definition: types.h:542
OTAPI otError OTCALL otLinkFilterSetAddressMode(otInstance *aInstance, otMacFilterAddressMode aMode)
This function sets the address mode of MAC filter.
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
OTAPI otError OTCALL otLinkSendDataRequest(otInstance *aInstance)
This function enqueues an IEEE 802.15.4 Data Request message for transmission.
Definition: link_api.cpp:132
This file defines the types and structures used in the OpenThread library API.
OTAPI otError OTCALL otLinkEnergyScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext)
This function starts an IEEE 802.15.4 Energy Scan.
Definition: link_api.cpp:292
OTAPI void OTCALL otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod)
Set the data poll period for sleepy end device.
Definition: link_api.cpp:127
void(* otLinkPcapCallback)(const otRadioFrame *aFrame, void *aContext)
This function pointer is called when an IEEE 802.15.4 frame is received.
Definition: link.h:568
void(OTCALL * otHandleEnergyScanResult)(otEnergyScanResult *aResult, void *aContext)
This function pointer is called during an IEEE 802.15.4 Energy Scan when the result for a channel is ...
Definition: link.h:98
This file defines the radio interface for OpenThread.
OTAPI otShortAddress OTCALL otLinkGetShortAddress(otInstance *aInstance)
Get the IEEE 802.15.4 Short Address.
Definition: link_api.cpp:137
otMacFilterAddressMode
Defines address mode of the mac filter.
Definition: types.h:889
otError otLinkSetPromiscuous(otInstance *aInstance, bool aPromiscuous)
This function enables or disables the link layer promiscuous mode.
Definition: link_api.cpp:247
OTAPI otError OTCALL otLinkFilterRemoveAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
This method removes an Extended Address from MAC filter.
void otLinkSetPcapCallback(otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext)
This function registers a callback to provide received raw IEEE 802.15.4 frames.
Definition: link_api.cpp:237
OTAPI otMacFilterAddressMode OTCALL otLinkFilterGetAddressMode(otInstance *aInstance)
This function gets the address mode of MAC filter.
OTAPI bool OTCALL otLinkIsInTransmitState(otInstance *aInstance)
This function indicates whether or not an IEEE 802.15.4 MAC is in the transmit state.
Definition: link_api.cpp:313
uint16_t otPanId
This type represents the IEEE 802.15.4 PAN ID.
Definition: types.h:388
OTAPI otError OTCALL otLinkSetChannel(otInstance *aInstance, uint8_t aChannel)
Set the IEEE 802.15.4 channel.
Definition: link_api.cpp:50
This structure represents an IEEE 802.15.4 radio frame.
Definition: radio.h:99
OTAPI int8_t OTCALL otLinkGetMaxTransmitPower(otInstance *aInstance)
This function returns the maximum transmit power setting in dBm.
Definition: link_api.cpp:91
OTAPI bool OTCALL otLinkIsEnergyScanInProgress(otInstance *aInstance)
This function indicates whether or not an IEEE 802.15.4 Energy Scan is currently in progress...
Definition: link_api.cpp:308
OTAPI otError OTCALL otLinkActiveScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleActiveScanResult aCallback, void *aCallbackContext)
This function starts an IEEE 802.15.4 Active Scan.
Definition: link_api.cpp:265
OTAPI uint32_t OTCALL otLinkGetPollPeriod(otInstance *aInstance)
Get the data poll period of sleepy end device.
Definition: link_api.cpp:122
uint8_t otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss)
This method converts received signal strength to link quality.
OTAPI otPanId OTCALL otLinkGetPanId(otInstance *aInstance)
Get the IEEE 802.15.4 PAN ID.
Definition: link_api.cpp:102
uint16_t otShortAddress
This type represents the IEEE 802.15.4 Short Address.
Definition: types.h:394
OTAPI const otExtAddress *OTCALL otLinkGetExtendedAddress(otInstance *aInstance)
Get the IEEE 802.15.4 Extended Address.
Definition: link_api.cpp:65
OTAPI bool OTCALL otLinkIsActiveScanInProgress(otInstance *aInstance)
This function indicates whether or not an IEEE 802.15.4 Active Scan is currently in progress...
Definition: link_api.cpp:274
OTAPI const otMacCounters *OTCALL otLinkGetCounters(otInstance *aInstance)
Get the MAC layer counters.
Definition: link_api.cpp:260
uint8_t otMacFilterIterator
Used to iterate through mac filter entries.
Definition: types.h:884
This struct represents a received IEEE 802.15.4 Beacon.
Definition: types.h:522
OTAPI otError OTCALL otLinkSetPanId(otInstance *aInstance, otPanId aPanId)
Set the IEEE 802.15.4 PAN ID.
Definition: link_api.cpp:107
OTAPI void OTCALL otLinkSetMaxTransmitPower(otInstance *aInstance, int8_t aPower)
This function sets the maximum transmit power in dBm.
Definition: link_api.cpp:96
OTAPI void OTCALL otLinkGetFactoryAssignedIeeeEui64(otInstance *aInstance, otExtAddress *aEui64)
Get the factory-assigned IEEE EUI-64.
Definition: link_api.cpp:86
OTAPI otError OTCALL otLinkSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
This function sets the IEEE 802.15.4 Extended Address.
Definition: link_api.cpp:70
OTAPI void OTCALL otLinkFilterClearAddresses(otInstance *aInstance)
This method clears all the Extended Addresses from MAC filter.
OTAPI uint8_t OTCALL otLinkGetChannel(otInstance *aInstance)
Get the IEEE 802.15.4 channel.
Definition: link_api.cpp:45
OTAPI otError OTCALL otLinkFilterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
This method gets an in-use address filter entry.
OTAPI otError OTCALL otLinkFilterAddAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
This method adds an Extended Address to MAC filter.
This type represents the IEEE 802.15.4 Extended Address.
Definition: types.h:402
This structure represents a Mac Filter entry.
Definition: types.h:900
This structure represents the MAC layer counters.
Definition: types.h:1011
OTAPI otError OTCALL otLinkFilterAddRssIn(otInstance *aInstance, const otExtAddress *aExtAddress, int8_t aRss)
This method sets the received signal strength (in dBm) for the messages from the Extended Address...
int8_t otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality)
This method converts link quality to typical received signal strength.
OTAPI otError OTCALL otLinkFilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
This method gets an in-use RssIn filter entry.
OTAPI otError OTCALL otLinkFilterRemoveRssIn(otInstance *aInstance, const otExtAddress *aExtAddress)
This method removes the received signal strength setting for the received messages from the Extended ...
void(OTCALL * otHandleActiveScanResult)(otActiveScanResult *aResult, void *aContext)
This function pointer is called during an IEEE 802.15.4 Active Scan when an IEEE 802.15.4 Beacon is received or the scan completes.
Definition: link.h:63
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
bool otLinkIsPromiscuous(otInstance *aInstance)
This function indicates whether or not promiscuous mode is enabled at the link layer.
Definition: link_api.cpp:242