Lines Matching refs:Interpreter
72 Interpreter *Interpreter::sInterpreter = nullptr;
73 static OT_DEFINE_ALIGNED_VAR(sInterpreterRaw, sizeof(Interpreter), uint64_t);
75 Interpreter::Interpreter(Instance *aInstance, otCliOutputCallback aCallback, void *aContext) in Interpreter() function in ot::Cli::Interpreter
145 otIp6SetReceiveCallback(GetInstancePtr(), &Interpreter::HandleIp6Receive, this); in Interpreter()
148 otDiagSetOutputCallback(GetInstancePtr(), &Interpreter::HandleDiagOutput, this); in Interpreter()
156 void Interpreter::OutputResult(otError aError) in OutputResult()
190 template <> otError Interpreter::Process<Cmd("diag")>(Arg aArgs[]) in Process()
200 void Interpreter::HandleDiagOutput(const char *aFormat, va_list aArguments, void *aContext) in HandleDiagOutput()
202 static_cast<Interpreter *>(aContext)->HandleDiagOutput(aFormat, aArguments); in HandleDiagOutput()
205 void Interpreter::HandleDiagOutput(const char *aFormat, va_list aArguments) in HandleDiagOutput()
218 template <> otError Interpreter::Process<Cmd("version")>(Arg aArgs[]) in Process()
259 template <> otError Interpreter::Process<Cmd("reset")>(Arg aArgs[]) in Process()
291 void Interpreter::ProcessLine(char *aLine) in ProcessLine()
366 otError Interpreter::ProcessUserCommands(Arg aArgs[]) in ProcessUserCommands()
388 otError Interpreter::SetUserCommands(const otCliCommand *aCommands, uint8_t aLength, void *aContext) in SetUserCommands()
423 template <> otError Interpreter::Process<Cmd("attachtime")>(Arg aArgs[]) in Process()
439 template <> otError Interpreter::Process<Cmd("history")>(Arg aArgs[]) { return mHistory.Process(aAr… in Process()
443 template <> otError Interpreter::Process<Cmd("ba")>(Arg aArgs[]) in Process()
668 void Interpreter::OutputBorderAgentCounters(const otBorderAgentCounters &aCounters) in OutputBorderAgentCounters()
704 void Interpreter::HandleBorderAgentEphemeralKeyStateChange(void *aContext) in HandleBorderAgentEphemeralKeyStateChange()
706 reinterpret_cast<Interpreter *>(aContext)->HandleBorderAgentEphemeralKeyStateChange(); in HandleBorderAgentEphemeralKeyStateChange()
709 void Interpreter::HandleBorderAgentEphemeralKeyStateChange(void) in HandleBorderAgentEphemeralKeyStateChange()
727 template <> otError Interpreter::Process<Cmd("br")>(Arg aArgs[]) { return mBr.Process(aArgs); } in Process()
731 template <> otError Interpreter::Process<Cmd("nat64")>(Arg aArgs[]) in Process()
1008 void Interpreter::OutputNat64Counters(const otNat64Counters &aCounters) in OutputNat64Counters()
1023 template <> otError Interpreter::Process<Cmd("bbr")>(Arg aArgs[]) { return mBbr.Process(aArgs); } in Process()
1035 template <> otError Interpreter::Process<Cmd("domainname")>(Arg aArgs[]) in Process()
1052 template <> otError Interpreter::Process<Cmd("dua")>(Arg aArgs[]) in Process()
1148 template <> otError Interpreter::Process<Cmd("bufferinfo")>(Arg aArgs[]) in Process()
1225 template <> otError Interpreter::Process<Cmd("ccathreshold")>(Arg aArgs[]) in Process()
1246 template <> otError Interpreter::Process<Cmd("ccm")>(Arg aArgs[]) in Process()
1251 template <> otError Interpreter::Process<Cmd("test")>(Arg aArgs[]) in Process()
1303 template <> otError Interpreter::Process<Cmd("tvcheck")>(Arg aArgs[]) in Process()
1325 template <> otError Interpreter::Process<Cmd("channel")>(Arg aArgs[]) in Process()
1721 template <> otError Interpreter::Process<Cmd("child")>(Arg aArgs[]) in Process()
1857 template <> otError Interpreter::Process<Cmd("childip")>(Arg aArgs[]) in Process()
1944 template <> otError Interpreter::Process<Cmd("childmax")>(Arg aArgs[]) in Process()
1960 template <> otError Interpreter::Process<Cmd("childsupervision")>(Arg aArgs[]) in Process()
2037 template <> otError Interpreter::Process<Cmd("childtimeout")>(Arg aArgs[]) in Process()
2052 template <> otError Interpreter::Process<Cmd("coap")>(Arg aArgs[]) { return mCoap.Process(aArgs); } in Process()
2056 template <> otError Interpreter::Process<Cmd("coaps")>(Arg aArgs[]) { return mCoapSecure.Process(aA… in Process()
2060 template <> otError Interpreter::Process<Cmd("coex")>(Arg aArgs[]) in Process()
2147 template <> otError Interpreter::Process<Cmd("contextreusedelay")>(Arg aArgs[]) in Process()
2154 void Interpreter::OutputBorderRouterCounters(void) in OutputBorderRouterCounters()
2189 template <> otError Interpreter::Process<Cmd("counters")>(Arg aArgs[]) in Process()
2542 template <> otError Interpreter::Process<Cmd("csl")>(Arg aArgs[]) in Process()
2620 template <> otError Interpreter::Process<Cmd("delaytimermin")>(Arg aArgs[]) in Process()
2678 template <> otError Interpreter::Process<Cmd("detach")>(Arg aArgs[]) in Process()
2708 void Interpreter::HandleDetachGracefullyResult(void *aContext) in HandleDetachGracefullyResult()
2710 static_cast<Interpreter *>(aContext)->HandleDetachGracefullyResult(); in HandleDetachGracefullyResult()
2713 void Interpreter::HandleDetachGracefullyResult(void) in HandleDetachGracefullyResult()
2735 template <> otError Interpreter::Process<Cmd("discover")>(Arg aArgs[]) in Process()
2761 callback = &Interpreter::HandleDiscoveryRequest; in Process()
2780 &Interpreter::HandleActiveScanResult, this)); in Process()
2799 template <> otError Interpreter::Process<Cmd("dns")>(Arg aArgs[]) { return mDns.Process(aArgs); } in Process()
2803 template <> otError Interpreter::Process<Cmd("mdns")>(Arg aArgs[]) { return mMdns.Process(aArgs); } in Process()
2807 void Interpreter::OutputEidCacheEntry(const otCacheEntryInfo &aEntry) in OutputEidCacheEntry()
2859 template <> otError Interpreter::Process<Cmd("eidcache")>(Arg aArgs[]) in Process()
2889 template <> otError Interpreter::Process<Cmd("eui64")>(Arg aArgs[]) in Process()
2905 template <> otError Interpreter::Process<Cmd("extaddr")>(Arg aArgs[]) in Process()
2946 template <> otError Interpreter::Process<Cmd("log")>(Arg aArgs[]) in Process()
3018 template <> otError Interpreter::Process<Cmd("extpanid")>(Arg aArgs[]) in Process()
3069 template <> otError Interpreter::Process<Cmd("factoryreset")>(Arg aArgs[]) in Process()
3079 template <> otError Interpreter::Process<Cmd("fake")>(Arg aArgs[]) in Process()
3126 template <> otError Interpreter::Process<Cmd("fem")>(Arg aArgs[]) in Process()
3193 template <> otError Interpreter::Process<Cmd("ifconfig")>(Arg aArgs[]) in Process()
3254 template <> otError Interpreter::Process<Cmd("instanceid")>(Arg aArgs[]) in Process()
3277 template <> otError Interpreter::Process<Cmd("ipaddr")>(Arg aArgs[]) in Process()
3421 template <> otError Interpreter::Process<Cmd("ipmaddr")>(Arg aArgs[]) in Process()
3526 template <> otError Interpreter::Process<Cmd("keysequence")>(Arg aArgs[]) in Process()
3598 template <> otError Interpreter::Process<Cmd("leaderdata")>(Arg aArgs[]) in Process()
3618 template <> otError Interpreter::Process<Cmd("partitionid")>(Arg aArgs[]) in Process()
3675 template <> otError Interpreter::Process<Cmd("leaderweight")>(Arg aArgs[]) in Process()
3691 template <> otError Interpreter::Process<Cmd("deviceprops")>(Arg aArgs[]) in Process()
3795 template <> otError Interpreter::Process<Cmd("linkmetrics")>(Arg aArgs[]) { return mLinkMetrics.Pro… in Process()
3798 template <> otError Interpreter::Process<Cmd("linkmetricsmgr")>(Arg aArgs[]) in Process()
3862 template <> otError Interpreter::Process<Cmd("locate")>(Arg aArgs[]) in Process()
3923 void Interpreter::HandleLocateResult(void *aContext, in HandleLocateResult()
3928 static_cast<Interpreter *>(aContext)->HandleLocateResult(aError, aMeshLocalAddress, aRloc16); in HandleLocateResult()
3931 void Interpreter::HandleLocateResult(otError aError, const otIp6Address *aMeshLocalAddress, uint16_… in HandleLocateResult()
3952 template <> otError Interpreter::Process<Cmd("pskc")>(Arg aArgs[]) in Process()
4019 template <> otError Interpreter::Process<Cmd("pskcref")>(Arg aArgs[]) in Process()
4080 template <> otError Interpreter::Process<Cmd("mleadvimax")>(Arg aArgs[]) in Process()
4101 template <> otError Interpreter::Process<Cmd("mliid")>(Arg aArgs[]) in Process()
4148 template <> otError Interpreter::Process<Cmd("mlr")>(Arg aArgs[]) in Process()
4182 … Interpreter::HandleMlrRegResult, this)); in Process()
4191 void Interpreter::HandleMlrRegResult(void *aContext, in HandleMlrRegResult()
4197 …static_cast<Interpreter *>(aContext)->HandleMlrRegResult(aError, aMlrStatus, aFailedAddresses, aFa… in HandleMlrRegResult()
4200 void Interpreter::HandleMlrRegResult(otError aError, in HandleMlrRegResult()
4220 template <> otError Interpreter::Process<Cmd("mode")>(Arg aArgs[]) in Process()
4295 template <> otError Interpreter::Process<Cmd("multiradio")>(Arg aArgs[]) in Process()
4383 void Interpreter::OutputMultiRadioInfo(const otMultiRadioNeighborInfo &aMultiRadioInfo) in OutputMultiRadioInfo()
4405 template <> otError Interpreter::Process<Cmd("neighbor")>(Arg aArgs[]) in Process()
4628 template <> otError Interpreter::Process<Cmd("netstat")>(Arg aArgs[]) in Process()
4651 template <> otError Interpreter::Process<Cmd("service")>(Arg aArgs[]) in Process()
4754 template <> otError Interpreter::Process<Cmd("netdata")>(Arg aArgs[]) { return mNetworkData.Process… in Process()
4778 template <> otError Interpreter::Process<Cmd("networkidtimeout")>(Arg aArgs[]) in Process()
4784 template <> otError Interpreter::Process<Cmd("networkkey")>(Arg aArgs[]) in Process()
4828 template <> otError Interpreter::Process<Cmd("networkkeyref")>(Arg aArgs[]) in Process()
4859 template <> otError Interpreter::Process<Cmd("networkname")>(Arg aArgs[]) in Process()
4877 template <> otError Interpreter::Process<Cmd("networktime")>(Arg aArgs[]) in Process()
4959 template <> otError Interpreter::Process<Cmd("nexthop")>(Arg aArgs[]) in Process()
5058 template <> otError Interpreter::Process<Cmd("meshdiag")>(Arg aArgs[]) { return mMeshDiag.Process(a… in Process()
5064 template <> otError Interpreter::Process<Cmd("panid")>(Arg aArgs[]) in Process()
5099 template <> otError Interpreter::Process<Cmd("parent")>(Arg aArgs[]) in Process()
5183 template <> otError Interpreter::Process<Cmd("parentpriority")>(Arg aArgs[]) in Process()
5190 template <> otError Interpreter::Process<Cmd("routeridrange")>(Arg *aArgs) in Process()
5250 template <> otError Interpreter::Process<Cmd("ping")>(Arg aArgs[]) { return mPing.Process(aArgs); } in Process()
5263 template <> otError Interpreter::Process<Cmd("platform")>(Arg aArgs[]) in Process()
5286 template <> otError Interpreter::Process<Cmd("pollperiod")>(Arg aArgs[]) in Process()
5291 template <> otError Interpreter::Process<Cmd("promiscuous")>(Arg aArgs[]) in Process()
5348 void Interpreter::HandleLinkPcapReceive(const otRadioFrame *aFrame, bool aIsTx, void *aContext) in HandleLinkPcapReceive()
5350 static_cast<Interpreter *>(aContext)->HandleLinkPcapReceive(aFrame, aIsTx); in HandleLinkPcapReceive()
5353 void Interpreter::HandleLinkPcapReceive(const otRadioFrame *aFrame, bool aIsTx) in HandleLinkPcapReceive()
5371 template <> otError Interpreter::Process<Cmd("prefix")>(Arg aArgs[]) in Process()
5498 template <> otError Interpreter::Process<Cmd("preferrouterid")>(Arg aArgs[]) in Process()
5505 template <> otError Interpreter::Process<Cmd("radiofilter")>(Arg aArgs[]) in Process()
5515 void Interpreter::OutputRadioStatsTime(const char *aTimeName, uint64_t aTimeUs, uint64_t aTotalTime… in OutputRadioStatsTime()
5525 template <> otError Interpreter::Process<Cmd("radio")>(Arg aArgs[]) in Process()
5612 template <> otError Interpreter::Process<Cmd("rcp")>(Arg aArgs[]) in Process()
5651 template <> otError Interpreter::Process<Cmd("region")>(Arg aArgs[]) in Process()
5697 template <> otError Interpreter::Process<Cmd("releaserouterid")>(Arg aArgs[]) in Process()
5713 template <> otError Interpreter::Process<Cmd("rloc16")>(Arg aArgs[]) in Process()
5724 template <> otError Interpreter::Process<Cmd("route")>(Arg aArgs[]) in Process()
5800 template <> otError Interpreter::Process<Cmd("router")>(Arg aArgs[]) in Process()
5958 template <> otError Interpreter::Process<Cmd("routerdowngradethreshold")>(Arg aArgs[]) in Process()
5974 template <> otError Interpreter::Process<Cmd("routereligible")>(Arg aArgs[]) in Process()
6011 template <> otError Interpreter::Process<Cmd("routerselectionjitter")>(Arg aArgs[]) in Process()
6032 template <> otError Interpreter::Process<Cmd("routerupgradethreshold")>(Arg aArgs[]) in Process()
6053 template <> otError Interpreter::Process<Cmd("childrouterlinks")>(Arg aArgs[]) in Process()
6059 template <> otError Interpreter::Process<Cmd("scan")>(Arg aArgs[]) in Process()
6132 &Interpreter::HandleEnergyScanResult, this)); in Process()
6157 &Interpreter::HandleActiveScanResult, this)); in Process()
6166 void Interpreter::HandleActiveScanResult(otActiveScanResult *aResult, void *aContext) in HandleActiveScanResult()
6168 static_cast<Interpreter *>(aContext)->HandleActiveScanResult(aResult); in HandleActiveScanResult()
6171 void Interpreter::HandleActiveScanResult(otActiveScanResult *aResult) in HandleActiveScanResult()
6198 void Interpreter::HandleEnergyScanResult(otEnergyScanResult *aResult, void *aContext) in HandleEnergyScanResult()
6200 static_cast<Interpreter *>(aContext)->HandleEnergyScanResult(aResult); in HandleEnergyScanResult()
6203 void Interpreter::HandleEnergyScanResult(otEnergyScanResult *aResult) in HandleEnergyScanResult()
6229 template <> otError Interpreter::Process<Cmd("singleton")>(Arg aArgs[]) in Process()
6239 template <> otError Interpreter::Process<Cmd("sntp")>(Arg aArgs[]) in Process()
6289 …SuccessOrExit(error = otSntpClientQuery(GetInstancePtr(), &query, &Interpreter::HandleSntpResponse… in Process()
6303 void Interpreter::HandleSntpResponse(void *aContext, uint64_t aTime, otError aResult) in HandleSntpResponse()
6305 static_cast<Interpreter *>(aContext)->HandleSntpResponse(aTime, aResult); in HandleSntpResponse()
6308 void Interpreter::HandleSntpResponse(uint64_t aTime, otError aResult) in HandleSntpResponse()
6329 template <> otError Interpreter::Process<Cmd("srp")>(Arg aArgs[]) in Process()
6364 template <> otError Interpreter::Process<Cmd("state")>(Arg aArgs[]) in Process()
6427 template <> otError Interpreter::Process<Cmd("thread")>(Arg aArgs[]) in Process()
6481 template <> otError Interpreter::Process<Cmd("timeinqueue")>(Arg aArgs[]) in Process()
6613 template <> otError Interpreter::Process<Cmd("dataset")>(Arg aArgs[]) { return mDataset.Process(aAr… in Process()
6632 template <> otError Interpreter::Process<Cmd("txpower")>(Arg aArgs[]) in Process()
6693 template <> otError Interpreter::Process<Cmd("debug")>(Arg aArgs[]) in Process()
6775 template <> otError Interpreter::Process<Cmd("tcat")>(Arg aArgs[]) { return mTcat.Process(aArgs); } in Process()
6779 template <> otError Interpreter::Process<Cmd("tcp")>(Arg aArgs[]) { return mTcp.Process(aArgs); } in Process()
6782 template <> otError Interpreter::Process<Cmd("udp")>(Arg aArgs[]) { return mUdp.Process(aArgs); } in Process()
6784 template <> otError Interpreter::Process<Cmd("unsecureport")>(Arg aArgs[]) in Process()
6866 template <> otError Interpreter::Process<Cmd("uptime")>(Arg aArgs[]) in Process()
6912 template <> otError Interpreter::Process<Cmd("commissioner")>(Arg aArgs[]) { return mCommissioner.P… in Process()
6916 template <> otError Interpreter::Process<Cmd("joiner")>(Arg aArgs[]) { return mJoiner.Process(aArgs… in Process()
6930 template <> otError Interpreter::Process<Cmd("joinerport")>(Arg aArgs[]) in Process()
6947 template <> otError Interpreter::Process<Cmd("macfilter")>(Arg aArgs[]) { return mMacFilter.Process… in Process()
6950 template <> otError Interpreter::Process<Cmd("mac")>(Arg aArgs[]) in Process()
7082 template <> otError Interpreter::Process<Cmd("trel")>(Arg aArgs[]) in Process()
7268 void Interpreter::OutputTrelCounters(const otTrelCounters &aCounters) in OutputTrelCounters()
7282 template <> otError Interpreter::Process<Cmd("vendor")>(Arg aArgs[]) in Process()
7412 template <> otError Interpreter::Process<Cmd("networkdiagnostic")>(Arg aArgs[]) in Process()
7493 … &Interpreter::HandleDiagnosticGetResponse, this)); in Process()
7524 void Interpreter::HandleDiagnosticGetResponse(otError aError, in HandleDiagnosticGetResponse()
7529 static_cast<Interpreter *>(aContext)->HandleDiagnosticGetResponse( in HandleDiagnosticGetResponse()
7533 void Interpreter::HandleDiagnosticGetResponse(otError aError, in HandleDiagnosticGetResponse()
7666 void Interpreter::OutputMode(uint8_t aIndentSize, const otLinkModeConfig &aMode) in OutputMode()
7673 void Interpreter::OutputConnectivity(uint8_t aIndentSize, const otNetworkDiagConnectivity &aConnect… in OutputConnectivity()
7685 void Interpreter::OutputRoute(uint8_t aIndentSize, const otNetworkDiagRoute &aRoute) in OutputRoute()
7698 void Interpreter::OutputRouteData(uint8_t aIndentSize, const otNetworkDiagRouteData &aRouteData) in OutputRouteData()
7707 void Interpreter::OutputLeaderData(uint8_t aIndentSize, const otLeaderData &aLeaderData) in OutputLeaderData()
7716 void Interpreter::OutputNetworkDiagMacCounters(uint8_t aIndentSize, const otNetworkDiagMacCounters … in OutputNetworkDiagMacCounters()
7742 void Interpreter::OutputNetworkDiagMleCounters(uint8_t aIndentSize, const otNetworkDiagMleCounters … in OutputNetworkDiagMleCounters()
7789 void Interpreter::OutputChildTableEntry(uint8_t aIndentSize, const otNetworkDiagChildEntry &aChildE… in OutputChildTableEntry()
7801 void Interpreter::HandleDiscoveryRequest(const otThreadDiscoveryRequestInfo *aInfo, void *aContext) in HandleDiscoveryRequest()
7803 static_cast<Interpreter *>(aContext)->HandleDiscoveryRequest(*aInfo); in HandleDiscoveryRequest()
7806 void Interpreter::HandleDiscoveryRequest(const otThreadDiscoveryRequestInfo &aInfo) in HandleDiscoveryRequest()
7815 void Interpreter::HandleIp6Receive(otMessage *aMessage, void *aContext) in HandleIp6Receive()
7825 template <> otError Interpreter::Process<Cmd("verhoeff")>(Arg aArgs[]) in Process()
7875 template <> otError Interpreter::Process<Cmd("wakeup")>(Arg aArgs[]) in Process()
8003 void Interpreter::HandleWakeupResult(otError aError, void *aContext) in HandleWakeupResult()
8005 static_cast<Interpreter *>(aContext)->HandleWakeupResult(aError); in HandleWakeupResult()
8008 void Interpreter::HandleWakeupResult(otError aError) { OutputResult(aError); } in HandleWakeupResult()
8013 void Interpreter::Initialize(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext) in Initialize()
8017 Interpreter::sInterpreter = new (&sInterpreterRaw) Interpreter(instance, aCallback, aContext); in Initialize()
8020 void Interpreter::OutputPrompt(void) in OutputPrompt()
8036 void Interpreter::HandleTimer(Timer &aTimer) in HandleTimer()
8038 … static_cast<Interpreter *>(static_cast<TimerMilliContext &>(aTimer).GetContext())->HandleTimer(); in HandleTimer()
8041 void Interpreter::HandleTimer(void) in HandleTimer()
8056 void Interpreter::SetCommandTimeout(uint32_t aTimeoutMilli) in SetCommandTimeout()
8062 otError Interpreter::ProcessCommand(Arg aArgs[]) in ProcessCommand()
8066 aCommandString, &Interpreter::Process<Cmd(aCommandString)> \ in ProcessCommand()
8363 Interpreter::Initialize(aInstance, aCallback, aContext); in otCliInit()
8370 extern "C" void otCliInputLine(char *aBuf) { Interpreter::GetInterpreter().ProcessLine(aBuf); } in otCliInputLine()
8374 return Interpreter::GetInterpreter().SetUserCommands(aUserCommands, aLength, aContext); in otCliSetUserCommands()
8379 Interpreter::GetInterpreter().OutputBytes(aBytes, aLength); in otCliOutputBytes()
8386 Interpreter::GetInterpreter().OutputFormatV(aFmt, aAp); in otCliOutputFormat()
8390 extern "C" void otCliAppendResult(otError aError) { Interpreter::GetInterpreter().OutputResult(aErr… in otCliAppendResult()
8397 VerifyOrExit(Interpreter::IsInitialized()); in otCliPlatLogv()
8401 Interpreter::GetInterpreter().SetEmittingCommandOutput(false); in otCliPlatLogv()
8402 Interpreter::GetInterpreter().OutputFormatV(aFormat, aArgs); in otCliPlatLogv()
8403 Interpreter::GetInterpreter().OutputNewLine(); in otCliPlatLogv()
8404 Interpreter::GetInterpreter().SetEmittingCommandOutput(true); in otCliPlatLogv()