Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 25 of 107) sorted by relevance

12345

/openthread-latest/src/core/api/
Dchannel_manager_api.cpp46 AsCoreType(aInstance).Get<Utils::ChannelManager>().RequestNetworkChannelChange(aChannel); in otChannelManagerRequestChannelChange()
52 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>().RequestNetworkChannelSelect(aSkipQuality… in otChannelManagerRequestChannelSelect()
75 …AsCoreType(aInstance).Get<Utils::ChannelManager>().SetAutoNetworkChannelSelectionEnabled(aEnabled); in otChannelManagerSetAutoChannelSelectionEnabled()
80 … return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetAutoNetworkChannelSelectionEnabled(); in otChannelManagerGetAutoChannelSelectionEnabled()
88 …return AsCoreType(aInstance).Get<Utils::ChannelManager>().RequestCslChannelSelect(aSkipQualityChec… in otChannelManagerRequestCslChannelSelect()
94 AsCoreType(aInstance).Get<Utils::ChannelManager>().SetAutoCslChannelSelectionEnabled(aEnabled); in otChannelManagerSetAutoCslChannelSelectionEnabled()
99 return AsCoreType(aInstance).Get<Utils::ChannelManager>().GetAutoCslChannelSelectionEnabled(); in otChannelManagerGetAutoCslChannelSelectionEnabled()
[all …]
Djam_detection_api.cpp46 AsCoreType(aInstance).Get<Utils::JamDetector>().SetRssiThreshold(aRssiThreshold); in otJamDetectionSetRssiThreshold()
53 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetRssiThreshold(); in otJamDetectionGetRssiThreshold()
58 return AsCoreType(aInstance).Get<Utils::JamDetector>().SetWindow(aWindow); in otJamDetectionSetWindow()
63 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetWindow(); in otJamDetectionGetWindow()
68 return AsCoreType(aInstance).Get<Utils::JamDetector>().SetBusyPeriod(aBusyPeriod); in otJamDetectionSetBusyPeriod()
73 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetBusyPeriod(); in otJamDetectionGetBusyPeriod()
78 return AsCoreType(aInstance).Get<Utils::JamDetector>().Start(aCallback, aContext); in otJamDetectionStart()
81 otError otJamDetectionStop(otInstance *aInstance) { return AsCoreType(aInstance).Get<Utils::JamDete… in otJamDetectionStop()
85 return AsCoreType(aInstance).Get<Utils::JamDetector>().IsEnabled(); in otJamDetectionIsEnabled()
90 return AsCoreType(aInstance).Get<Utils::JamDetector>().GetState(); in otJamDetectionGetState()
[all …]
Dchannel_monitor_api.cpp47 Utils::ChannelMonitor &monitor = AsCoreType(aInstance).Get<Utils::ChannelMonitor>(); in otChannelMonitorSetEnabled()
54 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().IsRunning(); in otChannelMonitorIsEnabled()
61 return Utils::ChannelMonitor::kSampleInterval; in otChannelMonitorGetSampleInterval()
68 return Utils::ChannelMonitor::kRssiThreshold; in otChannelMonitorGetRssiThreshold()
75 return Utils::ChannelMonitor::kSampleWindow; in otChannelMonitorGetSampleWindow()
80 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().GetSampleCount(); in otChannelMonitorGetSampleCount()
85 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().GetChannelOccupancy(aChannel); in otChannelMonitorGetChannelOccupancy()
Dhistory_tracker_api.cpp50 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateNetInfoHistory(AsCoreType(aIterat… in otHistoryTrackerIterateNetInfoHistory()
60 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateUnicastAddressHistory(AsCoreType(… in otHistoryTrackerIterateUnicastAddressHistory()
71 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateMulticastAddressHistory(AsCoreTyp… in otHistoryTrackerIterateMulticastAddressHistory()
81 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateRxHistory(AsCoreType(aIterator), … in otHistoryTrackerIterateRxHistory()
90 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateTxHistory(AsCoreType(aIterator), … in otHistoryTrackerIterateTxHistory()
99 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateNeighborHistory(AsCoreType(aItera… in otHistoryTrackerIterateNeighborHistory()
108 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateRouterHistory(AsCoreType(aIterato… in otHistoryTrackerIterateRouterHistory()
117 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateOnMeshPrefixHistory(AsCoreType(aI… in otHistoryTrackerIterateOnMeshPrefixHistory()
128 …return AsCoreType(aInstance).Get<Utils::HistoryTracker>().IterateExternalRouteHistory(AsCoreType(a… in otHistoryTrackerIterateExternalRouteHistory()
134 Utils::HistoryTracker::EntryAgeToString(aEntryAge, aBuffer, aSize); in otHistoryTrackerEntryAgeToString()
Dmesh_diag_api.cpp48 …return AsCoreType(aInstance).Get<Utils::MeshDiag>().DiscoverTopology(*aConfig, aCallback, aContext… in otMeshDiagDiscoverTopology()
51 void otMeshDiagCancel(otInstance *aInstance) { AsCoreType(aInstance).Get<Utils::MeshDiag>().Cancel(… in otMeshDiagCancel()
68 … return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildTable(aRloc16, aCallback, aContext); in otMeshDiagQueryChildTable()
76 …return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildrenIp6Addrs(aRloc16, aCallback, aCon… in otMeshDiagQueryChildrenIp6Addrs()
84 …return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryRouterNeighborTable(aRloc16, aCallback, a… in otMeshDiagQueryRouterNeighborTable()
Dsrp_client_buffers_api.cpp48 return AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().GetHostNameString(*aSize); in otSrpClientBuffersGetHostNameString()
55 … return AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().GetHostAddressesArray(*aArrayLength); in otSrpClientBuffersGetHostAddressesArray()
60 return AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().AllocateService(); in otSrpClientBuffersAllocateService()
65 AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().FreeService(AsCoreType(aService)); in otSrpClientBuffersFreeService()
70 AsCoreType(aInstance).Get<Utils::SrpClientBuffers>().FreeAllServices(); in otSrpClientBuffersFreeAllServices()
Dping_sender_api.cpp44 return AsCoreType(aInstance).Get<Utils::PingSender>().Ping(AsCoreType(aConfig)); in otPingSenderPing()
47 void otPingSenderStop(otInstance *aInstance) { AsCoreType(aInstance).Get<Utils::PingSender>().Stop(… in otPingSenderStop()
/openthread-latest/src/cli/
Dcli_utils.cpp51 const char Utils::kUnknownString[] = "unknown";
63 void Utils::OutputFormat(const char *aFormat, ...) in OutputFormat()
72 void Utils::OutputFormat(uint8_t aIndentSize, const char *aFormat, ...) in OutputFormat()
83 void Utils::OutputLine(const char *aFormat, ...) in OutputLine()
94 void Utils::OutputLine(uint8_t aIndentSize, const char *aFormat, ...) in OutputLine()
107 void Utils::OutputNewLine(void) { OutputFormat("\r\n"); } in OutputNewLine()
109 void Utils::OutputSpaces(uint8_t aCount) { OutputFormat("%*s", aCount, ""); } in OutputSpaces()
111 void Utils::OutputBytes(const uint8_t *aBytes, uint16_t aLength) in OutputBytes()
119 void Utils::OutputBytesLine(const uint8_t *aBytes, uint16_t aLength) in OutputBytesLine()
125 const char *Utils::Uint64ToString(uint64_t aUint64, Uint64StringBuffer &aBuffer) in Uint64ToString()
[all …]
Dcli_utils.hpp75 class Utils;
82 friend class Utils;
116 class Utils class
119 typedef ot::Utils::CmdLineParser::Arg Arg; ///< An argument
187 Utils(otInstance *aInstance, OutputImplementer &aImplementer) in Utils() function in ot::Cli::Utils
729 template <> inline constexpr const char *Utils::FormatStringFor<uint8_t>(void) { return "%u"; } in FormatStringFor()
731 template <> inline constexpr const char *Utils::FormatStringFor<uint16_t>(void) { return "%u"; } in FormatStringFor()
733 template <> inline constexpr const char *Utils::FormatStringFor<uint32_t>(void) { return "%lu"; } in FormatStringFor()
735 template <> inline constexpr const char *Utils::FormatStringFor<int8_t>(void) { return "%d"; } in FormatStringFor()
737 template <> inline constexpr const char *Utils::FormatStringFor<int16_t>(void) { return "%d"; } in FormatStringFor()
[all …]
Dcli_tcat.hpp47 class Tcat : private Utils
57 : Utils(aInstance, aOutputImplementer) in Tcat()
Dcli_bbr.hpp53 class Bbr : private Utils
63 : Utils(aInstance, aOutputImplementer) in Bbr()
Dcli_srp_server.hpp51 class SrpServer : private Utils
61 : Utils(aInstance, aOutputImplementer) in SrpServer()
/openthread-latest/src/core/instance/
Dinstance.hpp354 static Utils::Heap &GetHeap(void);
461 static Utils::Heap *sHeap;
514 Utils::Slaac mSlaac;
526 Utils::SrpClientBuffers mSrpClientBuffers;
604 Utils::JamDetector mJamDetector;
673 Utils::PingSender mPingSender;
677 Utils::ChannelMonitor mChannelMonitor;
682 Utils::ChannelManager mChannelManager;
686 Utils::MeshDiag mMeshDiag;
690 Utils::HistoryTracker mHistoryTracker;
[all …]
/openthread-latest/src/posix/platform/
Dpower.cpp56 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelStart)); in FromString()
59 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelEnd)); in FromString()
62 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt16(str, mTargetPower)); in FromString()
82 …SuccessOrExit(error = ot::Utils::CmdLineParser::ParseAsHexString(aRawPowerSetting, length, mData)); in Set()
105 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelStart)); in FromString()
108 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelEnd)); in FromString()
111 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt16(str, mActualPower)); in FromString()
/openthread-latest/tools/ot-fct/
Dcli.hpp67 void ProcessCommand(Utils::CmdLineParser::Arg aArgs[]);
91 otError (Cli::*mCommand)(Utils::CmdLineParser::Arg aArgs[]);
98 otError ProcessCalibrationTable(Utils::CmdLineParser::Arg aArgs[]);
99 otError ProcessTargetPowerTable(Utils::CmdLineParser::Arg aArgs[]);
100 otError ProcessRegionDomainTable(Utils::CmdLineParser::Arg aArgs[]);
Dcli.cpp94 otError Cli::ProcessTargetPowerTable(Utils::CmdLineParser::Arg aArgs[]) in ProcessTargetPowerTable()
120 otError Cli::ProcessRegionDomainTable(Utils::CmdLineParser::Arg aArgs[]) in ProcessRegionDomainTable()
168 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt16(start, actualPower)); in ParseNextCalibratedPower()
179 otError Cli::ProcessCalibrationTable(Utils::CmdLineParser::Arg aArgs[]) in ProcessCalibrationTable()
211 for (Utils::CmdLineParser::Arg *arg = &aArgs[1]; !arg->IsEmpty(); arg++) in ProcessCalibrationTable()
220 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(subString, channel)); in ProcessCalibrationTable()
225 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(subString, channel)); in ProcessCalibrationTable()
274 void Cli::ProcessCommand(Utils::CmdLineParser::Arg aArgs[]) in ProcessCommand()
294 Utils::CmdLineParser::Arg args[kMaxArgs + 1]; in ProcessLine()
296 SuccessOrExit(ot::Utils::CmdLineParser::ParseCmd(aLine, args, kMaxArgs)); in ProcessLine()
/openthread-latest/tests/unit/
Dtest_cmd_line_parser.cpp42 using Utils::CmdLineParser::ParseAsBool;
43 using Utils::CmdLineParser::ParseAsHexString;
44 using Utils::CmdLineParser::ParseAsHexStringSegment;
45 using Utils::CmdLineParser::ParseAsInt16;
46 using Utils::CmdLineParser::ParseAsInt32;
47 using Utils::CmdLineParser::ParseAsInt8;
48 using Utils::CmdLineParser::ParseAsUint16;
49 using Utils::CmdLineParser::ParseAsUint32;
50 using Utils::CmdLineParser::ParseAsUint64;
51 using Utils::CmdLineParser::ParseAsUint8;
/openthread-latest/src/lib/spinel/
Dspi_frame.hpp192 Lib::Utils::LittleEndian::WriteUint16(aAcceptLen, mBuffer + kIndexAcceptLen); in SetHeaderAcceptLen()
200 …uint16_t GetHeaderAcceptLen(void) const { return Lib::Utils::LittleEndian::ReadUint16(mBuffer + kI… in GetHeaderAcceptLen()
211 Lib::Utils::LittleEndian::WriteUint16(aDataLen, mBuffer + kIndexDataLen); in SetHeaderDataLen()
219 …uint16_t GetHeaderDataLen(void) const { return Lib::Utils::LittleEndian::ReadUint16(mBuffer + kInd… in GetHeaderDataLen()
Dmulti_frame_buffer.hpp251 … Lib::Utils::LittleEndian::WriteUint16(aSkipLength, mWriteFrameStart + kHeaderSkipLengthOffset); in SetSkipLength()
267 return Lib::Utils::LittleEndian::ReadUint16(mWriteFrameStart + kHeaderSkipLengthOffset); in GetSkipLength()
304 Lib::Utils::LittleEndian::WriteUint16(GetSkipLength() + GetLength(), in SaveFrame()
355 … uint16_t totalLength = Lib::Utils::LittleEndian::ReadUint16(aFrame + kHeaderTotalLengthOffset); in GetNextSavedFrame()
356 … uint16_t skipLength = Lib::Utils::LittleEndian::ReadUint16(aFrame + kHeaderSkipLengthOffset); in GetNextSavedFrame()
/openthread-latest/src/core/diags/
Dfactory_diags.cpp90 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(aArgs[0], channel)); in ProcessChannel()
106 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt8(aArgs[0], power)); in ProcessPower()
131 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint32(aArgs[1], number)); in ProcessEcho()
249 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(aArgs[0], maxCsmaBackoffs));
261 … SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(aArgs[0], rxChannelAfterTxDone));
270 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint32(aArgs[0], txDelay));
279 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt8(aArgs[0], txPower));
287 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(aArgs[0], maxFrameRetries));
309 SuccessOrExit(error = Utils::CmdLineParser::ParseAsHexString(aArgs[0], size, mTxPacket->mPsdu));
342 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(aArgs[0], channel));
[all …]
/openthread-latest/src/core/utils/
Dping_sender.hpp55 namespace Utils { namespace
179 DefineCoreType(otPingSenderReply, Utils::PingSender::Reply);
180 DefineCoreType(otPingSenderConfig, Utils::PingSender::Config);
181 DefineCoreType(otPingSenderStatistics, Utils::PingSender::Statistics);
Dhistory_tracker.hpp60 namespace Utils { namespace
446 DefineCoreType(otHistoryTrackerIterator, Utils::HistoryTracker::Iterator);
447 DefineCoreType(otHistoryTrackerNetworkInfo, Utils::HistoryTracker::NetworkInfo);
448 DefineCoreType(otHistoryTrackerMessageInfo, Utils::HistoryTracker::MessageInfo);
449 DefineCoreType(otHistoryTrackerNeighborInfo, Utils::HistoryTracker::NeighborInfo);
450 DefineCoreType(otHistoryTrackerRouterInfo, Utils::HistoryTracker::RouterInfo);
451 DefineCoreType(otHistoryTrackerOnMeshPrefixInfo, Utils::HistoryTracker::OnMeshPrefixInfo);
452 DefineCoreType(otHistoryTrackerExternalRouteInfo, Utils::HistoryTracker::ExternalRouteInfo);
Dmesh_diag.hpp65 namespace Utils { namespace
314 DefineCoreType(otMeshDiagIp6AddrIterator, Utils::MeshDiag::Ip6AddrIterator);
315 DefineCoreType(otMeshDiagRouterInfo, Utils::MeshDiag::RouterInfo);
316 DefineCoreType(otMeshDiagChildInfo, Utils::MeshDiag::ChildInfo);
317 DefineCoreType(otMeshDiagChildIterator, Utils::MeshDiag::ChildIterator);
Dpower_calibration.cpp37 namespace Utils { namespace
207 return AsCoreType(aInstance).Get<Utils::PowerCalibration>().AddCalibratedPower( in otPlatRadioAddCalibratedPower()
213 AsCoreType(aInstance).Get<Utils::PowerCalibration>().ClearCalibratedPowers(); in otPlatRadioClearCalibratedPowers()
219 …return AsCoreType(aInstance).Get<Utils::PowerCalibration>().SetChannelTargetPower(aChannel, aTarge… in otPlatRadioSetChannelTargetPower()
230 return AsCoreType(aInstance).Get<Utils::PowerCalibration>().GetPowerSettings( in otPlatRadioGetRawPowerSetting()
246 return AsCoreType(aInstance).Get<Utils::PowerCalibration>().GetPowerSettings( in otPlatDiagRadioGetPowerSettings()
/openthread-latest/src/core/common/
Dnotifier.cpp134 Get<Utils::Slaac>().HandleNotifierEvents(events); in EmitEvents()
137 Get<Utils::JamDetector>().HandleNotifierEvents(events); in EmitEvents()
140 Get<Utils::Otns>().HandleNotifierEvents(events); in EmitEvents()
143 Get<Utils::HistoryTracker>().HandleNotifierEvents(events); in EmitEvents()
161 Get<Utils::LinkMetricsManager>().HandleNotifierEvents(events); in EmitEvents()

12345