Multipan
This module includes the platform abstraction for multipan support.
Summary
Functions |
|
---|---|
otPlatMultipanGetActiveInstance(otInstance **aInstance)
|
Get instance currently in control of the radio.
|
otPlatMultipanIidToInstance(uint8_t aIid)
|
Get the instance pointer corresponding to the given IID.
|
otPlatMultipanInstanceToIid(otInstance *aInstance)
|
uint8_t
Get the IID corresponding to the given OpenThread instance pointer.
|
otPlatMultipanSetActiveInstance(otInstance *aInstance, bool aCompletePending)
|
Set
aInstance as the current active instance controlling radio. |
otPlatMultipanSwitchoverDone(otInstance *aInstance, bool aSuccess)
|
void
The platform completed the interface switching procedure.
|
Functions
otPlatMultipanGetActiveInstance
otError otPlatMultipanGetActiveInstance( otInstance **aInstance )
Get instance currently in control of the radio.
If radio does not operate in parallel on all interfaces, this function returns an instance object with granted radio access.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|
otPlatMultipanIidToInstance
otInstance * otPlatMultipanIidToInstance( uint8_t aIid )
Get the instance pointer corresponding to the given IID.
Details | |||
---|---|---|---|
Parameters |
|
||
Return Values |
|
otPlatMultipanInstanceToIid
uint8_t otPlatMultipanInstanceToIid( otInstance *aInstance )
Get the IID corresponding to the given OpenThread instance pointer.
Details | |||
---|---|---|---|
Parameters |
|
||
Return Values |
|
otPlatMultipanSetActiveInstance
otError otPlatMultipanSetActiveInstance( otInstance *aInstance, bool aCompletePending )
Set aInstance
as the current active instance controlling radio.
This function allows selecting the currently active instance on platforms that do not support parallel communication on multiple interfaces. In other words, if more than one instance is in a receive state, calling otPlatMultipanSetActiveInstance guarantees that specified instance will be the one receiving. This function returns if the request was received properly. After interface switching is complete, the platform should call otPlatMultipanSwitchoverDone. Switching interfaces may take longer if aCompletePending
is set true.
Details | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||||
Return Values |
|
otPlatMultipanSwitchoverDone
void otPlatMultipanSwitchoverDone( otInstance *aInstance, bool aSuccess )
The platform completed the interface switching procedure.
Should be invoked immediately after processing otPlatMultipanSetActiveInstance if no delay is needed, or if some longer radio operations need to complete first, after the switch in interfaces is fully complete.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.