Enumerations
enum Capability : uint16_t
| Name | Value | Comments |
|---|---|---|
| kCapAckTimeout | OT_RADIO_CAPS_ACK_TIMEOUT |
Supports ack timeout event. |
| kCapEnergyScan | OT_RADIO_CAPS_ENERGY_SCAN |
Supports energy scan. |
| kCapTransmitRetries | OT_RADIO_CAPS_TRANSMIT_RETRIES |
Supports tx retry logic (and CSMA). |
| kCapCsmaBackoff | OT_RADIO_CAPS_CSMA_BACKOFF |
Supports CSMA backoff for frame tx (but no retry). |
| kCapSleepToTx | OT_RADIO_CAPS_SLEEP_TO_TX |
Supports transition from sleep to TX. |
| kCapTransmitSec | OT_RADIO_CAPS_TRANSMIT_SEC |
Supports tx security. |
| kCapTransmitTiming | OT_RADIO_CAPS_TRANSMIT_TIMING |
Supports tx at specific time. |
| kCapReceiveTiming | OT_RADIO_CAPS_RECEIVE_TIMING |
Supports rx at specific time. |
| kCapRxOnWhenIdle | OT_RADIO_CAPS_RX_ON_WHEN_IDLE |
Supports RxOnWhenIdle handling. |
| kCapTransmitFramePower | OT_RADIO_CAPS_TRANSMIT_FRAME_POWER |
Supports setting per-frame transmit power. |
| kCapAltShortAddr | OT_RADIO_CAPS_ALT_SHORT_ADDR |
Supports setting alternate short address. |
Represents a radio capability.
Defined at line 128 of file ../../third_party/openthread/src/core/radio/radio.hpp
enum Type : uint8_t
| Name | Value | Comments |
|---|---|---|
| kTypeIeee802154 | 0 |
IEEE 802.15.4 (2.4GHz) link type. |
| kTypeTrel | 1 |
Thread Radio Encapsulation link type. |
Defines the radio link types.
Defined at line 192 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
Records
Functions
-
uint32_t ChannelMaskForPage (uint8_t aChannelPage)Returns the channel mask for a given channel page if supported by the radio.
Parameters
aChannelPage [in] The channel page. -
Time32 ConvertTime64To32 (Time64 aTime64)Converts a 64-bit radio time to a 32-bit radio time.
Parameters
aTime64 [in] The 64-bit radio time to convert.Defined at line 87 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
-
uint32_t ConvertUncertaintyToUsec (uint16_t aUncertainty)Converts CSL uncertainty value to microseconds.
Parameters
aUncertainty [in] The uncertainty in units of 10 microseconds (`kUncertaintyUnit`).Defined at line 120 of file ../../third_party/openthread/src/core/radio/radio_types.hpp
-
bool IsTimeStrictlyBefore (Time32 aFirstTime, Time32 aSecondTime)Indicates whether a given 32-bit radio time is strictly before another 32-bit radio time.
This function correctly accounts for 32-bit microsecond counter roll-over.
Parameters
aFirstTime [in] The first 32-bit radio time to compare.aSecondTime [in] The second 32-bit radio time to compare. -
uint32_t DetermineClockDrift (uint16_t aClockAccuracy, uint32_t aIntervalUs)Calculates clock drift in microseconds for a given interval and clock accuracy.
Parameters
aClockAccuracy [in] The clock accuracy in ppm (can be for a single device or combined accuracy of transmitterand receiver).aIntervalUs [in] The interval duration in microseconds. -
bool SupportsChannelPage (uint8_t aChannelPage)Indicates whether a given channel page is supported based on the current configurations.
Parameters
aChannelPage [in] The channel page to check.Defined at line 156 of file ../../third_party/openthread/src/core/radio/radio.hpp
-
bool IsChannelValid (uint16_t aChannel)Checks if a given channel is a valid channel number (within `[kChannelMin, kChannelMax]`).
Parameters
aChannel [in] The channel number to check.Defined at line 186 of file ../../third_party/openthread/src/core/radio/radio.hpp
-
const char * TypeToString (Type aType)Converts a link type to a string
Parameters
aType [in] A link type value.
Variables
const uint8_t[1] kSupportedChannelPages