Link
This module includes functions that control link-layer configuration.
Summary
Enumerations |
|
---|---|
otMacFilterAddressMode{
|
enum Defines address mode of the mac filter. |
Typedefs |
|
---|---|
otActiveScanResult
|
typedefstruct otActiveScanResult
This structure represents a received IEEE 802.15.4 Beacon. |
otEnergyScanResult
|
typedefstruct otEnergyScanResult
This structure represents an energy scan result. |
otHandleActiveScanResult)(otActiveScanResult *aResult, void *aContext)
|
typedefvoid(OTCALL *
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. |
otHandleEnergyScanResult)(otEnergyScanResult *aResult, void *aContext)
|
typedefvoid(OTCALL *
This function pointer is called during an IEEE 802.15.4 Energy Scan when the result for a channel is ready or the scan completes. |
otLinkPcapCallback)(const otRadioFrame *aFrame, bool aIsTx, void *aContext)
|
typedefvoid(*
This function pointer is called when an IEEE 802.15.4 frame is received. |
otMacCounters
|
typedefstruct otMacCounters
This structure represents the MAC layer counters. |
otMacFilterAddressMode
|
typedef Defines address mode of the mac filter. |
otMacFilterEntry
|
typedefstruct otMacFilterEntry
This structure represents a Mac Filter entry. |
otMacFilterIterator
|
typedefuint8_t
Used to iterate through mac filter entries. |
otThreadLinkInfo
|
typedefstruct otThreadLinkInfo
This structure represents link-specific information for messages received from the Thread radio. |
Functions |
|
---|---|
otLinkActiveScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleActiveScanResult aCallback, void *aCallbackContext)
|
This function starts an IEEE 802.15.4 Active Scan.
|
otLinkConvertLinkQualityToRss(otInstance *aInstance, uint8_t aLinkQuality)
|
int8_t
This method converts link quality to typical received signal strength.
|
otLinkConvertRssToLinkQuality(otInstance *aInstance, int8_t aRss)
|
uint8_t
This method converts received signal strength to link quality.
|
otLinkEnergyScan(otInstance *aInstance, uint32_t aScanChannels, uint16_t aScanDuration, otHandleEnergyScanResult aCallback, void *aCallbackContext)
|
This function starts an IEEE 802.15.4 Energy Scan.
|
otLinkFilterAddAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
|
This method adds an Extended Address to MAC filter.
|
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.
|
otLinkFilterClearAddresses(otInstance *aInstance)
|
This method clears all the Extended Addresses from MAC filter.
|
otLinkFilterClearRssIn(otInstance *aInstance)
|
This method clears all the received signal strength settings.
|
otLinkFilterGetAddressMode(otInstance *aInstance)
|
This function gets the address mode of MAC filter.
|
otLinkFilterGetNextAddress(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
|
This method gets an in-use address filter entry.
|
otLinkFilterGetNextRssIn(otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry)
|
This method gets an in-use RssIn filter entry.
|
otLinkFilterRemoveAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
|
This method removes an Extended Address from MAC filter.
|
otLinkFilterRemoveRssIn(otInstance *aInstance, const otExtAddress *aExtAddress)
|
This method removes the received signal strength setting for the received messages from the Extended Address or removes the default received signal strength setting if no Extended Address is specified.
|
otLinkFilterSetAddressMode(otInstance *aInstance, otMacFilterAddressMode aMode)
|
This function sets the address mode of MAC filter.
|
otLinkGetCcaFailureRate(otInstance *aInstance)
|
uint16_t
This function returns the current CCA (Clear Channel Assessment) failure rate.
|
otLinkGetChannel(otInstance *aInstance)
|
Get the IEEE 802.15.4 channel.
|
otLinkGetCounters(otInstance *aInstance)
|
OTAPI const otMacCounters *OTCALL
Get the MAC layer counters.
|
otLinkGetExtendedAddress(otInstance *aInstance)
|
OTAPI const otExtAddress *OTCALL
Get the IEEE 802.15.4 Extended Address.
|
otLinkGetFactoryAssignedIeeeEui64(otInstance *aInstance, otExtAddress *aEui64)
|
Get the factory-assigned IEEE EUI-64.
|
otLinkGetPanId(otInstance *aInstance)
|
Get the IEEE 802.15.4 PAN ID.
|
otLinkGetPollPeriod(otInstance *aInstance)
|
Get the data poll period of sleepy end device.
|
otLinkGetShortAddress(otInstance *aInstance)
|
Get the IEEE 802.15.4 Short Address.
|
otLinkGetSupportedChannelMask(otInstance *aInstance)
|
uint32_t
Get the supported channel mask.
|
otLinkIsActiveScanInProgress(otInstance *aInstance)
|
This function indicates whether or not an IEEE 802.15.4 Active Scan is currently in progress.
|
otLinkIsEnabled(otInstance *aInstance)
|
bool
This function indicates whether or not the link layer is enabled.
|
otLinkIsEnergyScanInProgress(otInstance *aInstance)
|
This function indicates whether or not an IEEE 802.15.4 Energy Scan is currently in progress.
|
otLinkIsInTransmitState(otInstance *aInstance)
|
This function indicates whether or not an IEEE 802.15.4 MAC is in the transmit state.
|
otLinkIsPromiscuous(otInstance *aInstance)
|
bool
This function indicates whether or not promiscuous mode is enabled at the link layer.
|
otLinkOutOfBandTransmitRequest(otInstance *aInstance, otRadioFrame *aOobFrame)
|
This function enqueues an IEEE 802.15.4 out of band Frame for transmission.
|
otLinkSendDataRequest(otInstance *aInstance)
|
This function enqueues an IEEE 802.15.4 Data Request message for transmission.
|
otLinkSetChannel(otInstance *aInstance, uint8_t aChannel)
|
Set the IEEE 802.15.4 channel.
|
otLinkSetEnabled(otInstance *aInstance, bool aEnable)
|
This function enables or disables the link layer.
|
otLinkSetExtendedAddress(otInstance *aInstance, const otExtAddress *aExtAddress)
|
This function sets the IEEE 802.15.4 Extended Address.
|
otLinkSetPanId(otInstance *aInstance, otPanId aPanId)
|
Set the IEEE 802.15.4 PAN ID.
|
otLinkSetPcapCallback(otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext)
|
void
This function registers a callback to provide received raw IEEE 802.15.4 frames.
|
otLinkSetPollPeriod(otInstance *aInstance, uint32_t aPollPeriod)
|
Set/clear user-specified/external data poll period for sleepy end device.
|
otLinkSetPromiscuous(otInstance *aInstance, bool aPromiscuous)
|
This function enables or disables the link layer promiscuous mode.
|
otLinkSetSupportedChannelMask(otInstance *aInstance, uint32_t aChannelMask)
|
Set the supported channel mask.
|
Structs |
|
---|---|
otActiveScanResult |
This structure represents a received IEEE 802.15.4 Beacon. |
otEnergyScanResult |
This structure represents an energy scan result. |
otMacCounters |
This structure represents the MAC layer counters. |
otMacFilterEntry |
This structure represents a Mac Filter entry. |
otThreadLinkInfo |
This structure represents link-specific information for messages received from the Thread radio. |
Enumerations
otMacFilterAddressMode
otMacFilterAddressMode
Typedefs
otActiveScanResult
struct otActiveScanResult otActiveScanResult
This structure represents a received IEEE 802.15.4 Beacon.
otEnergyScanResult
struct otEnergyScanResult otEnergyScanResult
This structure represents an energy scan result.
otHandleActiveScanResult
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.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otHandleEnergyScanResult
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 ready or the scan completes.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otLinkPcapCallback
void(* otLinkPcapCallback)(const otRadioFrame *aFrame, bool aIsTx, void *aContext)
This function pointer is called when an IEEE 802.15.4 frame is received.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otMacFilterAddressMode
enum otMacFilterAddressMode otMacFilterAddressMode
Defines address mode of the mac filter.
otMacFilterEntry
struct otMacFilterEntry otMacFilterEntry
This structure represents a Mac Filter entry.
otMacFilterIterator
uint8_t otMacFilterIterator
Used to iterate through mac filter entries.
otThreadLinkInfo
struct otThreadLinkInfo otThreadLinkInfo
This structure represents link-specific information for messages received from the Thread radio.
Functions
otLinkActiveScan
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.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
otLinkConvertLinkQualityToRss
int8_t otLinkConvertLinkQualityToRss( otInstance *aInstance, uint8_t aLinkQuality )
This method converts link quality to typical received signal strength.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
Typical platform received signal strength mapping to
aLinkQuality . |
otLinkConvertRssToLinkQuality
uint8_t otLinkConvertRssToLinkQuality( otInstance *aInstance, int8_t aRss )
This method converts received signal strength to link quality.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
Link quality value mapping to
aRss . |
otLinkEnergyScan
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.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
otLinkFilterAddAddress
OTAPI otError OTCALL otLinkFilterAddAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
This method adds an Extended Address to MAC filter.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterAddRssIn
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.
The default received signal strength for all received messages would be set if no Extended Address is specified.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterClearAddresses
OTAPI void OTCALL otLinkFilterClearAddresses( otInstance *aInstance )
This method clears all the Extended Addresses from MAC filter.
Details | |||
---|---|---|---|
Parameters |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterClearRssIn
OTAPI void OTCALL otLinkFilterClearRssIn( otInstance *aInstance )
This method clears all the received signal strength settings.
Details | |||
---|---|---|---|
Parameters |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterGetNextRssIn
otLinkFilterGetAddressMode
OTAPI otMacFilterAddressModeOTCALL otLinkFilterGetAddressMode( otInstance *aInstance )
This function gets the address mode of MAC filter.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
the address mode.
|
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterGetNextAddress
OTAPI otError OTCALL otLinkFilterGetNextAddress( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry )
This method gets an in-use address filter entry.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterGetNextRssIn
OTAPI otError OTCALL otLinkFilterGetNextRssIn( otInstance *aInstance, otMacFilterIterator *aIterator, otMacFilterEntry *aEntry )
This method gets an in-use RssIn filter entry.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterRemoveAddress
OTAPI otError OTCALL otLinkFilterRemoveAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
This method removes an Extended Address from MAC filter.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterRemoveRssIn
OTAPI otError OTCALL otLinkFilterRemoveRssIn( otInstance *aInstance, const otExtAddress *aExtAddress )
This method removes the received signal strength setting for the received messages from the Extended Address or removes the default received signal strength setting if no Extended Address is specified.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterSetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkFilterSetAddressMode
OTAPI otError OTCALL otLinkFilterSetAddressMode( otInstance *aInstance, otMacFilterAddressMode aMode )
This function sets the address mode of MAC filter.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkFilterGetAddressMode
otLinkFilterAddAddress
otLinkFilterRemoveAddress
otLinkFilterClearAddresses
otLinkFilterGetNextAddress
otLinkFilterAddRssIn
otLinkFilterRemoveRssIn
otLinkFilterClearRssIn
otLinkFilterGetNextRssIn
otLinkGetCcaFailureRate
uint16_t otLinkGetCcaFailureRate( otInstance *aInstance )
This function returns the current CCA (Clear Channel Assessment) failure rate.
The rate is maintained over a window of (roughly) last OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW
frame transmissions.
Details | |
---|---|
Returns |
The CCA failure rate with maximum value
0xffff corresponding to 100% failure rate. |
otLinkGetChannel
OTAPI uint8_t OTCALL otLinkGetChannel( otInstance *aInstance )
Get the IEEE 802.15.4 channel.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The IEEE 802.15.4 channel.
|
otLinkSetChannel
otLinkGetCounters
OTAPI const otMacCounters *OTCALL otLinkGetCounters( otInstance *aInstance )
Get the MAC layer counters.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the MAC layer counters.
|
otLinkGetExtendedAddress
OTAPI const otExtAddress *OTCALL otLinkGetExtendedAddress( otInstance *aInstance )
Get the IEEE 802.15.4 Extended Address.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the IEEE 802.15.4 Extended Address.
|
otLinkGetFactoryAssignedIeeeEui64
OTAPI void OTCALL otLinkGetFactoryAssignedIeeeEui64( otInstance *aInstance, otExtAddress *aEui64 )
Get the factory-assigned IEEE EUI-64.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
otLinkGetPanId
OTAPI otPanIdOTCALL otLinkGetPanId( otInstance *aInstance )
Get the IEEE 802.15.4 PAN ID.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The IEEE 802.15.4 PAN ID.
|
otLinkSetPanId
otLinkGetPollPeriod
OTAPI uint32_t OTCALL otLinkGetPollPeriod( otInstance *aInstance )
Get the data poll period of sleepy end device.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The data poll period of sleepy end device in milliseconds.
|
otLinkSetPollPeriod
otLinkGetShortAddress
OTAPI otShortAddressOTCALL otLinkGetShortAddress( otInstance *aInstance )
Get the IEEE 802.15.4 Short Address.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A pointer to the IEEE 802.15.4 Short Address.
|
otLinkGetSupportedChannelMask
uint32_t otLinkGetSupportedChannelMask( otInstance *aInstance )
Get the supported channel mask.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The supported channel mask as
uint32_t with bit 0 (lsb) mapping to channel 0, bit 1 to channel 1, so on. |
otLinkIsActiveScanInProgress
OTAPI bool OTCALL otLinkIsActiveScanInProgress( otInstance *aInstance )
This function indicates whether or not an IEEE 802.15.4 Active Scan is currently in progress.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true if an IEEE 802.15.4 Active Scan is in progress, false otherwise.
|
otLinkIsEnabled
bool otLinkIsEnabled( otInstance *aInstance )
This function indicates whether or not the link layer is enabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkIsEnergyScanInProgress
OTAPI bool OTCALL otLinkIsEnergyScanInProgress( otInstance *aInstance )
This function indicates whether or not an IEEE 802.15.4 Energy Scan is currently in progress.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true if an IEEE 802.15.4 Energy Scan is in progress, false otherwise.
|
otLinkIsInTransmitState
OTAPI bool OTCALL otLinkIsInTransmitState( otInstance *aInstance )
This function indicates whether or not an IEEE 802.15.4 MAC is in the transmit state.
MAC module is in the transmit state during CSMA/CA procedure, CCA, Data, Beacon or Data Request frame transmission and receiving an ACK of a transmitted frame. MAC module is not in the transmit state during transmission of an ACK frame or a Beacon Request frame.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true if an IEEE 802.15.4 MAC is in the transmit state, false otherwise.
|
otLinkIsPromiscuous
bool otLinkIsPromiscuous( otInstance *aInstance )
This function indicates whether or not promiscuous mode is enabled at the link layer.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkOutOfBandTransmitRequest
OTAPI otError OTCALL otLinkOutOfBandTransmitRequest( otInstance *aInstance, otRadioFrame *aOobFrame )
This function enqueues an IEEE 802.15.4 out of band Frame for transmission.
An Out of Band frame is one that was generated outside of OpenThread.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otLinkSendDataRequest
OTAPI otError OTCALL otLinkSendDataRequest( otInstance *aInstance )
This function enqueues an IEEE 802.15.4 Data Request message for transmission.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
otLinkSetChannel
OTAPI otError OTCALL otLinkSetChannel( otInstance *aInstance, uint8_t aChannel )
Set the IEEE 802.15.4 channel.
This function succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkGetChannel
otLinkSetEnabled
otError otLinkSetEnabled( otInstance *aInstance, bool aEnable )
This function enables or disables the link layer.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkSetExtendedAddress
OTAPI otError OTCALL otLinkSetExtendedAddress( otInstance *aInstance, const otExtAddress *aExtAddress )
This function sets the IEEE 802.15.4 Extended Address.
This function succeeds only when Thread protocols are disabled.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkSetPanId
OTAPI otError OTCALL otLinkSetPanId( otInstance *aInstance, otPanId aPanId )
Set the IEEE 802.15.4 PAN ID.
This function succeeds only when Thread protocols are disabled. A successful call to this function also invalidates the Active and Pending Operational Datasets in non-volatile memory.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otLinkGetPanId
otLinkSetPcapCallback
void otLinkSetPcapCallback( otInstance *aInstance, otLinkPcapCallback aPcapCallback, void *aCallbackContext )
This function registers a callback to provide received raw IEEE 802.15.4 frames.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
otLinkSetPollPeriod
OTAPI otError OTCALL otLinkSetPollPeriod( otInstance *aInstance, uint32_t aPollPeriod )
Set/clear user-specified/external data poll period for sleepy end device.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkGetPollPeriod
otLinkSetPromiscuous
otError otLinkSetPromiscuous( otInstance *aInstance, bool aPromiscuous )
This function enables or disables the link layer promiscuous mode.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
otLinkSetSupportedChannelMask
otError otLinkSetSupportedChannelMask( otInstance *aInstance, uint32_t aChannelMask )
Set the supported channel mask.
This function succeeds only when Thread protocols are disabled.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
Macros
OT_MAC_FILTER_FIXED_RSS_DISABLED
OT_MAC_FILTER_FIXED_RSS_DISABLED 127
Used to indicate no fixed received signal strength was set.
OT_MAC_FILTER_ITERATOR_INIT
OT_MAC_FILTER_ITERATOR_INIT 0
Initializer for otMacFilterIterator.