![]() |
![]() |
OpenThread
1.05.03.02
|
Namespaces | |
BackboneRouter | |
Cli | |
This namespace contains definitions for the CLI interpreter. | |
Coap | |
This namespace includes definitions for CoAP. | |
Crypto | |
Dns | |
This namespace includes definitions for DNS. | |
Encoding | |
Extension | |
Hdlc | |
This namespace includes definitions for the HDLC-lite encoder and decoder. | |
Heap | |
Ip4 | |
This namespace includes definitions for IPv4 networking used by NAT64. | |
Ip6 | |
This namespace includes definitions for IPv6 networking. | |
Lowpan | |
This namespace includes definitions for 6LoWPAN message processing. | |
Mac | |
MeshCoP | |
Mle | |
This namespace includes definitions for the MLE protocol. | |
Ncp | |
NetworkData | |
This namespace includes definitions for managing Thread Network Data. | |
NetworkDiagnostic | |
Posix | |
Random | |
Spinel | |
Tmf | |
TypeTraits | |
Url | |
Utils | |
Typedefs | |
typedef bool(* | ByteMatcher) (uint8_t aFirst, uint8_t aSecond) |
typedef BitVector< OPENTHREAD_CONFIG_MLE_MAX_CHILDREN > | ChildMask |
typedef otError | Error |
typedef Mac::Key | Kek |
typedef Mac::KeyMaterial | KekKeyMaterial |
typedef UintTlvInfo< ThreadTlv::kCommissionerSessionId, uint16_t > | ThreadCommissionerSessionIdTlv |
typedef SimpleTlvInfo< ThreadTlv::kExtMacAddress, Mac::ExtAddress > | ThreadExtMacAddressTlv |
typedef UintTlvInfo< ThreadTlv::kLastTransactionTime, uint32_t > | ThreadLastTransactionTimeTlv |
typedef SimpleTlvInfo< ThreadTlv::kMeshLocalEid, Ip6::InterfaceIdentifier > | ThreadMeshLocalEidTlv |
typedef TlvInfo< ThreadTlv::kNetworkName > | ThreadNetworkNameTlv |
typedef UintTlvInfo< ThreadTlv::kRloc16, uint16_t > | ThreadRloc16Tlv |
typedef SimpleTlvInfo< ThreadTlv::kTarget, Ip6::Address > | ThreadTargetTlv |
typedef UintTlvInfo< ThreadTlv::kTimeout, uint32_t > | ThreadTimeoutTlv |
typedef Time | TimeMilli |
Enumerations | |
enum | DataLengthType : uint8_t { kWithUint8Length, kWithUint16Length } |
enum | Event : uint32_t { kEventIp6AddressAdded = OT_CHANGED_IP6_ADDRESS_ADDED, kEventIp6AddressRemoved = OT_CHANGED_IP6_ADDRESS_REMOVED, kEventThreadRoleChanged = OT_CHANGED_THREAD_ROLE, kEventThreadLinkLocalAddrChanged = OT_CHANGED_THREAD_LL_ADDR, kEventThreadMeshLocalAddrChanged = OT_CHANGED_THREAD_ML_ADDR, kEventThreadRlocAdded = OT_CHANGED_THREAD_RLOC_ADDED, kEventThreadRlocRemoved = OT_CHANGED_THREAD_RLOC_REMOVED, kEventThreadPartitionIdChanged = OT_CHANGED_THREAD_PARTITION_ID, kEventThreadKeySeqCounterChanged = OT_CHANGED_THREAD_KEY_SEQUENCE_COUNTER, kEventThreadNetdataChanged = OT_CHANGED_THREAD_NETDATA, kEventThreadChildAdded = OT_CHANGED_THREAD_CHILD_ADDED, kEventThreadChildRemoved = OT_CHANGED_THREAD_CHILD_REMOVED, kEventIp6MulticastSubscribed = OT_CHANGED_IP6_MULTICAST_SUBSCRIBED, kEventIp6MulticastUnsubscribed = OT_CHANGED_IP6_MULTICAST_UNSUBSCRIBED, kEventThreadChannelChanged = OT_CHANGED_THREAD_CHANNEL, kEventThreadPanIdChanged = OT_CHANGED_THREAD_PANID, kEventThreadNetworkNameChanged = OT_CHANGED_THREAD_NETWORK_NAME, kEventThreadExtPanIdChanged = OT_CHANGED_THREAD_EXT_PANID, kEventNetworkKeyChanged = OT_CHANGED_NETWORK_KEY, kEventPskcChanged = OT_CHANGED_PSKC, kEventSecurityPolicyChanged = OT_CHANGED_SECURITY_POLICY, kEventChannelManagerNewChannelChanged = OT_CHANGED_CHANNEL_MANAGER_NEW_CHANNEL, kEventSupportedChannelMaskChanged = OT_CHANGED_SUPPORTED_CHANNEL_MASK, kEventCommissionerStateChanged = OT_CHANGED_COMMISSIONER_STATE, kEventThreadNetifStateChanged = OT_CHANGED_THREAD_NETIF_STATE, kEventThreadBackboneRouterStateChanged = OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE, kEventThreadBackboneRouterLocalChanged = OT_CHANGED_THREAD_BACKBONE_ROUTER_LOCAL, kEventJoinerStateChanged = OT_CHANGED_JOINER_STATE, kEventActiveDatasetChanged = OT_CHANGED_ACTIVE_DATASET, kEventPendingDatasetChanged = OT_CHANGED_PENDING_DATASET } |
enum | LinkQuality : uint8_t { kLinkQuality0 = 0, kLinkQuality1 = 1, kLinkQuality2 = 2, kLinkQuality3 = 3 } |
enum | LogLevel : uint8_t { kLogLevelNone = OT_LOG_LEVEL_NONE, kLogLevelCrit = OT_LOG_LEVEL_CRIT, kLogLevelWarn = OT_LOG_LEVEL_WARN, kLogLevelNote = OT_LOG_LEVEL_NOTE, kLogLevelInfo = OT_LOG_LEVEL_INFO, kLogLevelDebg = OT_LOG_LEVEL_DEBG } |
enum | StringMatchMode : uint8_t { kStringExactMatch, kStringCaseInsensitiveMatch } |
typedef bool(* ByteMatcher) (uint8_t aFirst, uint8_t aSecond) |
This type specifies a function pointer which matches two given bytes.
Such a function is used as a parameter in Data::MatchesByteIn()
method. This can be used to relax the definition of a match when comparing data bytes, e.g., can be used for case-insensitive string comparison.
[in] | aFirst | A first byte. |
[in] | aSecond | A second byte. |
TRUE | if aFirst matches aSecond . |
FALSE | if aFirst does not match aSecond . |
This class defines Target TLV constants and types.
This class defines Extended MAC Address TLV constants and types.
typedef UintTlvInfo<ThreadTlv::kRloc16, uint16_t> ThreadRloc16Tlv |
This class defines RLOC16 TLV constants and types.
This class defines ML-EID TLV constants and types.
typedef UintTlvInfo<ThreadTlv::kLastTransactionTime, uint32_t> ThreadLastTransactionTimeTlv |
This class defines Time Since Last Transaction TLV constants and types.
typedef UintTlvInfo<ThreadTlv::kTimeout, uint32_t> ThreadTimeoutTlv |
This class defines Timeout TLV constants and types.
This class defines Network Name TLV constants and types.
typedef UintTlvInfo<ThreadTlv::kCommissionerSessionId, uint16_t> ThreadCommissionerSessionIdTlv |
This class defines Commissioner Session ID TLV constants and types.
enum DataLengthType : uint8_t |
This enumeration type is used as the template parameter in Data
and MutableData
to indicate the uint
type to use for the data length.
Enumerator | |
---|---|
kWithUint8Length | Use |
kWithUint16Length | Use |
enum LogLevel : uint8_t |
ot::DefineCoreType | ( | otCoapTxParameters | , |
Coap::TxParameters | |||
) |
ot::DefineCoreType | ( | otCoapResource | , |
Coap::Resource | |||
) |
ot::DefineCoreType | ( | otCoapOption | , |
Coap::Option | |||
) |
ot::DefineCoreType | ( | otCoapOptionIterator | , |
Coap::Option::Iterator | |||
) |
ot::DefineMapEnum | ( | otCoapType | , |
Coap::Type | |||
) |
Referenced by Option::GetLength().
ot::DefineMapEnum | ( | otCoapCode | , |
Coap::Code | |||
) |
|
inline |
This method casts an otMessage
pointer to a Coap::Message
reference.
[in] | aMessage | A pointer to an otMessage . |
Coap::Message
matching aMessage
. Referenced by AddressResolver::AddressResolver(), AddressResolver::HandleAddressError(), ActiveDatasetManager::HandleGet(), PendingDatasetManager::HandleGet(), PanIdQueryServer::HandleQuery(), EnergyScanServer::HandleRequest(), AnnounceBeginServer::HandleRequest(), Coap::HandleUdpReceive(), CoapBase::Receive(), and CoapBase::Send().
|
inline |
This method casts an otMessage
pointer to a Coap::Message
reference.
[in] | aMessage | A pointer to an otMessage . |
Coap::Message
matching aMessage
. Referenced by DatasetManager::HandleMgmtSetResponse(), and CoapBase::NewMessage().
|
inline |
This method casts an otMessage
pointer to a Coap::Message
pointer.
[in] | aMessage | A pointer to an otMessage . |
Coap::Message
matching aMessage
.
|
inline |
This method casts an otMessage
pointer to a Coap::Message
reference.
[in] | aMessage | A pointer to an otMessage . |
Coap::Message
matching aMessage
.
|
inline |
This function returns the length of a given array (number of elements in the array).
This template function is constexpr
. The template arguments are expected to be deduced by the compiler allowing callers to simply use GetArrayLength(aArray)
.
Type | The array element type. |
kArrayLength | The array length. |
Referenced by Mac::BeginTransmit(), Notifier::EmitEvents(), ErrorToString(), Settings::Init(), Mle::RoleToString(), and Address::ToString().
|
inline |
This function returns a pointer to end of a given array (pointing to the past-the-end element).
Note that the past-the-end element is a theoretical element that would follow the last element in the array. It does not point to an actual element in array, and thus should not be dereferenced.
Type | The array element type. |
kArrayLength | The array length. |
[in] | aArray | A reference to the array. |
Referenced by Address::FromString(), MultiFrameBuffer< kMaxFrameSize >::GetNextSavedFrame(), Pool< ot::Buffer, kNumBuffers >::IsPoolEntry(), CoapBase::ProcessReceivedRequest(), Message::ReadUriPathOptions(), MultiFrameBuffer< kMaxFrameSize >::SetLength(), MultiFrameBuffer< kMaxFrameSize >::SetSkipLength(), and Neighbor::StateToString().
|
inline |
This function returns a pointer to end of a given array (pointing to the past-the-end element).
Note that the past-the-end element is a theoretical element that would follow the last element in the array. It does not point to an actual element in array, and thus should not be dereferenced.
Type | The array element type. |
kArrayLength | The array length. |
[in] | aArray | A reference to the array. |
References AsConst(), AsNonConst(), IgnoreError(), kErrorNoBufs, and kErrorNone.
CoreType<Type>::Type& ot::AsCoreType | ( | Type * | aObject | ) |
This function converts a pointer to public OT type (C struct) to the corresponding core C++ type reference.
Type | The public OT type to convert. |
[in] | aObject | A pointer to the object to convert. |
aObject
. References AssertPointerIsNotNull.
Referenced by AddressResolver::AddressResolver(), Mac::ConvertBeaconToActiveScanResult(), ExtendedPanIdManager::ExtendedPanIdManager(), Dataset::Info::GenerateRandom(), Netif::UnicastAddress::GetAddress(), Netif::MulticastAddress::GetAddress(), SockAddr::GetAddress(), Dataset::Info::GetExtendedPanId(), Address::GetLinkLocalAllNodesMulticast(), Address::GetLinkLocalAllRoutersMulticast(), Dataset::Info::GetNetworkKey(), Dataset::Info::GetNetworkName(), MessageInfo::GetPeerAddr(), Udp::SocketHandle::GetPeerName(), OnMeshPrefixConfig::GetPrefix(), ExternalRouteConfig::GetPrefix(), Dataset::Info::GetPskc(), Address::GetRealmLocalAllMplForwarders(), Address::GetRealmLocalAllNodesMulticast(), Address::GetRealmLocalAllRoutersMulticast(), Dataset::Info::GetSecurityPolicy(), MessageInfo::GetSockAddr(), Udp::SocketHandle::GetSockName(), AddressResolver::HandleAddressError(), DiscoverScanner::HandleDiscoveryResponse(), ActiveDatasetManager::HandleGet(), PendingDatasetManager::HandleGet(), PanIdQueryServer::HandleQuery(), EnergyScanServer::HandleRequest(), AnnounceBeginServer::HandleRequest(), Coap::HandleUdpReceive(), Mle::HandleUdpReceive(), Mac::Mac(), Mle::Mle(), otBackboneRouterGetPrimary(), otCryptoAesCcm(), otCryptoHmacSha256(), otDatasetGetActive(), otDatasetGetActiveTlvs(), otDatasetGetPending(), otDatasetGetPendingTlvs(), otDatasetIsCommissioned(), otDatasetParseTlvs(), otDatasetSendMgmtActiveGet(), otDatasetSendMgmtActiveSet(), otDatasetSendMgmtPendingGet(), otDatasetSendMgmtPendingSet(), otDatasetSetActive(), otDatasetSetActiveTlvs(), otDatasetSetPending(), otDatasetSetPendingTlvs(), otDnsGetNextTxtEntry(), otDnsInitTxtEntryIterator(), otGetRadioVersionString(), otIcmp6GetEchoMode(), otIcmp6RegisterHandler(), otIcmp6SendEchoRequest(), otIcmp6SetEchoMode(), otInstanceFinalize(), otInstanceIsInitialized(), otInstanceReset(), otIp4ExtractFromIp6Address(), otIp4IsAddressEqual(), otIp6AddressFromString(), otIp6AddressToString(), otIp6AddUnicastAddress(), otIp6AddUnsecurePort(), otIp6ArePrefixesEqual(), otIp6GetMulticastAddresses(), otIp6GetPrefix(), otIp6GetUnicastAddresses(), otIp6GetUnsecurePorts(), otIp6IsAddressEqual(), otIp6IsAddressUnspecified(), otIp6IsEnabled(), otIp6IsMulticastPromiscuousEnabled(), otIp6IsReceiveFilterEnabled(), otIp6NewMessage(), otIp6NewMessageFromBuffer(), otIp6PrefixMatch(), otIp6PrefixToString(), otIp6RemoveAllUnsecurePorts(), otIp6RemoveUnicastAddress(), otIp6RemoveUnsecurePort(), otIp6SelectSourceAddress(), otIp6Send(), otIp6SetAddressCallback(), otIp6SetEnabled(), otIp6SetMulticastPromiscuousEnabled(), otIp6SetReceiveCallback(), otIp6SetReceiveFilterEnabled(), otIp6SockAddrToString(), otIp6SubscribeMulticastAddress(), otIp6UnsubscribeMulticastAddress(), otLinkActiveScan(), otLinkConvertLinkQualityToRss(), otLinkConvertRssToLinkQuality(), otLinkEnergyScan(), otLinkGetCcaFailureRate(), otLinkGetChannel(), otLinkGetCounters(), otLinkGetExtendedAddress(), otLinkGetFactoryAssignedIeeeEui64(), otLinkGetMaxFrameRetriesDirect(), otLinkGetPanId(), otLinkGetPollPeriod(), otLinkGetShortAddress(), otLinkGetSupportedChannelMask(), otLinkIsActiveScanInProgress(), otLinkIsEnabled(), otLinkIsEnergyScanInProgress(), otLinkIsInTransmitState(), otLinkIsPromiscuous(), otLinkResetCounters(), otLinkSendDataRequest(), otLinkSetChannel(), otLinkSetEnabled(), otLinkSetExtendedAddress(), otLinkSetMaxFrameRetriesDirect(), otLinkSetPanId(), otLinkSetPcapCallback(), otLinkSetPollPeriod(), otLinkSetPromiscuous(), otLinkSetSupportedChannelMask(), otMessageAppend(), otMessageFree(), otMessageGetLength(), otMessageGetOffset(), otMessageGetRss(), otMessageIsLinkSecurityEnabled(), otMessageQueueDequeue(), otMessageQueueEnqueue(), otMessageQueueEnqueueAtHead(), otMessageQueueGetHead(), otMessageQueueGetNext(), otMessageRead(), otMessageSetDirectTransmission(), otMessageSetLength(), otMessageSetOffset(), otMessageWrite(), otNetDataGet(), otNetDataGetNextOnMeshPrefix(), otNetDataGetNextRoute(), otNetDataGetNextService(), otNetDataGetStableVersion(), otNetDataGetVersion(), otNetDataSteeringDataCheckJoiner(), otNetDataSteeringDataCheckJoinerWithDiscerner(), otNetworkNameFromString(), otPlatAlarmMilliFired(), otTaskletsArePending(), otTaskletsProcess(), otUdpAddReceiver(), otUdpBind(), otUdpClose(), otUdpConnect(), otUdpGetSockets(), otUdpIsOpen(), otUdpIsPortInUse(), otUdpNewMessage(), otUdpOpen(), otUdpRemoveReceiver(), otUdpSend(), otUdpSendDatagram(), Mac::ProcessReceiveSecurity(), Mac::ProcessTransmitSecurity(), DatasetManager::SendGetRequest(), Dataset::Info::SetNetworkName(), PrefixInfoOption::SetPrefix(), Netif::SubscribeAllNodesMulticast(), Netif::SubscribeAllRoutersMulticast(), Netif::SubscribeExternalMulticast(), Cidr::ToString(), Prefix::ToString(), Netif::UnsubscribeAllNodesMulticast(), Netif::UnsubscribeAllRoutersMulticast(), and Dataset::Info::UpdateNetworkKey().
const CoreType<Type>::Type& ot::AsCoreType | ( | const Type * | aObject | ) |
This function converts a const pointer to public OT type (C struct) to the corresponding core C++ type reference.
Type | The public OT type to convert. |
[in] | aObject | A const pointer to the object to convert. |
aObject
. References AssertPointerIsNotNull.
CoreType<Type>::Type* ot::AsCoreTypePtr | ( | Type * | aObject | ) |
This function converts a pointer to public OT type (C struct) to the corresponding core C++ type pointer.
Type | The public OT type to convert. |
[in] | aObject | A pointer to the object to convert. |
aObject
. Referenced by DatasetManager::HandleMgmtSetResponse(), otDnsGetNextTxtEntry(), and Netif::UnsubscribeAllNodesMulticast().
const CoreType<Type>::Type* ot::AsCoreTypePtr | ( | const Type * | aObject | ) |
This function converts a const pointer to public OT type (C struct) to the corresponding core C++ type pointer.
Type | The public OT type to convert. |
[in] | aObject | A pointer to the object to convert. |
aObject
. const MappedEnum<EnumType>::Type ot::MapEnum | ( | EnumType | aValue | ) |
This function convert an enumeration type value to a related enumeration type value.
[in] | aValue | The enumeration value to convert |
Referenced by otLinkSetMaxFrameRetriesDirect().
const Type& ot::AsConst | ( | Type & | aObject | ) |
This template method casts a given non-const reference to a const reference.
Type | The reference type. |
[in] | aObject | A non-const reference to an object. |
aObject
reference. Referenced by CoapBase::DequeueMessage(), NetworkDataTlv::Find(), Array< Type, kCapacityIncrements >::Find(), LinkedList< ot::Ip6::Icmp::Handler >::Find(), PriorityQueue::FindFirstNonNullTail(), Array< Type, kCapacityIncrements >::FindMatching(), LinkedList< ot::Ip6::Icmp::Handler >::FindMatching(), MutableNetworkData::FindPrefix(), MutableNetworkData::FindService(), PrefixTlv::FindSubTlv(), Tlv::FindTlv(), GetArrayEnd(), MutableNetworkData::GetBytes(), LeaderBase::GetCommissioningData(), LeaderBase::GetCommissioningDataSubTlv(), Message::GetFirstChunk(), ChannelMaskBaseTlv::GetFirstEntry(), Frame::GetFooter(), PriorityQueue::GetHead(), PriorityQueue::GetHeadForPriority(), Message::GetHelpData(), ChannelMaskEntryBase::GetNext(), Message::GetNextChunk(), Frame::GetPayload(), RouteInfoOption::GetPrefixBytes(), ServerTlv::GetServerData(), LinkedList< ot::Ip6::Icmp::Handler >::GetTail(), PriorityQueue::GetTail(), Dataset::GetTlv(), MutableNetworkData::GetTlvsEnd(), and MutableNetworkData::GetTlvsStart().
const Type* ot::AsConst | ( | Type * | aPointer | ) |
This template method casts a given non-const pointer to a const pointer.
Type | The pointer type. |
[in] | aPointer | A non-const pointer to an object. |
aPointer
pointer. Type& ot::AsNonConst | ( | const Type & | aObject | ) |
This template method casts a given const reference to a non-const reference.
Type | The reference type. |
[in] | aObject | A const reference to an object. |
aObject
reference. Referenced by Netif::ExternalMulticastAddress::Iterator::AdvanceFrom(), RouterAdvertMessage::AppendOption(), MutableData< kWithUint16Length >::CopyBytesFrom(), NetworkDataTlv::Find(), Array< Type, kCapacityIncrements >::Find(), PriorityQueue::FindFirstNonNullTail(), Array< Type, kCapacityIncrements >::FindMatching(), LinkedList< ot::Ip6::Icmp::Handler >::FindMatching(), MutableNetworkData::FindPrefix(), MutableNetworkData::FindService(), PrefixTlv::FindSubTlv(), Tlv::FindTlv(), GetArrayEnd(), Appender::GetBufferStart(), MutableData< kWithUint16Length >::GetBytes(), MutableNetworkData::GetBytes(), Message::MutableChunk::GetBytes(), LeaderBase::GetCommissioningData(), LeaderBase::GetCommissioningDataSubTlv(), ChannelMaskBaseTlv::GetFirstEntry(), Frame::GetFooter(), PriorityQueue::GetHead(), PriorityQueue::GetHeadForPriority(), Message::GetHelpData(), Netif::MulticastAddress::GetNext(), Netif::ExternalMulticastAddress::GetNext(), ChannelMaskEntryBase::GetNext(), Frame::GetPayload(), RouteInfoOption::GetPrefixBytes(), ServerTlv::GetServerData(), LinkedList< ot::Ip6::Icmp::Handler >::GetTail(), PriorityQueue::GetTail(), Dataset::GetTlv(), MutableNetworkData::GetTlvsEnd(), MutableNetworkData::GetTlvsStart(), Heap::IsClean(), Netif::SubscribeAllNodesMulticast(), Netif::SubscribeAllRoutersMulticast(), Netif::SubscribeExternalMulticast(), Netif::UnsubscribeAllNodesMulticast(), and Netif::UnsubscribeAllRoutersMulticast().
Type* ot::AsNonConst | ( | const Type * | aPointer | ) |
This template method casts a given const pointer to a non-const pointer.
Type | The pointer type. |
[in] | aPointer | A const pointer to an object. |
aPointer
pointer. const char * ErrorToString | ( | Error | aError | ) |
This function converts an Error
into a string.
[in] | aError | An error. |
aError
. References GetArrayLength(), and kNumErrors.
Referenced by AddressResolver::AddressResolver(), Dataset::ApplyConfiguration(), MeshForwarder::CalcFrameVersion(), Mle::CheckReachability(), ot::MeshCoP::GetBorderAgentRloc(), MeshForwarder::GetFramePriority(), AddressResolver::HandleAddressError(), DatasetManager::HandleMgmtSetResponse(), Ip6::HandleOptions(), Ip6::HandlePayload(), DataPollSender::HandlePollSent(), Mac::HandleTransmitDone(), Settings::Log(), otThreadErrorToString(), CoapBase::ProcessReceivedRequest(), SubMac::Receive(), CoapBase::SendCopy(), DataPollSender::SendDataPoll(), Mac::SetPromiscuous(), and SubMac::Sleep().
ot::OT_DEFINE_ALIGNED_VAR | ( | gInstanceRaw | , |
sizeof(Instance) | , | ||
uint64_t | |||
) |
ot::DefineCoreType | ( | otMessageBuffer | , |
Buffer | |||
) |
ot::DefineCoreType | ( | otMessageSettings | , |
Message::Settings | |||
) |
ot::DefineCoreType | ( | otMessageQueue | , |
MessageQueue | |||
) |
Type ot::Min | ( | Type | aFirst, |
Type | aSecond | ||
) |
This template method returns the minimum of two given values.
Uses operator<
to compare the values.
Type | The value type. |
[in] | aFirst | The first value. |
[in] | aSecond | The second value. |
aFirst
and aSecond
. Referenced by LqiAverager::Add(), DataPollSender::CalculatePollPeriod(), Clamp(), ClampToUint16(), ClampToUint8(), MutableData< kWithUint16Length >::CopyBytesFrom(), DataPollSender::GetDefaultPollPeriod(), DataPollSender::GetKeepAlivePollPeriod(), SecurityPolicyTlv::GetSecurityPolicy(), SubMac::HandleTransmitDone(), Mle::HasAcceptableParentCandidate(), Mle::IsBetterParent(), Prefix::operator<(), and Name::ReadName().
Type ot::Max | ( | Type | aFirst, |
Type | aSecond | ||
) |
This template method returns the maximum of two given values.
Uses operator<
to compare the values.
Type | The value type. |
[in] | aFirst | The first value. |
[in] | aSecond | The second value. |
aFirst
and aSecond
. Referenced by Clamp().
Type ot::Clamp | ( | Type | aValue, |
Type | aMin, | ||
Type | aMax | ||
) |
This template method returns clamped version of a given value to a given closed range [min, max].
Uses operator<
to compare the values. The behavior is undefined if the value of aMin
is greater than aMax
.
Type | The value type. |
[in] | aValue | The value to clamp. |
[in] | aMin | The minimum value. |
[in] | aMax | The maximum value. |
aMin
, aMax
]. uint8_t ot::ClampToUint8 | ( | UintType | aValue | ) |
This template method returns a clamped version of given integer to a uint8_t
.
If aValue
is greater than max value of a uint8_t
, the max value is returned.
UintType | The value type (MUST be uint16_t , uint32_t , or uint64_t ). |
[in] | aValue | The value to clamp. |
aValue
to uint8_t
. References Min().
Referenced by Router::Info::SetFrom(), and Neighbor::StateToString().
uint16_t ot::ClampToUint16 | ( | UintType | aValue | ) |
This template method returns a clamped version of given integer to a uint16_t
.
If aValue
is greater than max value of a uint16_t
, the max value is returned.
UintType | The value type (MUST be uint32_t , or uint64_t ). |
[in] | aValue | The value to clamp. |
aValue
to uint16_t
. References Min().
ot::RegisterLogModule | ( | "Notifier" | ) |
ot::RegisterLogModule | ( | "Settings" | ) |
TlvType* ot::As | ( | Tlv * | aTlv | ) |
const TlvType* ot::As | ( | const Tlv * | aTlv | ) |
TlvType& ot::As | ( | Tlv & | aTlv | ) |
const TlvType& ot::As | ( | const Tlv & | aTlv | ) |
ot::DefineCoreType | ( | otCryptoSha256Hash | , |
Crypto::Sha256::Hash | |||
) |
ot::DefineCoreType | ( | otCryptoKey | , |
Crypto::Key | |||
) |
ot::RegisterLogModule | ( | "DataPollSender" | ) |
ot::DefineCoreType | ( | otExtAddress | , |
Mac::ExtAddress | |||
) |
ot::DefineCoreType | ( | otOperationalDatasetComponents | , |
MeshCoP::Dataset::Components | |||
) |
ot::DefineCoreType | ( | otOperationalDataset | , |
MeshCoP::Dataset::Info | |||
) |
ot::DefineCoreType | ( | otExtendedPanId | , |
MeshCoP::ExtendedPanId | |||
) |
RegisterLogModule | ( | "MeshCoP" | ) |
ot::DefineCoreType | ( | otJoinerPskd | , |
MeshCoP::JoinerPskd | |||
) |
ot::DefineCoreType | ( | otJoinerDiscerner | , |
MeshCoP::JoinerDiscerner | |||
) |
ot::DefineCoreType | ( | otSteeringData | , |
MeshCoP::SteeringData | |||
) |
ot::DefineCoreType | ( | otNetworkName | , |
MeshCoP::NetworkName | |||
) |
ot::DefineCoreType | ( | otDnsTxtEntry | , |
Dns::TxtEntry | |||
) |
ot::DefineCoreType | ( | otDnsTxtEntryIterator | , |
Dns::TxtEntry::Iterator | |||
) |
ot::DefineCoreType | ( | otIcmp6Header | , |
Ip6::Icmp::Header | |||
) |
ot::DefineCoreType | ( | otIcmp6Handler | , |
Ip6::Icmp::Handler | |||
) |
ot::DefineCoreType | ( | otIp4Address | , |
Ip4::Address | |||
) |
ot::DefineCoreType | ( | otIp6NetworkPrefix | , |
Ip6::NetworkPrefix | |||
) |
ot::DefineCoreType | ( | otIp6Prefix | , |
Ip6::Prefix | |||
) |
ot::DefineCoreType | ( | otIp6InterfaceIdentifier | , |
Ip6::InterfaceIdentifier | |||
) |
ot::DefineCoreType | ( | otIp6Address | , |
Ip6::Address | |||
) |
ot::DefineCoreType | ( | otNetifAddress | , |
Ip6::Netif::UnicastAddress | |||
) |
ot::DefineCoreType | ( | otNetifMulticastAddress | , |
Ip6::Netif::MulticastAddress | |||
) |
ot::DefineCoreType | ( | otMessageInfo | , |
Ip6::MessageInfo | |||
) |
ot::DefineCoreType | ( | otSockAddr | , |
Ip6::SockAddr | |||
) |
ot::DefineCoreType | ( | otTcpEndpoint | , |
Ip6::Tcp::Endpoint | |||
) |
ot::DefineCoreType | ( | otTcpListener | , |
Ip6::Tcp::Listener | |||
) |
ot::DefineCoreType | ( | otUdpSocket | , |
Ip6::Udp::SocketHandle | |||
) |
ot::DefineCoreType | ( | otUdpReceiver | , |
Ip6::Udp::Receiver | |||
) |
ot::RegisterLogModule | ( | "AddrResolver" | ) |
ot::RegisterLogModule | ( | "AnnounceSender" | ) |
ot::RegisterLogModule | ( | "EnergyScanSrv" | ) |
ot::RegisterLogModule | ( | "KeyManager" | ) |
ot::DefineCoreType | ( | otSecurityPolicy | , |
SecurityPolicy | |||
) |
ot::DefineCoreType | ( | otNetworkKey | , |
NetworkKey | |||
) |
ot::RegisterLogModule | ( | "MeshForwarder" | ) |
ot::DefineCoreType | ( | otThreadLinkInfo | , |
ThreadLinkInfo | |||
) |
ot::DefineCoreType | ( | otLeaderData | , |
Mle::LeaderData | |||
) |
ot::DefineMapEnum | ( | otDeviceRole | , |
Mle::DeviceRole | |||
) |
ot::DefineCoreType | ( | otBorderRouterConfig | , |
NetworkData::OnMeshPrefixConfig | |||
) |
ot::DefineCoreType | ( | otExternalRouteConfig | , |
NetworkData::ExternalRouteConfig | |||
) |
ot::DefineCoreType | ( | otServiceConfig | , |
NetworkData::ServiceConfig | |||
) |
ot::DefineCoreType | ( | otServerConfig | , |
NetworkData::ServiceConfig::ServerConfig | |||
) |
ot::DefineCoreType | ( | otNeighborInfo | , |
Neighbor::Info | |||
) |
ot::DefineCoreType | ( | otRouterInfo | , |
Router::Info | |||
) |
constexpr Error kErrorNone = OT_ERROR_NONE |
Referenced by CoapBase::AbortTransaction(), Mac::ActiveScan(), RssAverager::Add(), LinkedList< ot::Ip6::Icmp::Handler >::Add(), Mle::TlvList::Add(), Netif::AddExternalUnicastAddress(), Ip6::AddMplOption(), AddressResolver::AddressResolver(), Radio::AddSrcMatchExtEntry(), Radio::AddSrcMatchShortEntry(), Ip6::AddTunneledMplOption(), Option::Iterator::Advance(), Array< Type, kCapacityIncrements >::Allocate(), Allocatable< Type >::AllocateAndInit(), Mle::TxMessage::AppendActiveTimestampTlv(), Mle::TxMessage::AppendAddressRegistrationTlv(), Message::AppendBlockOption(), Appender::AppendBytes(), FrameBuilder::AppendBytes(), FrameBuilder::AppendBytesFromMessage(), TxtEntry::AppendEntries(), Name::AppendLabel(), Dataset::AppendMleDatasetTlv(), Name::AppendMultipleLabels(), Mle::TxMessage::AppendNetworkDataTlv(), Message::AppendOption(), Mle::TxMessage::AppendPendingTimestampTlv(), RouterAdvertMessage::AppendPrefixInfoOption(), RouterAdvertMessage::AppendRouteInfoOption(), Tlv::AppendTlv(), Name::AppendTo(), TxtEntry::AppendTo(), Message::AppendUriPathOptions(), Dataset::ApplyConfiguration(), Mle::Attach(), Mle::BecomeChild(), Mle::BecomeDetached(), Mac::BeginTransmit(), Udp::Bind(), MeshForwarder::CalcFrameVersion(), Mle::CheckReachability(), ResourceRecord::CheckRecord(), Radio::ClearSrcMatchExtEntry(), Radio::ClearSrcMatchShortEntry(), Udp::Close(), Name::CompareName(), Lowpan::Compress(), Lowpan::CompressDestinationIid(), Lowpan::CompressExtensionHeader(), Lowpan::CompressMulticast(), Lowpan::CompressSourceIid(), Lowpan::CompressUdp(), Lowpan::ComputeIid(), Udp::Connect(), LinkedList< ot::Ip6::Icmp::Handler >::Contains(), NetworkData::ContainsBorderRouterWithRloc(), NetworkData::ContainsExternalRoute(), NetworkData::ContainsOnMeshPrefix(), NetworkData::ContainsService(), Mac::ConvertBeaconToActiveScanResult(), CoapBase::CopyAndEnqueueMessage(), MutableData< kWithUint16Length >::CopyBytesFrom(), NetworkData::CopyNetworkData(), Lowpan::Decompress(), Lowpan::DecompressBaseHeader(), Lowpan::DecompressExtensionHeader(), Headers::DecompressFrom(), Lowpan::DecompressUdpHeader(), LeaderBase::DefaultRouteLookup(), Settings::DeleteOperationalDataset(), CoapBase::DequeueMessage(), Mle::DetachGracefully(), Mle::DetermineParentRequestType(), Mle::Disable(), DiscoverScanner::Discover(), Lowpan::DispatchToNextHeader(), Mle::Enable(), SubMac::Enable(), Radio::Enable(), Mac::EnergyScan(), SubMac::EnergyScan(), ResponsesQueue::EnqueueResponse(), LeaderBase::ExternalRouteLookup(), Agent::Filter(), Instance::Finalize(), LinkedList< ot::Ip6::Icmp::Handler >::Find(), Tlv::Find(), NetworkData::FindBorderRouters(), Lowpan::FindContextForId(), Lowpan::FindContextToCompressAddress(), NeighborTable::FindNeighbor(), Manager::FindPreferredDnsSrpAnycastInfo(), ResourceRecord::FindRecord(), Tlv::FindUintTlv(), Ip6::FragmentDatagram(), MeshForwarder::FrameToMessage(), Address::FromString(), TxFrame::GenerateEnhAck(), GetArrayEnd(), Manager::GetBackboneRouterPrimary(), ot::MeshCoP::GetBorderAgentRloc(), Frame::GetCommandId(), Leader::GetConfig(), LeaderBase::GetContext(), Ip6::GetDatagramPriority(), Frame::GetDstAddr(), Frame::GetDstPanId(), Frame::GetFooter(), Frame::GetFrameCounter(), MeshForwarder::GetFramePriority(), Frame::GetKeyId(), Frame::GetKeyIdMode(), Mle::GetLeaderAddress(), Mle::GetLocatorAddress(), ResponsesQueue::GetMatchedResponseCopy(), Mle::GetNextAnnouceChannel(), ChannelMask::GetNextChannel(), Manager::GetNextDnsSrpAnycastInfo(), Manager::GetNextDnsSrpUnicastInfo(), TxtEntry::Iterator::GetNextEntry(), ChannelMask::GetNumberOfChannels(), Mle::GetParentInfo(), DataPollSender::GetPollDestinationAddress(), LeaderBase::GetPreferredNat64Prefix(), Frame::GetSecurityControlField(), Frame::GetSecurityLevel(), Mle::GetServiceAloc(), Leader::GetServiceId(), LeaderBase::GetServiceId(), Frame::GetSrcAddr(), Frame::GetSrcPanId(), Dataset::GetTimestamp(), AddressResolver::HandleAddressError(), Mle::HandleAdvertisement(), Mle::HandleAnnounce(), Mle::HandleAttachTimer(), Mle::HandleChildIdResponse(), Mle::HandleChildUpdateRequest(), Mle::HandleChildUpdateResponse(), Ip6::HandleDatagram(), MeshForwarder::HandleDatagram(), Mle::HandleDataResponse(), DiscoverScanner::HandleDiscoveryResponse(), Icmp::HandleEchoRequest(), Ip6::HandleExtensionHeaders(), Ip6::HandleFragment(), MeshForwarder::HandleFragment(), Mle::HandleLeaderData(), MeshForwarder::HandleLowpanHC(), Icmp::HandleMessage(), Udp::HandleMessage(), Mle::HandleMessageTransmissionTimer(), DatasetManager::HandleMgmtSetResponse(), Mle::HandleNotifierEvents(), Ip6::HandleOptions(), Mle::HandleParentResponse(), Ip6::HandlePayload(), DataPollSender::HandlePollSent(), Mac::HandleReceivedFrame(), MeshForwarder::HandleReceivedFrame(), SubMac::HandleReceiveDone(), Mpl::HandleSeedSetTimer(), MeshForwarder::HandleSentFrame(), DiscoverScanner::HandleTimer(), AnnounceSenderBase::HandleTimer(), Mac::HandleTransmitDone(), SubMac::HandleTransmitDone(), Mle::HandleUdpReceive(), Mle::HasMoreChannelsToAnnouce(), CoapBase::InitMessage(), Option::Iterator::InitOrAdvance(), CoapBase::InitResponse(), FrameBuilder::InsertBytes(), Ip6::InsertMplOption(), NetworkData::Iterate(), Manager::IterateToNextServer(), Settings::Log(), MbedTls::MapError(), Ip6::NewMessage(), Mle::NewMleMessage(), Udp::Open(), otDatasetParseTlvs(), otIp6SelectSourceAddress(), otIp6SetEnabled(), otLinkGetCcaFailureRate(), otLinkSetEnabled(), otLinkSetExtendedAddress(), otLinkSetPanId(), otLinkSetPromiscuous(), otLinkSetSupportedChannelMask(), otLoggingGetLevel(), otPlatCryptoAesEncrypt(), otPlatCryptoAesFree(), otPlatCryptoAesInit(), otPlatCryptoAesSetKey(), otPlatCryptoHkdfDeinit(), otPlatCryptoHkdfExpand(), otPlatCryptoHkdfExtract(), otPlatCryptoHkdfInit(), otPlatCryptoHmacSha256Deinit(), otPlatCryptoHmacSha256Finish(), otPlatCryptoHmacSha256Init(), otPlatCryptoHmacSha256Start(), otPlatCryptoHmacSha256Update(), otPlatCryptoSha256Deinit(), otPlatCryptoSha256Finish(), otPlatCryptoSha256Init(), otPlatCryptoSha256Start(), otPlatCryptoSha256Update(), ot::Utils::CmdLineParser::ParseAsUint64(), ot::Utils::CmdLineParser::ParseCmd(), ot::Utils::CmdLineParser::ParseDigit(), MeshHeader::ParseFrom(), Headers::ParseFrom(), Header::ParseFrom(), FragmentHeader::ParseFrom(), Message::ParseHeader(), ot::Utils::CmdLineParser::ParseHexDigit(), ot::Utils::CmdLineParser::ParseHexString(), Name::ParseName(), ResourceRecord::ParseRecords(), MeshForwarder::PauseMessageTransmissions(), Mac::PerformActiveScan(), Mac::PerformEnergyScan(), Mle::PrepareAnnounceState(), MeshForwarder::PrepareNextDirectTransmission(), Mac::ProcessEnhAckSecurity(), Mle::ProcessMessageSecurity(), Mpl::ProcessOption(), RxFrame::ProcessReceiveAesCcm(), Ip6::ProcessReceiveCallback(), CoapBase::ProcessReceivedRequest(), CoapBase::ProcessReceivedResponse(), Mac::ProcessReceiveSecurity(), DataPollSender::ProcessTxDone(), Array< Type, kCapacityIncrements >::PushBack(), DatasetLocal::Read(), Option::Iterator::Read(), FrameData::ReadBytes(), ChildTableTlv::ReadEntry(), Option::Iterator::ReadExtendedOptionField(), Mle::RxMessage::ReadFrameCounterTlvs(), Dataset::ReadFromMessage(), Name::ReadName(), ResourceRecord::ReadName(), Settings::ReadOperationalDataset(), Option::Iterator::ReadOptionValue(), PtrRecord::ReadPtrName(), Tlv::ReadTlv(), TxtRecord::ReadTxtData(), Message::ReadUriPathOptions(), Mle::Reattach(), SubMac::Receive(), Radio::Receive(), CoapBase::Receive(), Mac::RecordFrameTransmitStatus(), Notifier::RegisterCallback(), LinkedList< ot::Ip6::Icmp::Handler >::Remove(), Netif::RemoveExternalUnicastAddress(), Ip6::RemoveMplOption(), Mac::RequestDataPollTransmission(), Header::ResponseCodeToError(), DatasetManager::Restore(), DatasetLocal::Restore(), Mle::Restore(), MeshForwarder::ResumeMessageTransmissions(), Mle::RoleToString(), LeaderBase::RouteLookup(), DatasetLocal::Save(), DatasetManager::Save(), ActiveDatasetManager::Save(), PendingDatasetManager::Save(), Settings::SaveEntry(), Mle::SearchForBetterParent(), SubMac::Send(), CoapBase::Send(), Mle::TxMessage::SendAfterDelay(), Mle::SendAnnounce(), Mle::SendChildIdRequest(), Mle::SendChildUpdateRequest(), Mle::SendChildUpdateResponse(), PanIdQueryServer::SendConflict(), CoapBase::SendCopy(), Ip6::SendDatagram(), Udp::SendDatagram(), DataPollSender::SendDataPoll(), Mle::SendDataRequest(), Mle::SendDelayedResponse(), Icmp::SendEchoRequest(), CoapBase::SendEmptyMessage(), Icmp::SendError(), DatasetManager::SendGetRequest(), DatasetManager::SendGetResponse(), CoapBase::SendHeaderResponse(), CoapBase::SendMessage(), Mle::SendParentRequest(), Ip6::SendRaw(), EnergyScanServer::SendReport(), NetworkData::SendServerDataNotification(), DatasetManager::SendSet(), DatasetManager::SendSetRequest(), Udp::SendTo(), Mle::TxMessage::SendTo(), String::Set(), NetworkName::Set(), Frame::SetCommandId(), LeaderBase::SetCommissioningData(), Mle::SetDeviceMode(), NetworkNameManager::SetDomainName(), DataPollSender::SetExternalPollPeriod(), JoinerPskd::SetFrom(), ThreadLinkInfo::SetFrom(), Dataset::SetFrom(), DiscoverScanner::SetJoinerAdvertisement(), Mle::SetMeshLocalPrefix(), LeaderBase::SetNetworkData(), Mac::SetPanChannel(), Message::SetPayloadMarker(), Frame::SetSrcPanId(), Mac::SetTemporaryChannel(), Dataset::SetTlv(), Ip6::ShouldForwardToThread(), SubMac::SignalFrameCounterUsedOnTxDone(), NetworkNameManager::SignalNetworkNameChange(), SubMac::Sleep(), Radio::Sleep(), Coap::Start(), Mle::Start(), Neighbor::StateToString(), LeaderBase::SteeringDataCheck(), Coap::Stop(), Mle::Store(), Netif::SubscribeExternalMulticast(), ChannelMask::ToString(), Netif::UnsubscribeExternalMulticast(), Notifier::Update(), Data::UpdateBuffer(), Leader::UpdateDomainPrefixConfig(), MeshForwarder::UpdateIp6Route(), MeshForwarder::UpdateNeighborLinkFailures(), MeshForwarder::UpdateNeighborOnSentFrame(), Mpl::UpdateSeedSet(), MeshForwarder::UpdateSendMessage(), Filter::UpdateUnsecurePorts(), Frame::ValidatePsdu(), and Checksum::VerifyMessageChecksum().
constexpr Error kErrorFailed = OT_ERROR_FAILED |
Referenced by Lowpan::CompressExtensionHeader(), CoapBase::DequeueMessage(), MbedTls::MapError(), otPlatCryptoAesEncrypt(), otPlatCryptoAesFree(), otPlatCryptoAesInit(), otPlatCryptoAesSetKey(), otPlatCryptoHkdfDeinit(), otPlatCryptoHkdfExpand(), otPlatCryptoHkdfExtract(), otPlatCryptoHkdfInit(), otPlatCryptoHmacSha256Deinit(), otPlatCryptoHmacSha256Finish(), otPlatCryptoHmacSha256Init(), otPlatCryptoHmacSha256Start(), otPlatCryptoHmacSha256Update(), otPlatCryptoSha256Deinit(), otPlatCryptoSha256Finish(), otPlatCryptoSha256Start(), otPlatCryptoSha256Update(), Header::ResponseCodeToError(), and MeshForwarder::UpdateSendMessage().
constexpr Error kErrorDrop = OT_ERROR_DROP |
Referenced by AddressResolver::AddressResolver(), Mle::CheckReachability(), AddressResolver::HandleAddressError(), Mle::HandleChildUpdateResponse(), Ip6::HandleDatagram(), Mle::HandleDataResponse(), DiscoverScanner::HandleDiscoveryResponse(), Ip6::HandleExtensionHeaders(), Ip6::HandleFragment(), MeshForwarder::HandleFragment(), Mle::HandleLeaderData(), MeshForwarder::HandleLowpanHC(), Ip6::HandleOptions(), Ip6::HandlePayload(), Mac::HandleReceivedFrame(), MeshForwarder::HandleReceivedFrame(), Mpl::HandleSeedSetTimer(), Mle::HandleUdpReceive(), MeshForwarder::PrepareNextDirectTransmission(), Ip6::ProcessReceiveCallback(), CoapBase::ProcessReceivedRequest(), MeshForwarder::ResumeMessageTransmissions(), MeshForwarder::UpdateIp6Route(), Mpl::UpdateSeedSet(), and Checksum::VerifyMessageChecksum().
constexpr Error kErrorNoBufs = OT_ERROR_NO_BUFS |
Referenced by Netif::AddExternalUnicastAddress(), AddressResolver::AddressResolver(), Array< Type, kCapacityIncrements >::Allocate(), FrameBuilder::AppendBytes(), FrameBuilder::AppendBytesFromMessage(), Message::AppendOption(), RouterAdvertMessage::AppendPrefixInfoOption(), RouterAdvertMessage::AppendRouteInfoOption(), Mle::CheckReachability(), CoapBase::CopyAndEnqueueMessage(), MutableData< kWithUint16Length >::CopyBytesFrom(), NetworkData::CopyNetworkData(), CoapBase::DequeueMessage(), DiscoverScanner::Discover(), NetworkData::FindBorderRouters(), MeshForwarder::FrameToMessage(), GetArrayEnd(), MeshForwarder::GetFramePriority(), ResponsesQueue::GetMatchedResponseCopy(), AddressResolver::HandleAddressError(), Ip6::HandleOptions(), Ip6::HandlePayload(), Mpl::HandleSeedSetTimer(), Mle::HasMoreChannelsToAnnouce(), FrameBuilder::InsertBytes(), MbedTls::MapError(), Mle::NewMleMessage(), Ip6::ProcessReceiveCallback(), CoapBase::ProcessReceivedRequest(), Name::LabelIterator::ReadLabel(), Name::ReadName(), Option::Iterator::ReadOptionValue(), TxtRecord::ReadTxtData(), Notifier::RegisterCallback(), MeshForwarder::RemoveMessage(), Mle::RoleToString(), Mle::SendAnnounce(), Mle::SendChildIdRequest(), Mle::SendChildUpdateRequest(), Mle::SendChildUpdateResponse(), PanIdQueryServer::SendConflict(), CoapBase::SendCopy(), Mle::SendDataRequest(), CoapBase::SendEmptyMessage(), Icmp::SendError(), DatasetManager::SendGetRequest(), DatasetManager::SendGetResponse(), CoapBase::SendHeaderResponse(), CoapBase::SendMessage(), Mle::SendParentRequest(), EnergyScanServer::SendReport(), NetworkData::SendServerDataNotification(), DatasetManager::SendSet(), DatasetManager::SendSetRequest(), String::Set(), LeaderBase::SetCommissioningData(), Message::SetPayloadMarker(), Dataset::SetTlv(), Neighbor::StateToString(), Netif::SubscribeExternalMulticast(), and Data::UpdateBuffer().
constexpr Error kErrorNoRoute = OT_ERROR_NO_ROUTE |
constexpr Error kErrorBusy = OT_ERROR_BUSY |
constexpr Error kErrorParse = OT_ERROR_PARSE |
Referenced by Option::Iterator::Advance(), Dataset::ApplyConfiguration(), ResourceRecord::CheckRecord(), Lowpan::CompressExtensionHeader(), Lowpan::ComputeIid(), Mac::ConvertBeaconToActiveScanResult(), Lowpan::Decompress(), Lowpan::DecompressBaseHeader(), Lowpan::DecompressExtensionHeader(), Lowpan::DecompressUdpHeader(), Lowpan::DispatchToNextHeader(), Tlv::FindTlv(), Address::FromString(), TxFrame::GenerateEnhAck(), Frame::GetCommandId(), Ip6::GetDatagramPriority(), Frame::GetDstAddr(), Frame::GetDstPanId(), Frame::GetFrameCounter(), Frame::GetKeyId(), Frame::GetKeyIdMode(), TxtEntry::Iterator::GetNextEntry(), Name::LabelIterator::GetNextLabel(), Frame::GetSecurityControlField(), Frame::GetSecurityLevel(), Frame::GetSrcAddr(), Frame::GetSrcPanId(), Mle::HandleAdvertisement(), Mle::HandleAnnounce(), Mle::HandleChildIdResponse(), Mle::HandleChildUpdateRequest(), Mle::HandleChildUpdateResponse(), DiscoverScanner::HandleDiscoveryResponse(), MeshForwarder::HandleFragment(), Mle::HandleLeaderData(), DatasetManager::HandleMgmtSetResponse(), Ip6::HandleOptions(), Mle::HandleParentResponse(), Mle::HandleUdpReceive(), Option::Iterator::Init(), Ip6::InsertMplOption(), MeshHeader::ParseFrom(), Headers::ParseFrom(), Header::ParseFrom(), FragmentHeader::ParseFrom(), Message::ParseHeader(), Mle::ProcessMessageSecurity(), Mpl::ProcessOption(), CoapBase::ProcessReceivedRequest(), FrameData::ReadBytes(), Mle::RxMessage::ReadChallengeOrResponse(), Option::Iterator::ReadExtendedOptionField(), Mle::RxMessage::ReadFrameCounterTlvs(), Dataset::ReadFromMessage(), Name::LabelIterator::ReadLabel(), Mle::RxMessage::ReadLeaderDataTlv(), ResourceRecord::ReadName(), PtrRecord::ReadPtrName(), Tlv::ReadTlv(), Mle::RxMessage::ReadTlvRequestTlv(), TxtRecord::ReadTxtData(), Message::ReadUriPathOptions(), Ip6::RemoveMplOption(), Header::ResponseCodeToError(), Frame::SetCommandId(), Data::SetFrom(), LeaderBase::SetNetworkData(), Frame::SetSrcPanId(), and Frame::ValidatePsdu().
constexpr Error kErrorInvalidArgs = OT_ERROR_INVALID_ARGS |
Referenced by RssAverager::Add(), Netif::AddExternalUnicastAddress(), Message::AppendBlockOption(), Name::AppendLabel(), Name::LabelIterator::AppendLabel(), Name::AppendMultipleLabels(), Message::AppendOption(), TxtEntry::AppendTo(), Udp::Bind(), Name::CompareName(), Mac::ConvertBeaconToActiveScanResult(), CoapBase::DequeueMessage(), ot::MeshCoP::GetBorderAgentRloc(), Ip6::GetDatagramPriority(), MbedTls::MapError(), otDatasetParseTlvs(), otLinkGetCcaFailureRate(), otLoggingGetLevel(), otPlatCryptoAesEncrypt(), otPlatCryptoAesFree(), otPlatCryptoAesInit(), otPlatCryptoAesSetKey(), otPlatCryptoHkdfDeinit(), otPlatCryptoHkdfExpand(), otPlatCryptoHkdfExtract(), otPlatCryptoHkdfInit(), otPlatCryptoHmacSha256Deinit(), otPlatCryptoHmacSha256Finish(), otPlatCryptoHmacSha256Init(), otPlatCryptoHmacSha256Start(), otPlatCryptoHmacSha256Update(), otPlatCryptoSha256Deinit(), otPlatCryptoSha256Finish(), otPlatCryptoSha256Init(), otPlatCryptoSha256Start(), otPlatCryptoSha256Update(), ot::Utils::CmdLineParser::ParseAsBool(), ot::Utils::CmdLineParser::ParseAsInt32(), ot::Utils::CmdLineParser::ParseAsUint64(), ot::Utils::CmdLineParser::ParseCmd(), ot::Utils::CmdLineParser::ParseDigit(), ot::Utils::CmdLineParser::ParseHexString(), ot::Utils::CmdLineParser::ParseInt(), ot::Utils::CmdLineParser::ParseUint(), ChildTableTlv::ReadEntry(), Mle::SendAnnounce(), CoapBase::SendEmptyAck(), CoapBase::SendEmptyMessage(), CoapBase::SendHeaderResponse(), DatasetManager::SendSetRequest(), Udp::Socket::SendTo(), Udp::SendTo(), NetworkName::Set(), Mle::SetDeviceMode(), DataPollSender::SetExternalPollPeriod(), JoinerPskd::SetFrom(), DiscoverScanner::SetJoinerAdvertisement(), RadioSpinel< InterfaceType, ProcessContextType >::SetMacKey(), Mac::SetPanChannel(), Mac::SetTemporaryChannel(), Interpreter::SetUserCommands(), Neighbor::StateToString(), Netif::SubscribeExternalMulticast(), and Filter::UpdateUnsecurePorts().
constexpr Error kErrorSecurity = OT_ERROR_SECURITY |
constexpr Error kErrorAddressQuery = OT_ERROR_ADDRESS_QUERY |
Referenced by AddressResolver::AddressResolver(), and MeshForwarder::PrepareNextDirectTransmission().
constexpr Error kErrorNoAddress = OT_ERROR_NO_ADDRESS |
constexpr Error kErrorAbort = OT_ERROR_ABORT |
Referenced by CoapBase::AbortTransaction(), Mac::BeginTransmit(), CoapBase::ClearRequests(), DataPollSender::GetPollDestinationAddress(), DataPollSender::HandlePollSent(), MeshForwarder::HandleSentFrame(), SubMac::HandleTransmitDone(), CoapBase::ProcessReceivedResponse(), Mac::RecordFrameTransmitStatus(), Mac::SetPromiscuous(), Radio::Transmit(), and Mac::UpdateScanChannel().
constexpr Error kErrorNotImplemented = OT_ERROR_NOT_IMPLEMENTED |
Referenced by SubMac::EnergyScan(), Radio::EnergyScan(), Links::EnergyScan(), Radio::GetCcaEnergyDetectThreshold(), Radio::GetTransmitPower(), otPlatRadioGetFemLnaGain(), otPlatRadioGetRegion(), otPlatRadioReceiveAt(), otPlatRadioSetChannelMaxTransmitPower(), otPlatRadioSetFemLnaGain(), otPlatRadioSetRegion(), Radio::Receive(), Header::ResponseCodeToError(), Udp::Socket::SendTo(), Radio::SetCcaEnergyDetectThreshold(), and Radio::SetTransmitPower().
constexpr Error kErrorInvalidState = OT_ERROR_INVALID_STATE |
Referenced by Mac::ActiveScan(), Mle::TxMessage::AppendNetworkDataTlv(), Mle::BecomeChild(), Mle::BecomeDetached(), SubMac::BeginTransmit(), Settings::DeleteOperationalDataset(), Radio::Disable(), DiscoverScanner::Discover(), Mac::EnergyScan(), SubMac::EnergyScan(), Instance::Finalize(), MeshForwarder::GetFramePriority(), Mle::GetParentInfo(), Mle::HandleAnnounce(), Mac::HandleReceivedFrame(), MeshForwarder::HandleReceivedFrame(), Mle::HandleUdpReceive(), otIp6SetEnabled(), otLinkSetChannel(), otLinkSetEnabled(), otLinkSetExtendedAddress(), otLinkSetPanId(), otLinkSetPromiscuous(), otLinkSetSupportedChannelMask(), Mac::RequestDataPollTransmission(), Mle::SearchForBetterParent(), SubMac::Send(), Coap::Send(), DataPollSender::SendDataPoll(), DatasetManager::SendSet(), Mle::SetMeshLocalPrefix(), Mle::Start(), and LeaderBase::SteeringDataCheck().
constexpr Error kErrorNoAck = OT_ERROR_NO_ACK |
constexpr Error kErrorChannelAccessFailure = OT_ERROR_CHANNEL_ACCESS_FAILURE |
constexpr Error kErrorDetached = OT_ERROR_DETACHED |
Referenced by Mle::GetLeaderAddress(), Mle::GetLocatorAddress(), and Mle::GetServiceAloc().
constexpr Error kErrorFcs = OT_ERROR_FCS |
Referenced by Mac::HandleReceivedFrame().
constexpr Error kErrorNoFrameReceived = OT_ERROR_NO_FRAME_RECEIVED |
constexpr Error kErrorUnknownNeighbor = OT_ERROR_UNKNOWN_NEIGHBOR |
Referenced by Mac::HandleReceivedFrame().
constexpr Error kErrorInvalidSourceAddress = OT_ERROR_INVALID_SOURCE_ADDRESS |
Referenced by Ip6::AddTunneledMplOption(), Mac::HandleReceivedFrame(), Ip6::SendDatagram(), and Ip6::SendRaw().
constexpr Error kErrorAddressFiltered = OT_ERROR_ADDRESS_FILTERED |
Referenced by Mac::HandleReceivedFrame(), and Mac::SetPromiscuous().
constexpr Error kErrorDestinationAddressFiltered = OT_ERROR_DESTINATION_ADDRESS_FILTERED |
Referenced by Mac::HandleReceivedFrame(), and Mac::SetPromiscuous().
constexpr Error kErrorNotFound = OT_ERROR_NOT_FOUND |
Referenced by CoapBase::AbortTransaction(), AddressResolver::AddressResolver(), Name::AppendTo(), Name::CompareLabel(), Name::CompareName(), Headers::DecompressFrom(), Mle::DetermineParentRequestType(), LinkedList< ot::Ip6::Icmp::Handler >::Find(), Tlv::Find(), NeighborTable::FindNeighbor(), Manager::FindPreferredDnsSrpAnycastInfo(), ResourceRecord::FindRecord(), ot::MeshCoP::GetBorderAgentRloc(), DatasetManager::GetChannelMask(), Leader::GetConfig(), LeaderBase::GetContext(), Frame::GetFooter(), ResponsesQueue::GetMatchedResponseCopy(), ChannelMask::GetNextChannel(), Manager::GetNextDnsSrpAnycastInfo(), Manager::GetNextDnsSrpUnicastInfo(), TxtEntry::Iterator::GetNextEntry(), Name::LabelIterator::GetNextLabel(), LeaderBase::GetPreferredNat64Prefix(), Leader::GetServiceId(), LeaderBase::GetServiceId(), Dataset::GetTimestamp(), Mle::HandleAdvertisement(), Mle::HandleChildIdResponse(), Mle::HandleChildUpdateRequest(), Mle::HandleChildUpdateResponse(), Mle::HandleLeaderData(), Mle::HandleParentResponse(), NetworkData::Iterate(), Manager::IterateToNextServer(), Settings::Log(), otIp6SelectSourceAddress(), Name::ParseName(), CoapBase::ProcessReceivedRequest(), Mle::RxMessage::ReadFrameCounterTlvs(), Name::ReadName(), Settings::ReadOperationalDataset(), Option::Iterator::ReadOptionValue(), ResourceRecord::ReadRecord(), Netif::RemoveExternalUnicastAddress(), Header::ResponseCodeToError(), MeshForwarder::ResumeMessageTransmissions(), Neighbor::StateToString(), LeaderBase::SteeringDataCheck(), Netif::UnsubscribeExternalMulticast(), and Filter::UpdateUnsecurePorts().
constexpr Error kErrorAlready = OT_ERROR_ALREADY |
Referenced by LinkedList< ot::Ip6::Icmp::Handler >::Add(), Netif::AddExternalUnicastAddress(), ot::MeshCoP::GetBorderAgentRloc(), Notifier::RegisterCallback(), Mle::SendChildIdRequest(), DatasetManager::SendSet(), NetworkName::Set(), NetworkNameManager::SetDomainName(), NetworkNameManager::SignalNetworkNameChange(), Neighbor::StateToString(), Netif::SubscribeExternalMulticast(), and Notifier::Update().
constexpr Error kErrorIp6AddressCreationFailure = OT_ERROR_IP6_ADDRESS_CREATION_FAILURE |
constexpr Error kErrorNotCapable = OT_ERROR_NOT_CAPABLE |
Referenced by MbedTls::MapError(), and Header::ResponseCodeToError().
constexpr Error kErrorResponseTimeout = OT_ERROR_RESPONSE_TIMEOUT |
Referenced by CoapBase::HandleRetransmissionTimer().
constexpr Error kErrorDuplicated = OT_ERROR_DUPLICATED |
constexpr Error kErrorReassemblyTimeout = OT_ERROR_REASSEMBLY_TIMEOUT |
Referenced by MeshForwarder::UpdateReassemblyList().
constexpr Error kErrorNotTmf = OT_ERROR_NOT_TMF |
Referenced by Agent::Filter().
constexpr Error kErrorNotLowpanDataFrame = OT_ERROR_NOT_LOWPAN_DATA_FRAME |
Referenced by MeshForwarder::HandleReceivedFrame().
constexpr Error kErrorLinkMarginLow = OT_ERROR_LINK_MARGIN_LOW |
constexpr Error kErrorInvalidCommand = OT_ERROR_INVALID_COMMAND |
constexpr Error kErrorPending = OT_ERROR_PENDING |
Referenced by ot::Utils::CmdLineParser::ParseHexString().
constexpr Error kErrorRejected = OT_ERROR_REJECTED |
constexpr Error kErrorGeneric = OT_ERROR_GENERIC |
constexpr uint8_t kNumErrors = OT_NUM_ERRORS |
Referenced by ErrorToString().
uint64_t gInstanceRaw[] |
Referenced by Instance::Get(), InstanceLocator::GetInstance(), and Instance::InitSingle().
constexpr uint8_t kMaxLogModuleNameLength = 14 |
Maximum module name length.
|
static |
The microseconds per 10 symbols.
Referenced by Mle::RegisterParentResponseStatsCallback(), Mle::ScheduleMessageTransmissionTimer(), Interpreter::SetUserCommands(), and SubMac::StateToString().
|
static |
constexpr uint16_t kThreadVersion = OPENTHREAD_CONFIG_THREAD_VERSION |
Thread Version of this device.
Referenced by Mle::TxMessage::AppendVersionTlv(), DiscoverScanner::Discover(), Mle::Restore(), and Mle::Store().
constexpr uint16_t kThreadVersion1p1 = OT_THREAD_VERSION_1_1 |
Thread Version 1.1.
Referenced by SettingsBase::NetworkInfo::Init(), SettingsBase::ParentInfo::Init(), and Neighbor::IsThreadVersion1p1().
constexpr uint16_t kThreadVersion1p2 = OT_THREAD_VERSION_1_2 |
Thread Version 1.2.
Referenced by Neighbor::IsThreadVersion1p2OrHigher().
constexpr uint16_t kThreadVersion1p3 = OT_THREAD_VERSION_1_3 |
Thread Version 1.3.