Radio Types

This module includes the platform abstraction for a radio frame.

Summary

Enumerations

Anonymous Enum 18{
  OT_RADIO_FRAME_MAX_SIZE = 127,
  OT_RADIO_FRAME_MIN_SIZE = 3,
  OT_RADIO_SYMBOLS_PER_OCTET = 2,
  OT_RADIO_BIT_RATE = 250000,
  OT_RADIO_BITS_PER_OCTET = 8,
  OT_RADIO_LQI_NONE = 0,
  OT_RADIO_RSSI_INVALID = 127,
  OT_RADIO_POWER_INVALID = 127
}
enum
Anonymous Enum 19{
  OT_RADIO_CHANNEL_PAGE_0 = 0,
  OT_RADIO_CHANNEL_PAGE_0_MASK = (1U << OT_RADIO_CHANNEL_PAGE_0),
  OT_RADIO_CHANNEL_PAGE_2 = 2,
  OT_RADIO_CHANNEL_PAGE_2_MASK = (1U << OT_RADIO_CHANNEL_PAGE_2)
}
enum
This enumeration defines the channel page.
Anonymous Enum 20{
  OT_RADIO_915MHZ_OQPSK_CHANNEL_MIN = 1,
  OT_RADIO_915MHZ_OQPSK_CHANNEL_MAX = 10,
  OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK = 0x3ff << OT_RADIO_915MHZ_OQPSK_CHANNEL_MIN,
  OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN = 11,
  OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX = 26,
  OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MASK = 0xffff << OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN
}
enum
This enumeration defines the frequency band channel range.
Anonymous Enum 21{
  OT_RADIO_CAPS_NONE = 0,
  OT_RADIO_CAPS_ACK_TIMEOUT = 1 << 0,
  OT_RADIO_CAPS_ENERGY_SCAN = 1 << 1,
  OT_RADIO_CAPS_TRANSMIT_RETRIES = 1 << 2,
  OT_RADIO_CAPS_CSMA_BACKOFF = 1 << 3,
  OT_RADIO_CAPS_SLEEP_TO_TX = 1 << 4,
  OT_RADIO_CAPS_TRANSMIT_SEC = 1 << 5,
  OT_RADIO_CAPS_TRANSMIT_TIMING = 1 << 6,
  OT_RADIO_CAPS_RECEIVE_TIMING = 1 << 7
}
enum
This enumeration defines constants that are used to indicate different radio capabilities.
Anonymous Enum 22{
  OT_IE_HEADER_SIZE = 2,
  OT_CSL_IE_SIZE = 4,
  OT_ACK_IE_MAX_SIZE = 16,
  OT_ENH_PROBING_IE_DATA_MAX_SIZE = 2
}
enum
This enumeration defines constants about size of header IE in ACK.
otRadioKeyType{
  OT_KEY_TYPE_LITERAL_KEY = 0,
  OT_KEY_TYPE_KEY_REF = 1
}
enum
This enumeration defines constants about key types.
otRadioState enum
This structure represents the state of a radio.

Typedefs

otExtAddress typedef
struct otExtAddress
This structure represents the IEEE 802.15.4 Extended Address.
otLinkMetrics typedef
struct otLinkMetrics
This structure represents what metrics are specified to query.
otMacKey typedef
struct otMacKey
This structure represents a MAC Key.
otMacKeyMaterial typedef
otMacKeyRef typedef
This type represents a MAC Key Ref used by PSA.
otPanId typedef
uint16_t
This type represents the IEEE 802.15.4 PAN ID.
otRadioCaps typedef
uint8_t
This type represents radio capabilities.
otRadioCoexMetrics typedef
The following are valid radio state transitions:
otRadioFrame typedef
struct otRadioFrame
This structure represents an IEEE 802.15.4 radio frame.
otRadioIeInfo typedef
struct otRadioIeInfo
This structure represents the IEEE 802.15.4 Header IE (Information Element) related information of a radio frame.
otRadioState typedef
This structure represents the state of a radio.
otShortAddress typedef
uint16_t
This type represents the IEEE 802.15.4 Short Address.

Variables

OT_TOOL_PACKED_END

Macros

CSL_IE_HEADER_BYTES_HI 0x0d
Fixed CSL IE header second byte.
CSL_IE_HEADER_BYTES_LO 0x04
Fixed CSL IE header first byte.
OT_EXT_ADDRESS_SIZE 8
Size of an IEEE 802.15.4 Extended Address (bytes)
OT_MAC_KEY_SIZE 16
Size of the MAC Key in bytes.
OT_PANID_BROADCAST 0xffff
IEEE 802.15.4 Broadcast PAN ID.
OT_TOOL_PACKED_END
Compiler-specific indication at the end of a byte packed class or struct.

Structs

otExtAddress

This structure represents the IEEE 802.15.4 Extended Address.

otLinkMetrics

This structure represents what metrics are specified to query.

otMacKey

This structure represents a MAC Key.

otMacKeyMaterial

This structure represents a MAC Key.

otRadioCoexMetrics

The following are valid radio state transitions:

otRadioFrame

This structure represents an IEEE 802.15.4 radio frame.

otRadioIeInfo

This structure represents the IEEE 802.15.4 Header IE (Information Element) related information of a radio frame.

Enumerations

Anonymous Enum 18

 Anonymous Enum 18
Properties
OT_RADIO_BITS_PER_OCTET

Number of bits per octet.

OT_RADIO_BIT_RATE

2.4 GHz IEEE 802.15.4 (bits per second)

OT_RADIO_FRAME_MAX_SIZE

aMaxPHYPacketSize (IEEE 802.15.4-2006)

OT_RADIO_FRAME_MIN_SIZE

Minimal size of frame FCS + CONTROL.

OT_RADIO_LQI_NONE

LQI measurement not supported.

OT_RADIO_POWER_INVALID

Invalid or unknown power value.

OT_RADIO_RSSI_INVALID

Invalid or unknown RSSI value.

OT_RADIO_SYMBOLS_PER_OCTET

2.4 GHz IEEE 802.15.4-2006

Anonymous Enum 19

 Anonymous Enum 19

This enumeration defines the channel page.

Properties
OT_RADIO_CHANNEL_PAGE_0

2.4 GHz IEEE 802.15.4-2006

OT_RADIO_CHANNEL_PAGE_0_MASK

2.4 GHz IEEE 802.15.4-2006

OT_RADIO_CHANNEL_PAGE_2

915 MHz IEEE 802.15.4-2006

OT_RADIO_CHANNEL_PAGE_2_MASK

915 MHz IEEE 802.15.4-2006

Anonymous Enum 20

 Anonymous Enum 20

This enumeration defines the frequency band channel range.

Properties
OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MASK

2.4 GHz IEEE 802.15.4-2006

OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MAX

2.4 GHz IEEE 802.15.4-2006

OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MIN

2.4 GHz IEEE 802.15.4-2006

OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK

915 MHz IEEE 802.15.4-2006

OT_RADIO_915MHZ_OQPSK_CHANNEL_MAX

915 MHz IEEE 802.15.4-2006

OT_RADIO_915MHZ_OQPSK_CHANNEL_MIN

915 MHz IEEE 802.15.4-2006

Anonymous Enum 21

 Anonymous Enum 21

This enumeration defines constants that are used to indicate different radio capabilities.

See otRadioCaps.

Properties
OT_RADIO_CAPS_ACK_TIMEOUT

Radio supports AckTime event.

OT_RADIO_CAPS_CSMA_BACKOFF

Radio supports CSMA backoff for frame transmission (but no retry).

OT_RADIO_CAPS_ENERGY_SCAN

Radio supports Energy Scans.

OT_RADIO_CAPS_NONE

Radio supports no capability.

OT_RADIO_CAPS_RECEIVE_TIMING

Radio supports rx at specific time.

OT_RADIO_CAPS_SLEEP_TO_TX

Radio supports direct transition from sleep to TX with CSMA.

OT_RADIO_CAPS_TRANSMIT_RETRIES

Radio supports tx retry logic with collision avoidance (CSMA).

OT_RADIO_CAPS_TRANSMIT_SEC

Radio supports tx security.

OT_RADIO_CAPS_TRANSMIT_TIMING

Radio supports tx at specific time.

Anonymous Enum 22

 Anonymous Enum 22

This enumeration defines constants about size of header IE in ACK.

Properties
OT_ACK_IE_MAX_SIZE

Max length for header IE in ACK.

OT_CSL_IE_SIZE

Size of CSL IE content in bytes.

OT_ENH_PROBING_IE_DATA_MAX_SIZE

Max length of Link Metrics data in Vendor-Specific IE.

OT_IE_HEADER_SIZE

Size of IE header in bytes.

otRadioKeyType

 otRadioKeyType

This enumeration defines constants about key types.

Properties
OT_KEY_TYPE_KEY_REF

Use Reference to Key.

OT_KEY_TYPE_LITERAL_KEY

Use Literal Keys.

otRadioState

 otRadioState

This structure represents the state of a radio.

Initially, a radio is in the Disabled state.

Typedefs

otExtAddress

struct otExtAddress otExtAddress

This structure represents the IEEE 802.15.4 Extended Address.

otLinkMetrics

struct otLinkMetrics otLinkMetrics

This structure represents what metrics are specified to query.

otMacKey

struct otMacKey otMacKey

This structure represents a MAC Key.

otMacKeyMaterial

struct otMacKeyMaterial otMacKeyMaterial

otMacKeyRef

otCryptoKeyRef otMacKeyRef

This type represents a MAC Key Ref used by PSA.

otPanId

uint16_t otPanId

This type represents the IEEE 802.15.4 PAN ID.

otRadioCaps

uint8_t otRadioCaps

This type represents radio capabilities.

The value is a bit-field indicating the capabilities supported by the radio. See OT_RADIO_CAPS_* definitions.

otRadioCoexMetrics

struct otRadioCoexMetrics otRadioCoexMetrics

The following are valid radio state transitions:

(Radio ON) +----+ Enable() +-+ Receive() +---+ Transmit() +----+ | |----->| |----->| |-------->| | | Disabled | | Sleep | | Receive | | Transmit | | |<-----| |<-----| |<--------| | +----+ Disable() +-+ Sleep() +---+ Receive() +----+ (Radio OFF) or signal TransmitDone

During the IEEE 802.15.4 data request command the transition Sleep->Receive->Transmit can be shortened to direct transition from Sleep to Transmit if the platform supports the OT_RADIO_CAPS_SLEEP_TO_TX capability. This structure represents radio coexistence metrics.

otRadioFrame

struct otRadioFrame otRadioFrame

This structure represents an IEEE 802.15.4 radio frame.

otRadioIeInfo

struct otRadioIeInfo otRadioIeInfo

This structure represents the IEEE 802.15.4 Header IE (Information Element) related information of a radio frame.

otRadioState

enum otRadioState otRadioState

This structure represents the state of a radio.

Initially, a radio is in the Disabled state.

otShortAddress

uint16_t otShortAddress

This type represents the IEEE 802.15.4 Short Address.

Variables

OT_TOOL_PACKED_END

OT_TOOL_PACKED_BEGIN struct otExtAddress OT_TOOL_PACKED_END

Macros

CSL_IE_HEADER_BYTES_HI

 CSL_IE_HEADER_BYTES_HI 0x0d

Fixed CSL IE header second byte.

CSL_IE_HEADER_BYTES_LO

 CSL_IE_HEADER_BYTES_LO 0x04

Fixed CSL IE header first byte.

OT_EXT_ADDRESS_SIZE

 OT_EXT_ADDRESS_SIZE 8

Size of an IEEE 802.15.4 Extended Address (bytes)

OT_MAC_KEY_SIZE

 OT_MAC_KEY_SIZE 16

Size of the MAC Key in bytes.

OT_PANID_BROADCAST

 OT_PANID_BROADCAST 0xffff

IEEE 802.15.4 Broadcast PAN ID.

OT_TOOL_PACKED_END

 OT_TOOL_PACKED_END

Compiler-specific indication at the end of a byte packed class or struct.

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.