Lines Matching refs:Interpreter

100 Interpreter *Interpreter::sInterpreter = nullptr;
101 static OT_DEFINE_ALIGNED_VAR(sInterpreterRaw, sizeof(Interpreter), uint64_t);
103 Interpreter::Interpreter(Instance *aInstance, otCliOutputCallback aCallback, void *aContext) in Interpreter() function in ot::Cli::Interpreter
170 otIp6SetReceiveCallback(GetInstancePtr(), &Interpreter::HandleIp6Receive, this); in Interpreter()
177 void Interpreter::OutputResult(otError aError) in OutputResult()
211 template <> otError Interpreter::Process<Cmd("diag")>(Arg aArgs[]) in Process()
228 template <> otError Interpreter::Process<Cmd("version")>(Arg aArgs[]) in Process()
269 template <> otError Interpreter::Process<Cmd("reset")>(Arg aArgs[]) in Process()
301 void Interpreter::ProcessLine(char *aBuf) in ProcessLine()
346 otError Interpreter::ProcessUserCommands(Arg aArgs[]) in ProcessUserCommands()
368 otError Interpreter::SetUserCommands(const otCliCommand *aCommands, uint8_t aLength, void *aContext) in SetUserCommands()
391 template <> otError Interpreter::Process<Cmd("history")>(Arg aArgs[]) { return mHistory.Process(aAr… in Process()
395 template <> otError Interpreter::Process<Cmd("ba")>(Arg aArgs[]) in Process()
577 void Interpreter::HandleBorderAgentEphemeralKeyStateChange(void *aContext) in HandleBorderAgentEphemeralKeyStateChange()
579 reinterpret_cast<Interpreter *>(aContext)->HandleBorderAgentEphemeralKeyStateChange(); in HandleBorderAgentEphemeralKeyStateChange()
582 void Interpreter::HandleBorderAgentEphemeralKeyStateChange(void) in HandleBorderAgentEphemeralKeyStateChange()
600 template <> otError Interpreter::Process<Cmd("br")>(Arg aArgs[]) { return mBr.Process(aArgs); } in Process()
604 template <> otError Interpreter::Process<Cmd("nat64")>(Arg aArgs[]) in Process()
887 void Interpreter::OutputNat64Counters(const otNat64Counters &aCounters) in OutputNat64Counters()
902 template <> otError Interpreter::Process<Cmd("bbr")>(Arg aArgs[]) { return mBbr.Process(aArgs); } in Process()
914 template <> otError Interpreter::Process<Cmd("domainname")>(Arg aArgs[]) in Process()
931 template <> otError Interpreter::Process<Cmd("dua")>(Arg aArgs[]) in Process()
1027 template <> otError Interpreter::Process<Cmd("bufferinfo")>(Arg aArgs[]) in Process()
1104 template <> otError Interpreter::Process<Cmd("ccathreshold")>(Arg aArgs[]) in Process()
1125 template <> otError Interpreter::Process<Cmd("ccm")>(Arg aArgs[]) in Process()
1130 template <> otError Interpreter::Process<Cmd("test")>(Arg aArgs[]) in Process()
1182 template <> otError Interpreter::Process<Cmd("tvcheck")>(Arg aArgs[]) in Process()
1204 template <> otError Interpreter::Process<Cmd("channel")>(Arg aArgs[]) in Process()
1602 template <> otError Interpreter::Process<Cmd("child")>(Arg aArgs[]) in Process()
1738 template <> otError Interpreter::Process<Cmd("childip")>(Arg aArgs[]) in Process()
1825 template <> otError Interpreter::Process<Cmd("childmax")>(Arg aArgs[]) in Process()
1841 template <> otError Interpreter::Process<Cmd("childsupervision")>(Arg aArgs[]) in Process()
1918 template <> otError Interpreter::Process<Cmd("childtimeout")>(Arg aArgs[]) in Process()
1933 template <> otError Interpreter::Process<Cmd("coap")>(Arg aArgs[]) { return mCoap.Process(aArgs); } in Process()
1937 template <> otError Interpreter::Process<Cmd("coaps")>(Arg aArgs[]) { return mCoapSecure.Process(aA… in Process()
1941 template <> otError Interpreter::Process<Cmd("coex")>(Arg aArgs[]) in Process()
2028 template <> otError Interpreter::Process<Cmd("contextreusedelay")>(Arg aArgs[]) in Process()
2035 void Interpreter::OutputBorderRouterCounters(void) in OutputBorderRouterCounters()
2070 template <> otError Interpreter::Process<Cmd("counters")>(Arg aArgs[]) in Process()
2421 template <> otError Interpreter::Process<Cmd("csl")>(Arg aArgs[]) in Process()
2499 template <> otError Interpreter::Process<Cmd("delaytimermin")>(Arg aArgs[]) in Process()
2557 template <> otError Interpreter::Process<Cmd("detach")>(Arg aArgs[]) in Process()
2587 void Interpreter::HandleDetachGracefullyResult(void *aContext) in HandleDetachGracefullyResult()
2589 static_cast<Interpreter *>(aContext)->HandleDetachGracefullyResult(); in HandleDetachGracefullyResult()
2592 void Interpreter::HandleDetachGracefullyResult(void) in HandleDetachGracefullyResult()
2614 template <> otError Interpreter::Process<Cmd("discover")>(Arg aArgs[]) in Process()
2640 callback = &Interpreter::HandleDiscoveryRequest; in Process()
2659 &Interpreter::HandleActiveScanResult, this)); in Process()
2678 template <> otError Interpreter::Process<Cmd("dns")>(Arg aArgs[]) { return mDns.Process(aArgs); } in Process()
2682 template <> otError Interpreter::Process<Cmd("mdns")>(Arg aArgs[]) { return mMdns.Process(aArgs); } in Process()
2686 void Interpreter::OutputEidCacheEntry(const otCacheEntryInfo &aEntry) in OutputEidCacheEntry()
2738 template <> otError Interpreter::Process<Cmd("eidcache")>(Arg aArgs[]) in Process()
2768 template <> otError Interpreter::Process<Cmd("eui64")>(Arg aArgs[]) in Process()
2784 template <> otError Interpreter::Process<Cmd("extaddr")>(Arg aArgs[]) in Process()
2825 template <> otError Interpreter::Process<Cmd("log")>(Arg aArgs[]) in Process()
2897 template <> otError Interpreter::Process<Cmd("extpanid")>(Arg aArgs[]) in Process()
2948 template <> otError Interpreter::Process<Cmd("factoryreset")>(Arg aArgs[]) in Process()
2958 template <> otError Interpreter::Process<Cmd("fake")>(Arg aArgs[]) in Process()
3005 template <> otError Interpreter::Process<Cmd("fem")>(Arg aArgs[]) in Process()
3072 template <> otError Interpreter::Process<Cmd("ifconfig")>(Arg aArgs[]) in Process()
3133 template <> otError Interpreter::Process<Cmd("instanceid")>(Arg aArgs[]) in Process()
3156 template <> otError Interpreter::Process<Cmd("ipaddr")>(Arg aArgs[]) in Process()
3300 template <> otError Interpreter::Process<Cmd("ipmaddr")>(Arg aArgs[]) in Process()
3434 template <> otError Interpreter::Process<Cmd("keysequence")>(Arg aArgs[]) in Process()
3506 template <> otError Interpreter::Process<Cmd("leaderdata")>(Arg aArgs[]) in Process()
3526 template <> otError Interpreter::Process<Cmd("partitionid")>(Arg aArgs[]) in Process()
3583 template <> otError Interpreter::Process<Cmd("leaderweight")>(Arg aArgs[]) in Process()
3599 template <> otError Interpreter::Process<Cmd("deviceprops")>(Arg aArgs[]) in Process()
3703 template <> otError Interpreter::Process<Cmd("linkmetrics")>(Arg aArgs[]) { return mLinkMetrics.Pro… in Process()
3706 template <> otError Interpreter::Process<Cmd("linkmetricsmgr")>(Arg aArgs[]) in Process()
3772 template <> otError Interpreter::Process<Cmd("locate")>(Arg aArgs[]) in Process()
3833 void Interpreter::HandleLocateResult(void *aContext, in HandleLocateResult()
3838 static_cast<Interpreter *>(aContext)->HandleLocateResult(aError, aMeshLocalAddress, aRloc16); in HandleLocateResult()
3841 void Interpreter::HandleLocateResult(otError aError, const otIp6Address *aMeshLocalAddress, uint16_… in HandleLocateResult()
3862 template <> otError Interpreter::Process<Cmd("pskc")>(Arg aArgs[]) in Process()
3929 template <> otError Interpreter::Process<Cmd("pskcref")>(Arg aArgs[]) in Process()
3990 template <> otError Interpreter::Process<Cmd("mleadvimax")>(Arg aArgs[]) in Process()
4011 template <> otError Interpreter::Process<Cmd("mliid")>(Arg aArgs[]) in Process()
4058 template <> otError Interpreter::Process<Cmd("mlr")>(Arg aArgs[]) in Process()
4092Interpreter::HandleMlrRegResult, this)); in Process()
4101 void Interpreter::HandleMlrRegResult(void *aContext, in HandleMlrRegResult()
4107 …static_cast<Interpreter *>(aContext)->HandleMlrRegResult(aError, aMlrStatus, aFailedAddresses, aFa… in HandleMlrRegResult()
4110 void Interpreter::HandleMlrRegResult(otError aError, in HandleMlrRegResult()
4130 template <> otError Interpreter::Process<Cmd("mode")>(Arg aArgs[]) in Process()
4205 template <> otError Interpreter::Process<Cmd("multiradio")>(Arg aArgs[]) in Process()
4293 void Interpreter::OutputMultiRadioInfo(const otMultiRadioNeighborInfo &aMultiRadioInfo) in OutputMultiRadioInfo()
4315 template <> otError Interpreter::Process<Cmd("neighbor")>(Arg aArgs[]) in Process()
4538 template <> otError Interpreter::Process<Cmd("netstat")>(Arg aArgs[]) in Process()
4561 template <> otError Interpreter::Process<Cmd("service")>(Arg aArgs[]) in Process()
4657 template <> otError Interpreter::Process<Cmd("netdata")>(Arg aArgs[]) { return mNetworkData.Process… in Process()
4681 template <> otError Interpreter::Process<Cmd("networkidtimeout")>(Arg aArgs[]) in Process()
4687 template <> otError Interpreter::Process<Cmd("networkkey")>(Arg aArgs[]) in Process()
4731 template <> otError Interpreter::Process<Cmd("networkkeyref")>(Arg aArgs[]) in Process()
4762 template <> otError Interpreter::Process<Cmd("networkname")>(Arg aArgs[]) in Process()
4780 template <> otError Interpreter::Process<Cmd("networktime")>(Arg aArgs[]) in Process()
4862 template <> otError Interpreter::Process<Cmd("nexthop")>(Arg aArgs[]) in Process()
4961 template <> otError Interpreter::Process<Cmd("meshdiag")>(Arg aArgs[]) in Process()
5173 void Interpreter::HandleMeshDiagDiscoverDone(otError aError, otMeshDiagRouterInfo *aRouterInfo, voi… in HandleMeshDiagDiscoverDone()
5175 reinterpret_cast<Interpreter *>(aContext)->HandleMeshDiagDiscoverDone(aError, aRouterInfo); in HandleMeshDiagDiscoverDone()
5178 void Interpreter::HandleMeshDiagDiscoverDone(otError aError, otMeshDiagRouterInfo *aRouterInfo) in HandleMeshDiagDiscoverDone()
5294 void Interpreter::HandleMeshDiagQueryChildTableResult(otError aError, in HandleMeshDiagQueryChildTableResult()
5298 …reinterpret_cast<Interpreter *>(aContext)->HandleMeshDiagQueryChildTableResult(aError, aChildEntry… in HandleMeshDiagQueryChildTableResult()
5301 void Interpreter::HandleMeshDiagQueryChildTableResult(otError aError, const otMeshDiagChildEntry *a… in HandleMeshDiagQueryChildTableResult()
5339 void Interpreter::HandleMeshDiagQueryRouterNeighborTableResult(otError … in HandleMeshDiagQueryRouterNeighborTableResult()
5343 …reinterpret_cast<Interpreter *>(aContext)->HandleMeshDiagQueryRouterNeighborTableResult(aError, aN… in HandleMeshDiagQueryRouterNeighborTableResult()
5346 void Interpreter::HandleMeshDiagQueryRouterNeighborTableResult(otError … in HandleMeshDiagQueryRouterNeighborTableResult()
5375 void Interpreter::HandleMeshDiagQueryChildIp6Addrs(otError aError, in HandleMeshDiagQueryChildIp6Addrs()
5380 …reinterpret_cast<Interpreter *>(aContext)->HandleMeshDiagQueryChildIp6Addrs(aError, aChildRloc16, … in HandleMeshDiagQueryChildIp6Addrs()
5383 void Interpreter::HandleMeshDiagQueryChildIp6Addrs(otError aError, in HandleMeshDiagQueryChildIp6Addrs()
5408 template <> otError Interpreter::Process<Cmd("panid")>(Arg aArgs[]) in Process()
5443 template <> otError Interpreter::Process<Cmd("parent")>(Arg aArgs[]) in Process()
5527 template <> otError Interpreter::Process<Cmd("parentpriority")>(Arg aArgs[]) in Process()
5534 template <> otError Interpreter::Process<Cmd("routeridrange")>(Arg *aArgs) in Process()
5594 template <> otError Interpreter::Process<Cmd("ping")>(Arg aArgs[]) { return mPing.Process(aArgs); } in Process()
5607 template <> otError Interpreter::Process<Cmd("platform")>(Arg aArgs[]) in Process()
5630 template <> otError Interpreter::Process<Cmd("pollperiod")>(Arg aArgs[]) in Process()
5635 template <> otError Interpreter::Process<Cmd("promiscuous")>(Arg aArgs[]) in Process()
5692 void Interpreter::HandleLinkPcapReceive(const otRadioFrame *aFrame, bool aIsTx, void *aContext) in HandleLinkPcapReceive()
5694 static_cast<Interpreter *>(aContext)->HandleLinkPcapReceive(aFrame, aIsTx); in HandleLinkPcapReceive()
5697 void Interpreter::HandleLinkPcapReceive(const otRadioFrame *aFrame, bool aIsTx) in HandleLinkPcapReceive()
5715 template <> otError Interpreter::Process<Cmd("prefix")>(Arg aArgs[]) in Process()
5842 template <> otError Interpreter::Process<Cmd("preferrouterid")>(Arg aArgs[]) in Process()
5849 template <> otError Interpreter::Process<Cmd("radiofilter")>(Arg aArgs[]) in Process()
5859 void Interpreter::OutputRadioStatsTime(const char *aTimeName, uint64_t aTimeUs, uint64_t aTotalTime… in OutputRadioStatsTime()
5869 template <> otError Interpreter::Process<Cmd("radio")>(Arg aArgs[]) in Process()
5956 template <> otError Interpreter::Process<Cmd("rcp")>(Arg aArgs[]) in Process()
5995 template <> otError Interpreter::Process<Cmd("region")>(Arg aArgs[]) in Process()
6041 template <> otError Interpreter::Process<Cmd("releaserouterid")>(Arg aArgs[]) in Process()
6057 template <> otError Interpreter::Process<Cmd("rloc16")>(Arg aArgs[]) in Process()
6068 template <> otError Interpreter::Process<Cmd("route")>(Arg aArgs[]) in Process()
6144 template <> otError Interpreter::Process<Cmd("router")>(Arg aArgs[]) in Process()
6302 template <> otError Interpreter::Process<Cmd("routerdowngradethreshold")>(Arg aArgs[]) in Process()
6318 template <> otError Interpreter::Process<Cmd("routereligible")>(Arg aArgs[]) in Process()
6355 template <> otError Interpreter::Process<Cmd("routerselectionjitter")>(Arg aArgs[]) in Process()
6376 template <> otError Interpreter::Process<Cmd("routerupgradethreshold")>(Arg aArgs[]) in Process()
6397 template <> otError Interpreter::Process<Cmd("childrouterlinks")>(Arg aArgs[]) in Process()
6403 template <> otError Interpreter::Process<Cmd("scan")>(Arg aArgs[]) in Process()
6476 &Interpreter::HandleEnergyScanResult, this)); in Process()
6501 &Interpreter::HandleActiveScanResult, this)); in Process()
6510 void Interpreter::HandleActiveScanResult(otActiveScanResult *aResult, void *aContext) in HandleActiveScanResult()
6512 static_cast<Interpreter *>(aContext)->HandleActiveScanResult(aResult); in HandleActiveScanResult()
6515 void Interpreter::HandleActiveScanResult(otActiveScanResult *aResult) in HandleActiveScanResult()
6542 void Interpreter::HandleEnergyScanResult(otEnergyScanResult *aResult, void *aContext) in HandleEnergyScanResult()
6544 static_cast<Interpreter *>(aContext)->HandleEnergyScanResult(aResult); in HandleEnergyScanResult()
6547 void Interpreter::HandleEnergyScanResult(otEnergyScanResult *aResult) in HandleEnergyScanResult()
6573 template <> otError Interpreter::Process<Cmd("singleton")>(Arg aArgs[]) in Process()
6583 template <> otError Interpreter::Process<Cmd("sntp")>(Arg aArgs[]) in Process()
6633 …SuccessOrExit(error = otSntpClientQuery(GetInstancePtr(), &query, &Interpreter::HandleSntpResponse… in Process()
6647 void Interpreter::HandleSntpResponse(void *aContext, uint64_t aTime, otError aResult) in HandleSntpResponse()
6649 static_cast<Interpreter *>(aContext)->HandleSntpResponse(aTime, aResult); in HandleSntpResponse()
6652 void Interpreter::HandleSntpResponse(uint64_t aTime, otError aResult) in HandleSntpResponse()
6673 template <> otError Interpreter::Process<Cmd("srp")>(Arg aArgs[]) in Process()
6708 template <> otError Interpreter::Process<Cmd("state")>(Arg aArgs[]) in Process()
6771 template <> otError Interpreter::Process<Cmd("thread")>(Arg aArgs[]) in Process()
6825 template <> otError Interpreter::Process<Cmd("timeinqueue")>(Arg aArgs[]) in Process()
6957 template <> otError Interpreter::Process<Cmd("dataset")>(Arg aArgs[]) { return mDataset.Process(aAr… in Process()
6976 template <> otError Interpreter::Process<Cmd("txpower")>(Arg aArgs[]) in Process()
7037 template <> otError Interpreter::Process<Cmd("debug")>(Arg aArgs[]) in Process()
7119 template <> otError Interpreter::Process<Cmd("tcat")>(Arg aArgs[]) { return mTcat.Process(aArgs); } in Process()
7123 template <> otError Interpreter::Process<Cmd("tcp")>(Arg aArgs[]) { return mTcp.Process(aArgs); } in Process()
7126 template <> otError Interpreter::Process<Cmd("udp")>(Arg aArgs[]) { return mUdp.Process(aArgs); } in Process()
7128 template <> otError Interpreter::Process<Cmd("unsecureport")>(Arg aArgs[]) in Process()
7210 template <> otError Interpreter::Process<Cmd("uptime")>(Arg aArgs[]) in Process()
7256 template <> otError Interpreter::Process<Cmd("commissioner")>(Arg aArgs[]) { return mCommissioner.P… in Process()
7260 template <> otError Interpreter::Process<Cmd("joiner")>(Arg aArgs[]) { return mJoiner.Process(aArgs… in Process()
7274 template <> otError Interpreter::Process<Cmd("joinerport")>(Arg aArgs[]) in Process()
7291 template <> otError Interpreter::Process<Cmd("macfilter")>(Arg aArgs[]) { return mMacFilter.Process… in Process()
7294 template <> otError Interpreter::Process<Cmd("mac")>(Arg aArgs[]) in Process()
7412 template <> otError Interpreter::Process<Cmd("trel")>(Arg aArgs[]) in Process()
7584 void Interpreter::OutputTrelCounters(const otTrelCounters &aCounters) in OutputTrelCounters()
7598 template <> otError Interpreter::Process<Cmd("vendor")>(Arg aArgs[]) in Process()
7728 template <> otError Interpreter::Process<Cmd("networkdiagnostic")>(Arg aArgs[]) in Process()
7809 … &Interpreter::HandleDiagnosticGetResponse, this)); in Process()
7840 void Interpreter::HandleDiagnosticGetResponse(otError aError, in HandleDiagnosticGetResponse()
7845 static_cast<Interpreter *>(aContext)->HandleDiagnosticGetResponse( in HandleDiagnosticGetResponse()
7849 void Interpreter::HandleDiagnosticGetResponse(otError aError, in HandleDiagnosticGetResponse()
7982 void Interpreter::OutputMode(uint8_t aIndentSize, const otLinkModeConfig &aMode) in OutputMode()
7989 void Interpreter::OutputConnectivity(uint8_t aIndentSize, const otNetworkDiagConnectivity &aConnect… in OutputConnectivity()
8001 void Interpreter::OutputRoute(uint8_t aIndentSize, const otNetworkDiagRoute &aRoute) in OutputRoute()
8014 void Interpreter::OutputRouteData(uint8_t aIndentSize, const otNetworkDiagRouteData &aRouteData) in OutputRouteData()
8023 void Interpreter::OutputLeaderData(uint8_t aIndentSize, const otLeaderData &aLeaderData) in OutputLeaderData()
8032 void Interpreter::OutputNetworkDiagMacCounters(uint8_t aIndentSize, const otNetworkDiagMacCounters … in OutputNetworkDiagMacCounters()
8058 void Interpreter::OutputNetworkDiagMleCounters(uint8_t aIndentSize, const otNetworkDiagMleCounters … in OutputNetworkDiagMleCounters()
8105 void Interpreter::OutputChildTableEntry(uint8_t aIndentSize, const otNetworkDiagChildEntry &aChildE… in OutputChildTableEntry()
8117 void Interpreter::HandleDiscoveryRequest(const otThreadDiscoveryRequestInfo *aInfo, void *aContext) in HandleDiscoveryRequest()
8119 static_cast<Interpreter *>(aContext)->HandleDiscoveryRequest(*aInfo); in HandleDiscoveryRequest()
8122 void Interpreter::HandleDiscoveryRequest(const otThreadDiscoveryRequestInfo &aInfo) in HandleDiscoveryRequest()
8131 void Interpreter::HandleIp6Receive(otMessage *aMessage, void *aContext) in HandleIp6Receive()
8141 template <> otError Interpreter::Process<Cmd("verhoeff")>(Arg aArgs[]) in Process()
8192 void Interpreter::Initialize(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext) in Initialize()
8196 Interpreter::sInterpreter = new (&sInterpreterRaw) Interpreter(instance, aCallback, aContext); in Initialize()
8199 void Interpreter::OutputPrompt(void) in OutputPrompt()
8215 void Interpreter::HandleTimer(Timer &aTimer) in HandleTimer()
8217 … static_cast<Interpreter *>(static_cast<TimerMilliContext &>(aTimer).GetContext())->HandleTimer(); in HandleTimer()
8220 void Interpreter::HandleTimer(void) in HandleTimer()
8235 void Interpreter::SetCommandTimeout(uint32_t aTimeoutMilli) in SetCommandTimeout()
8241 otError Interpreter::ProcessCommand(Arg aArgs[]) in ProcessCommand()
8245 aCommandString, &Interpreter::Process<Cmd(aCommandString)> \ in ProcessCommand()
8534 Interpreter::Initialize(aInstance, aCallback, aContext); in otCliInit()
8541 extern "C" void otCliInputLine(char *aBuf) { Interpreter::GetInterpreter().ProcessLine(aBuf); } in otCliInputLine()
8545 return Interpreter::GetInterpreter().SetUserCommands(aUserCommands, aLength, aContext); in otCliSetUserCommands()
8550 Interpreter::GetInterpreter().OutputBytes(aBytes, aLength); in otCliOutputBytes()
8557 Interpreter::GetInterpreter().OutputFormatV(aFmt, aAp); in otCliOutputFormat()
8561 extern "C" void otCliAppendResult(otError aError) { Interpreter::GetInterpreter().OutputResult(aErr… in otCliAppendResult()
8568 VerifyOrExit(Interpreter::IsInitialized()); in otCliPlatLogv()
8572 Interpreter::GetInterpreter().SetEmittingCommandOutput(false); in otCliPlatLogv()
8573 Interpreter::GetInterpreter().OutputFormatV(aFormat, aArgs); in otCliPlatLogv()
8574 Interpreter::GetInterpreter().OutputNewLine(); in otCliPlatLogv()
8575 Interpreter::GetInterpreter().SetEmittingCommandOutput(true); in otCliPlatLogv()