Home
last modified time | relevance | path

Searched refs:Get (Results 1 – 25 of 237) sorted by relevance

12345678910

/openthread-3.5.0/src/core/common/
Dinstance.hpp208 static Instance &Get(void);
385 template <typename Type> inline Type &Get(void);
673 template <> inline Instance &Instance::Get(void) { return *this; } in Get() function in ot::Instance
675 template <> inline Radio &Instance::Get(void) { return mRadio; } in Get() function in ot::Instance
677 template <> inline Radio::Callbacks &Instance::Get(void) { return mRadio.mCallbacks; } in Get() function in ot::Instance
680 template <> inline RadioStatistics &Instance::Get(void) { return mRadio.mRadioStatistics; } in Get() function in ot::Instance
684 template <> inline Uptime &Instance::Get(void) { return mUptime; } in Get() function in ot::Instance
688 template <> inline Notifier &Instance::Get(void) { return mNotifier; } in Get() function in ot::Instance
690 template <> inline TimeTicker &Instance::Get(void) { return mTimeTicker; } in Get() function in ot::Instance
692 template <> inline Settings &Instance::Get(void) { return mSettings; } in Get() function in ot::Instance
[all …]
Dinstance.cpp271 Instance *instance = &Get(); in InitSingle()
283 Instance &Instance::Get(void) in Get() function in ot::Instance
330 Get<Settings>().Init(); in AfterInit()
331 Get<Mle::MleRouter>().Restore(); in AfterInit()
334 Get<Trel::Link>().AfterInit(); in AfterInit()
340 Get<Extension::ExtensionBase>().SignalInstanceInit(); in AfterInit()
356 Get<KeyManager>().DestroyTemporaryKeys(); in Finalize()
359 Get<Settings>().Deinit(); in Finalize()
362 IgnoreError(Get<Mac::SubMac>().Disable()); in Finalize()
382 Get<Settings>().Wipe(); in FactoryReset()
[all …]
Dnotifier.cpp129 Get<Mle::Mle>().HandleNotifierEvents(events); in EmitEvents()
130 Get<EnergyScanServer>().HandleNotifierEvents(events); in EmitEvents()
132 Get<MeshCoP::JoinerRouter>().HandleNotifierEvents(events); in EmitEvents()
134 Get<BackboneRouter::Manager>().HandleNotifierEvents(events); in EmitEvents()
136 Get<ChildSupervisor>().HandleNotifierEvents(events); in EmitEvents()
138 Get<MeshCoP::DatasetUpdater>().HandleNotifierEvents(events); in EmitEvents()
142 Get<NetworkData::Notifier>().HandleNotifierEvents(events); in EmitEvents()
145 Get<AnnounceSender>().HandleNotifierEvents(events); in EmitEvents()
148 Get<MeshCoP::BorderAgent>().HandleNotifierEvents(events); in EmitEvents()
151 Get<MlrManager>().HandleNotifierEvents(events); in EmitEvents()
[all …]
/openthread-3.5.0/src/core/api/
Dthread_api.cpp50 return AsCoreType(aInstance).Get<Mle::MleRouter>().GetTimeout(); in otThreadGetChildTimeout()
55 AsCoreType(aInstance).Get<Mle::MleRouter>().SetTimeout(aTimeout); in otThreadSetChildTimeout()
60 return &AsCoreType(aInstance).Get<MeshCoP::ExtendedPanIdManager>().GetExtPanId(); in otThreadGetExtendedPanId()
69 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otThreadSetExtendedPanId()
71 instance.Get<MeshCoP::ExtendedPanIdManager>().SetExtPanId(extPanId); in otThreadSetExtendedPanId()
73 instance.Get<MeshCoP::ActiveDatasetManager>().Clear(); in otThreadSetExtendedPanId()
74 instance.Get<MeshCoP::PendingDatasetManager>().Clear(); in otThreadSetExtendedPanId()
82 return AsCoreType(aInstance).Get<Mle::MleRouter>().GetLeaderAddress(AsCoreType(aLeaderRloc)); in otThreadGetLeaderRloc()
89 AsCoreType(aInstance).Get<Mle::MleRouter>().GetDeviceMode().Get(config); in otThreadGetLinkMode()
96 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetDeviceMode(Mle::DeviceMode(aConfig)); in otThreadSetLinkMode()
[all …]
Dlink_api.cpp51 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkGetChannel()
53 channel = instance.Get<Mac::LinkRaw>().GetChannel(); in otLinkGetChannel()
58 channel = instance.Get<Mac::Mac>().GetPanChannel(); in otLinkGetChannel()
70 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkSetChannel()
72 error = instance.Get<Mac::LinkRaw>().SetChannel(aChannel); in otLinkSetChannel()
77 VerifyOrExit(instance.Get<Mle::MleRouter>().IsDisabled(), error = kErrorInvalidState); in otLinkSetChannel()
79 SuccessOrExit(error = instance.Get<Mac::Mac>().SetPanChannel(aChannel)); in otLinkSetChannel()
80 instance.Get<MeshCoP::ActiveDatasetManager>().Clear(); in otLinkSetChannel()
81 instance.Get<MeshCoP::PendingDatasetManager>().Clear(); in otLinkSetChannel()
89 return AsCoreType(aInstance).Get<Mac::Mac>().GetSupportedChannelMask().GetMask(); in otLinkGetSupportedChannelMask()
[all …]
Dthread_ftd_api.cpp47 return AsCoreType(aInstance).Get<ChildTable>().GetMaxChildrenAllowed(); in otThreadGetMaxAllowedChildren()
52 return AsCoreType(aInstance).Get<ChildTable>().SetMaxChildrenAllowed(aMaxChildren); in otThreadSetMaxAllowedChildren()
57 return AsCoreType(aInstance).Get<Mle::MleRouter>().GetMaxChildIpAddresses(); in otThreadGetMaxChildIpAddresses()
63 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetMaxChildIpAddresses(aMaxIpAddresses); in otThreadSetMaxChildIpAddresses()
69 return AsCoreType(aInstance).Get<Mle::MleRouter>().IsRouterEligible(); in otThreadIsRouterEligible()
74 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetRouterEligible(aEligible); in otThreadSetRouterEligible()
79 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetPreferredRouterId(aRouterId); in otThreadSetPreferredRouterId()
85 return &AsCoreType(aInstance).Get<Mle::MleRouter>().GetDeviceProperties(); in otThreadGetDeviceProperties()
90 AsCoreType(aInstance).Get<Mle::MleRouter>().SetDeviceProperties(AsCoreType(aDeviceProperties)); in otThreadSetDeviceProperties()
96 return AsCoreType(aInstance).Get<Mle::MleRouter>().GetLeaderWeight(); in otThreadGetLocalLeaderWeight()
[all …]
Dsrp_client_api.cpp47 return AsCoreType(aInstance).Get<Srp::Client>().Start(AsCoreType(aServerSockAddr)); in otSrpClientStart()
50 void otSrpClientStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<Srp::Client>().Stop(… in otSrpClientStop()
52 bool otSrpClientIsRunning(otInstance *aInstance) { return AsCoreType(aInstance).Get<Srp::Client>().… in otSrpClientIsRunning()
56 return &AsCoreType(aInstance).Get<Srp::Client>().GetServerAddress(); in otSrpClientGetServerAddress()
61 AsCoreType(aInstance).Get<Srp::Client>().SetCallback(aCallback, aContext); in otSrpClientSetCallback()
67 AsCoreType(aInstance).Get<Srp::Client>().EnableAutoStartMode(aCallback, aContext); in otSrpClientEnableAutoStartMode()
72 AsCoreType(aInstance).Get<Srp::Client>().DisableAutoStartMode(); in otSrpClientDisableAutoStartMode()
77 return AsCoreType(aInstance).Get<Srp::Client>().IsAutoStartModeEnabled(); in otSrpClientIsAutoStartModeEnabled()
81 uint32_t otSrpClientGetTtl(otInstance *aInstance) { return AsCoreType(aInstance).Get<Srp::Client>()… in otSrpClientGetTtl()
85 return AsCoreType(aInstance).Get<Srp::Client>().SetTtl(aTtl); in otSrpClientSetTtl()
[all …]
Dlink_raw_api.cpp54 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetReceiveDone(aCallback); in otLinkRawSetReceiveDone()
57 bool otLinkRawIsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().I… in otLinkRawIsEnabled()
61 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetShortAddress(aShortAddress); in otLinkRawSetShortAddress()
64 bool otLinkRawGetPromiscuous(otInstance *aInstance) { return AsCoreType(aInstance).Get<Radio>().Get… in otLinkRawGetPromiscuous()
71 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSetPromiscuous()
72 instance.Get<Radio>().SetPromiscuous(aEnable); in otLinkRawSetPromiscuous()
83 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSleep()
85 error = instance.Get<Radio>().Sleep(); in otLinkRawSleep()
91 otError otLinkRawReceive(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().… in otLinkRawReceive()
95 return &AsCoreType(aInstance).Get<Mac::LinkRaw>().GetTransmitFrame(); in otLinkRawGetTransmitBuffer()
[all …]
Dip6_api.cpp53 VerifyOrExit(!instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otIp6SetEnabled()
58 instance.Get<ThreadNetif>().Up(); in otIp6SetEnabled()
62 instance.Get<ThreadNetif>().Down(); in otIp6SetEnabled()
71 bool otIp6IsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<ThreadNetif>().IsUp()… in otIp6IsEnabled()
75 return AsCoreType(aInstance).Get<ThreadNetif>().GetUnicastAddresses().GetHead(); in otIp6GetUnicastAddresses()
80 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress()
85 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress()
90 return AsCoreType(aInstance).Get<ThreadNetif>().GetMulticastAddresses().GetHead(); in otIp6GetMulticastAddresses()
95 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress()
100 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress()
[all …]
Dchannel_manager_api.cpp48 AsCoreType(aInstance).Get<Utils::ChannelManager>().RequestChannelChange(aChannel); in otChannelManagerRequestChannelChange()
53 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetRequestedChannel(); in otChannelManagerGetRequestedChannel()
58 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetDelay(); in otChannelManagerGetDelay()
63 return AsCoreType(aInstance).Get<Utils::ChannelManager>().SetDelay(aDelay); in otChannelManagerSetDelay()
69 … return AsCoreType(aInstance).Get<Utils::ChannelManager>().RequestChannelSelect(aSkipQualityCheck); in otChannelManagerRequestChannelSelect()
75 AsCoreType(aInstance).Get<Utils::ChannelManager>().SetAutoChannelSelectionEnabled(aEnabled); in otChannelManagerSetAutoChannelSelectionEnabled()
80 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetAutoChannelSelectionEnabled(); in otChannelManagerGetAutoChannelSelectionEnabled()
85 …return AsCoreType(aInstance).Get<Utils::ChannelManager>().SetAutoChannelSelectionInterval(aInterva… in otChannelManagerSetAutoChannelSelectionInterval()
90 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetAutoChannelSelectionInterval(); in otChannelManagerGetAutoChannelSelectionInterval()
95 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetSupportedChannels(); in otChannelManagerGetSupportedChannels()
[all …]
Dborder_routing_api.cpp48 …return AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().Init(aInfraIfIndex, aInfraIfIsRun… in otBorderRoutingInit()
53 return AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().SetEnabled(aEnabled); in otBorderRoutingSetEnabled()
58 return MapEnum(AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().GetState()); in otBorderRoutingGetState()
64 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().GetRouteInfoOptionPreference()); in otBorderRoutingGetRouteInfoOptionPreference()
69 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().SetRouteInfoOptionPreference( in otBorderRoutingSetRouteInfoOptionPreference()
75 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().ClearRouteInfoOptionPreference(); in otBorderRoutingClearRouteInfoOptionPreference()
81 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().GetRoutePreference()); in otBorderRoutingGetRoutePreference()
86 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().SetRoutePreference( in otBorderRoutingSetRoutePreference()
92 AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().ClearRoutePreference(); in otBorderRoutingClearRoutePreference()
97 …return AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().GetOmrPrefix(AsCoreType(aPrefix)); in otBorderRoutingGetOmrPrefix()
[all …]
Dbackbone_router_ftd_api.cpp48 return AsCoreType(aInstance).Get<BackboneRouter::Local>().SetEnabled(aEnabled); in otBackboneRouterSetEnabled()
53 return MapEnum(AsCoreType(aInstance).Get<BackboneRouter::Local>().GetState()); in otBackboneRouterGetState()
60 AsCoreType(aInstance).Get<BackboneRouter::Local>().GetConfig(*aConfig); in otBackboneRouterGetConfig()
67 return AsCoreType(aInstance).Get<BackboneRouter::Local>().SetConfig(*aConfig); in otBackboneRouterSetConfig()
72 …return AsCoreType(aInstance).Get<BackboneRouter::Local>().AddService(true /* Force registration */… in otBackboneRouterRegister()
77 return AsCoreType(aInstance).Get<BackboneRouter::Local>().GetRegistrationJitter(); in otBackboneRouterGetRegistrationJitter()
82 return AsCoreType(aInstance).Get<BackboneRouter::Local>().SetRegistrationJitter(aJitter); in otBackboneRouterSetRegistrationJitter()
87 return AsCoreType(aInstance).Get<BackboneRouter::Local>().GetDomainPrefix(AsCoreType(aConfig)); in otBackboneRouterGetDomainPrefix()
94 …return AsCoreType(aInstance).Get<BackboneRouter::Local>().SetDomainPrefixCallback(aCallback, aCont… in otBackboneRouterSetDomainPrefixCallback()
102 AsCoreType(aInstance).Get<BackboneRouter::NdProxyTable>().SetCallback(aCallback, aContext); in otBackboneRouterSetNdProxyCallback()
[all …]
Djam_detection_api.cpp47 AsCoreType(aInstance).Get<Utils::JamDetector>().SetRssiThreshold(aRssiThreshold); in otJamDetectionSetRssiThreshold()
54 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetRssiThreshold(); in otJamDetectionGetRssiThreshold()
59 return AsCoreType(aInstance).Get<Utils::JamDetector>().SetWindow(aWindow); in otJamDetectionSetWindow()
64 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetWindow(); in otJamDetectionGetWindow()
69 return AsCoreType(aInstance).Get<Utils::JamDetector>().SetBusyPeriod(aBusyPeriod); in otJamDetectionSetBusyPeriod()
74 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetBusyPeriod(); in otJamDetectionGetBusyPeriod()
79 return AsCoreType(aInstance).Get<Utils::JamDetector>().Start(aCallback, aContext); in otJamDetectionStart()
82 otError otJamDetectionStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<Utils::JamDete… in otJamDetectionStop()
86 return AsCoreType(aInstance).Get<Utils::JamDetector>().IsEnabled(); in otJamDetectionIsEnabled()
91 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetState(); in otJamDetectionGetState()
[all …]
Dcommissioner_api.cpp50 …return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().Start(aStateCallback, aJoinerCallback, a… in otCommissionerStart()
55 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().GetId(); in otCommissionerGetId()
60 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().SetId(aId); in otCommissionerSetId()
63 otError otCommissionerStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<MeshCoP::Commi… in otCommissionerStop()
68 MeshCoP::Commissioner &commissioner = AsCoreType(aInstance).Get<MeshCoP::Commissioner>(); in otCommissionerAddJoiner()
87 …return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().AddJoiner(AsCoreType(aDiscerner), aPskd,… in otCommissionerAddJoinerWithDiscerner()
92 … return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().GetNextJoinerInfo(*aIterator, *aJoiner); in otCommissionerGetNextJoinerInfo()
98 MeshCoP::Commissioner &commissioner = AsCoreType(aInstance).Get<MeshCoP::Commissioner>(); in otCommissionerRemoveJoiner()
114 … return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().RemoveJoiner(AsCoreType(aDiscerner), 0); in otCommissionerRemoveJoinerWithDiscerner()
119 return AsCoreType(aInstance).Get<MeshCoP::Commissioner>().SetProvisioningUrl(aProvisioningUrl); in otCommissionerSetProvisioningUrl()
[all …]
Dnetdata_publisher_api.cpp49 … AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceAnycast(aSequenceNumber); in otNetDataPublishDnsSrpServiceAnycast()
54 …AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(AsCoreType(aAddres… in otNetDataPublishDnsSrpServiceUnicast()
59 AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(aPort); in otNetDataPublishDnsSrpServiceUnicastMeshLocalEid()
64 return AsCoreType(aInstance).Get<NetworkData::Publisher>().IsDnsSrpServiceAdded(); in otNetDataIsDnsSrpServiceAdded()
71 … AsCoreType(aInstance).Get<NetworkData::Publisher>().SetDnsSrpServiceCallback(aCallback, aContext); in otNetDataSetDnsSrpServicePublisherCallback()
76 AsCoreType(aInstance).Get<NetworkData::Publisher>().UnpublishDnsSrpService(); in otNetDataUnpublishDnsSrpService()
85 …return AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishOnMeshPrefix(AsCoreType(aConfig), in otNetDataPublishOnMeshPrefix()
91 …return AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishExternalRoute(AsCoreType(aConfig… in otNetDataPublishExternalRoute()
99 return AsCoreType(aInstance).Get<NetworkData::Publisher>().ReplacePublishedExternalRoute( in otNetDataReplacePublishedExternalRoute()
105 return AsCoreType(aInstance).Get<NetworkData::Publisher>().IsPrefixAdded(AsCoreType(aPrefix)); in otNetDataIsPrefixAdded()
[all …]
Dudp_api.cpp45 return AsCoreType(aInstance).Get<Ip6::Udp>().NewMessage(0, Message::Settings::From(aSettings)); in otUdpNewMessage()
50 return AsCoreType(aInstance).Get<Ip6::Udp>().Open(AsCoreType(aSocket), aCallback, aContext); in otUdpOpen()
55 return AsCoreType(aInstance).Get<Ip6::Udp>().IsOpen(AsCoreType(aSocket)); in otUdpIsOpen()
60 return AsCoreType(aInstance).Get<Ip6::Udp>().Close(AsCoreType(aSocket)); in otUdpClose()
65 …return AsCoreType(aInstance).Get<Ip6::Udp>().Bind(AsCoreType(aSocket), AsCoreType(aSockName), MapE… in otUdpBind()
70 … return AsCoreType(aInstance).Get<Ip6::Udp>().Connect(AsCoreType(aSocket), AsCoreType(aSockName)); in otUdpConnect()
75 return AsCoreType(aInstance).Get<Ip6::Udp>().SendTo(AsCoreType(aSocket), AsCoreType(aMessage), in otUdpSend()
79 otUdpSocket *otUdpGetSockets(otInstance *aInstance) { return AsCoreType(aInstance).Get<Ip6::Udp>().… in otUdpGetSockets()
84 AsCoreType(aInstance).Get<Ip6::Udp>().SetUdpForwarder(aForwarder, aContext); in otUdpForwardSetForwarder()
95 messageInfo.SetSockAddr(AsCoreType(aInstance).Get<Mle::MleRouter>().GetMeshLocal16()); in otUdpForwardReceive()
[all …]
Dnetdata_api.cpp48 return AsCoreType(aInstance).Get<NetworkData::Leader>().CopyNetworkData( in otNetDataGet()
54 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetLength(); in otNetDataGetLength()
59 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetMaxLength(); in otNetDataGetMaxLength()
64 AsCoreType(aInstance).Get<NetworkData::Leader>().ResetMaxLength(); in otNetDataResetMaxLength()
73 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextOnMeshPrefix(*aIterator, AsCoreType… in otNetDataGetNextOnMeshPrefix()
79 return AsCoreType(aInstance).Get<NetworkData::Leader>().ContainsOmrPrefix(AsCoreType(aPrefix)); in otNetDataContainsOmrPrefix()
87 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextExternalRoute(*aIterator, AsCoreTyp… in otNetDataGetNextRoute()
94 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextService(*aIterator, AsCoreType(aCon… in otNetDataGetNextService()
103 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextLowpanContextInfo(*aIterator, in otNetDataGetNextLowpanContextInfo()
109 …return AsCoreType(aInstance).Get<Mle::MleRouter>().GetLeaderData().GetDataVersion(NetworkData::kFu… in otNetDataGetVersion()
[all …]
/openthread-3.5.0/src/core/thread/
Dthread_netif.cpp61 Get<Mac::Mac>().SetEnabled(true); in Up()
63 IgnoreError(Get<Utils::ChannelMonitor>().Start()); in Up()
65 Get<MeshForwarder>().Start(); in Up()
70 IgnoreError(Get<Mle::MleRouter>().Enable()); in Up()
71 IgnoreError(Get<Tmf::Agent>().Start()); in Up()
73 IgnoreError(Get<Dns::ServiceDiscovery::Server>().Start()); in Up()
76 IgnoreError(Get<Dns::Client>().Start()); in Up()
79 IgnoreError(Get<Sntp::Client>().Start()); in Up()
81 Get<Notifier>().Signal(kEventThreadNetifStateChanged); in Up()
92 Get<Dns::Client>().Stop(); in Down()
[all …]
Dchild_supervision.cpp62 child = Get<ChildTable>().GetChildAtIndex(childIndex); in GetDestination()
75 message = Get<MessagePool>().Allocate(Message::kTypeSupervision, sizeof(uint8_t)); in SendMessage()
83 childIndex = Get<ChildTable>().GetChildIndex(aChild); in SendMessage()
86 SuccessOrExit(Get<MeshForwarder>().SendMessage(*message)); in SendMessage()
99 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in HandleTimeTick()
121 …bool shouldRun = (!Get<Mle::Mle>().IsDisabled() && Get<ChildTable>().HasChildren(Child::kInStateVa… in CheckState()
123 if (shouldRun && !Get<TimeTicker>().IsReceiverRegistered(TimeTicker::kChildSupervisor)) in CheckState()
125 Get<TimeTicker>().RegisterReceiver(TimeTicker::kChildSupervisor); in CheckState()
129 if (!shouldRun && Get<TimeTicker>().IsReceiverRegistered(TimeTicker::kChildSupervisor)) in CheckState()
131 Get<TimeTicker>().UnregisterReceiver(TimeTicker::kChildSupervisor); in CheckState()
[all …]
Dnetwork_data_notifier.cpp84 VerifyOrExit(Get<Mle::MleRouter>().IsAttached() && !mWaitingForResponse); in SynchronizeServerData()
111 mTimer.Start(Time::SecToMsec(Get<Mle::MleRouter>().GetRouterSelectionJitterTimeout() + 1)); in SynchronizeServerData()
136 VerifyOrExit(Get<Mle::MleRouter>().IsRouterOrLeader()); in RemoveStaleChildEntries()
138 while (Get<Leader>().GetNextServer(iterator, rloc16) == kErrorNone) in RemoveStaleChildEntries()
140 …if (!Mle::IsActiveRouter(rloc16) && Mle::RouterIdMatch(Get<Mle::MleRouter>().GetRloc16(), rloc16) … in RemoveStaleChildEntries()
141 Get<ChildTable>().FindChild(rloc16, Child::kInStateValid) == nullptr) in RemoveStaleChildEntries()
157 uint16_t deviceRloc = Get<Mle::MleRouter>().GetRloc16(); in UpdateInconsistentData()
163 if (Get<Mle::MleRouter>().IsExpectedToBecomeRouterSoon()) in UpdateInconsistentData()
169 Get<Local>().UpdateRloc(); in UpdateInconsistentData()
171 if (Get<Leader>().ContainsEntriesFrom(Get<Local>(), deviceRloc) && in UpdateInconsistentData()
[all …]
Dmle.cpp125 mLinkLocal64.GetAddress().SetToLinkLocalAddress(Get<Mac::Mac>().GetExtAddress()); in Mle()
177 Get<ThreadNetif>().RemoveUnicastAddress(mLinkLocal64); in Disable()
188 VerifyOrExit(!Get<Radio>().GetPromiscuous(), error = kErrorInvalidState); in Start()
189 VerifyOrExit(Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in Start()
191 if (Get<Mac::Mac>().GetPanId() == Mac::kPanIdBroadcast) in Start()
193 Get<Mac::Mac>().SetPanId(Mac::GenerateRandomPanId()); in Start()
203 Get<KeyManager>().Start(); in Start()
217 if (Get<MleRouter>().BecomeRouter(ThreadStatusTlv::kTooFewRouters) != kErrorNone) in Start()
237 Get<MeshCoP::ActiveDatasetManager>().HandleDetach(); in Stop()
238 Get<MeshCoP::PendingDatasetManager>().HandleDetach(); in Stop()
[all …]
/openthread-3.5.0/src/core/backbone_router/
Dbbr_local.cpp113 Get<Notifier>().Signal(kEventThreadBackboneRouterLocalChanged); in Reset()
164 Get<Notifier>().Signal(kEventThreadBackboneRouterLocalChanged); in SetConfig()
179 VerifyOrExit(mState != kStateDisabled && Get<Mle::Mle>().IsAttached()); in AddService()
182 … !Get<BackboneRouter::Leader>().HasPrimary() /* if no available Backbone Router service */ || in AddService()
183 Get<BackboneRouter::Leader>().GetServer16() == Get<Mle::MleRouter>().GetRloc16() in AddService()
191 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Add<NetworkData::Service::BackboneRoute… in AddService()
192 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in AddService()
205 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Remove<NetworkData::Service::BackboneRo… in RemoveService()
206 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in RemoveService()
220 … mAllNetworkBackboneRouters.SetMulticastNetworkPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in SetState()
[all …]
/openthread-3.5.0/src/core/mac/
Dsub_mac_callbacks.cpp57 if (Get<LinkRaw>().IsEnabled()) in ReceiveDone()
59 Get<LinkRaw>().InvokeReceiveDone(aFrame, aError); in ReceiveDone()
64 Get<Mac>().HandleReceivedFrame(aFrame, aError); in ReceiveDone()
70 Get<Mac>().RecordCcaStatus(aCcaSuccess, aChannel); in RecordCcaStatus()
78 Get<Mac>().RecordFrameTransmitStatus(aFrame, aError, aRetryCount, aWillRetx); in RecordFrameTransmitStatus()
84 if (Get<LinkRaw>().IsEnabled()) in TransmitDone()
86 Get<LinkRaw>().InvokeTransmitDone(aFrame, aAckFrame, aError); in TransmitDone()
91 Get<Mac>().HandleTransmitDone(aFrame, aAckFrame, aError); in TransmitDone()
98 if (Get<LinkRaw>().IsEnabled()) in EnergyScanDone()
100 Get<LinkRaw>().InvokeEnergyScanDone(aMaxRssi); in EnergyScanDone()
[all …]
/openthread-3.5.0/src/core/meshcop/
Ddataset_manager_ftd.cpp91 VerifyOrExit(Get<Mle::MleRouter>().IsLeader()); in HandleSet()
124 if (channel.GetChannel() != Get<Mac::Mac>().GetPanChannel()) in HandleSet()
131 if (Tlv::Find<PanIdTlv>(aMessage, panId) == kErrorNone && panId != Get<Mac::Mac>().GetPanId()) in HandleSet()
138 meshLocalPrefix != Get<Mle::MleRouter>().GetMeshLocalPrefix()) in HandleSet()
149 Get<KeyManager>().GetNetworkKey(localNetworkKey); in HandleSet()
162 const Timestamp *localActiveTimestamp = Get<ActiveDatasetManager>().GetTimestamp(); in HandleSet()
175 Get<NetworkData::Leader>().GetCommissioningDataSubTlv(Tlv::kCommissionerSessionId)); in HandleSet()
187 IgnoreError(Get<ActiveDatasetManager>().Read(dataset)); in HandleSet()
214 else if (delayTimerTlv.GetDelayTimer() < Get<Leader>().GetDelayTimerMinimal()) in HandleSet()
216 delayTimerTlv.SetDelayTimer(Get<Leader>().GetDelayTimerMinimal()); in HandleSet()
[all …]
/openthread-3.5.0/src/core/net/
Dnd_agent.cpp51 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateService()
64 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
71 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
84 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in UpdateService()
93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
100 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
107 … mAloc.GetAddress().SetToAnycastLocator(Get<Mle::MleRouter>().GetMeshLocalPrefix(), rloc); in UpdateService()
108 Get<ThreadNetif>().AddUnicastAddress(mAloc); in UpdateService()
121 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in ApplyMeshLocalPrefix()
122 mAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix()
[all …]

12345678910