class RadioTypes

Defined at line 654 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

Represents a set of radio links.

Public Members

static const uint16_t kInfoStringSize
static const RadioType[2] kAllRadioTypes

Public Methods

void RadioTypes ()

Initializes a `RadioTypes` object as empty set

Defined at line 672 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void RadioTypes (uint8_t aMask)

Initializes a `RadioTypes` object with a given bit-mask.

Parameters

aMask [in] A bit-mask representing the radio types (the first bit corresponds to radio type 0, and so on)

Defined at line 682 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void Clear ()

Clears the set.

Defined at line 690 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

bool IsEmpty ()

Indicates whether the set is empty or not

Defined at line 697 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

bool ContainsSingleRadio ()

This method indicates whether the set contains only a single radio type.

Defined at line 704 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

bool Contains (RadioType aType)

Indicates whether or not the set contains a given radio type.

Parameters

aType [in] A radio link type.

Defined at line 713 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void Add (RadioType aType)

Adds a radio type to the set.

Parameters

aType [in] A radio link type.

Defined at line 720 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void Add (RadioTypes aTypes)

Adds another radio types set to the current one.

Parameters

aTypes [in] A radio link type set to add.

Defined at line 727 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

void AddAll ()

Adds all radio types supported by device to the set.

void Remove (RadioType aType)

Removes a given radio type from the set.

Parameters

aType [in] A radio link type.

Defined at line 739 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

uint8_t GetAsBitMask ()

Gets the radio type set as a bitmask.

The first bit in the mask corresponds to first radio type (radio type with value zero), and so on.

Defined at line 748 of file ../../third_party/openthread/src/core/mac/mac_types.hpp

InfoString ToString ()

Converts the radio set to human-readable string.

Returns

A string representation of the set of radio types.

RadioTypes operator- (const RadioTypes & aOther)

Overloads operator `-` to return a new set which is the set difference between current set and

a given set.

Parameters

aOther [in] Another radio type set.

Defined at line 758 of file ../../third_party/openthread/src/core/mac/mac_types.hpp