Home
last modified time | relevance | path

Searched refs:Arg (Results 1 – 25 of 48) sorted by relevance

12

/openthread-latest/src/cli/
Dcli_dataset.hpp72 otError Process(Arg aArgs[]);
90 otError (Dataset::*mParse)(Arg *&aArgs, otOperationalDataset &aDataset);
108 otError ParseActiveTimestamp(Arg *&aArgs, otOperationalDataset &aDataset);
109 otError ParseChannel(Arg *&aArgs, otOperationalDataset &aDataset);
110 otError ParseChannelMask(Arg *&aArgs, otOperationalDataset &aDataset);
111 otError ParseDelay(Arg *&aArgs, otOperationalDataset &aDataset);
112 otError ParseExtendedPanId(Arg *&aArgs, otOperationalDataset &aDataset);
113 otError ParseMeshLocalPrefix(Arg *&aArgs, otOperationalDataset &aDataset);
114 otError ParseNetworkKey(Arg *&aArgs, otOperationalDataset &aDataset);
115 otError ParseNetworkName(Arg *&aArgs, otOperationalDataset &aDataset);
[all …]
Dcli_utils.hpp124 typedef ot::Utils::CmdLineParser::Arg Arg; ///< An argument typedef in ot::Cli::Utils
134 typedef otError (Cli::*Handler)(Arg aArgs[]); ///< The handler method pointer type.
572 static otError ParseEnableOrDisable(const Arg &aArg, bool &aEnable);
576 template <typename ValueType> otError ProcessGet(Arg aArgs[], GetHandler<ValueType> aGetHandler) in ProcessGet()
593 template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandler<ValueType> aSetHandler) in ProcessSet()
607 …template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandlerFailable<ValueType> aSetHa… in ProcessSet()
622 …otError ProcessGetSet(Arg aArgs[], GetHandler<ValueType> aGetHandler, SetHandler<ValueType> aSetHa… in ProcessGetSet()
634 …otError ProcessGetSet(Arg aArgs[], GetHandler<ValueType> aGetHandler, SetHandlerFailable<ValueType… in ProcessGetSet()
645 otError ProcessEnableDisable(Arg aArgs[], SetEnabledHandler aSetEnabledHandler);
646 otError ProcessEnableDisable(Arg aArgs[], SetEnabledHandlerFailable aSetEnabledHandler);
[all …]
Dcli_dataset.cpp398 otError Dataset::ParseActiveTimestamp(Arg *&aArgs, otOperationalDataset &aDataset) in ParseActiveTimestamp()
410 otError Dataset::ParseChannel(Arg *&aArgs, otOperationalDataset &aDataset) in ParseChannel()
415 otError Dataset::ParseChannelMask(Arg *&aArgs, otOperationalDataset &aDataset) in ParseChannelMask()
420 otError Dataset::ParseDelay(Arg *&aArgs, otOperationalDataset &aDataset) in ParseDelay()
425 otError Dataset::ParseExtendedPanId(Arg *&aArgs, otOperationalDataset &aDataset) in ParseExtendedPanId()
430 otError Dataset::ParseMeshLocalPrefix(Arg *&aArgs, otOperationalDataset &aDataset) in ParseMeshLocalPrefix()
443 otError Dataset::ParseNetworkKey(Arg *&aArgs, otOperationalDataset &aDataset) in ParseNetworkKey()
448 otError Dataset::ParseNetworkName(Arg *&aArgs, otOperationalDataset &aDataset) in ParseNetworkName()
459 otError Dataset::ParsePanId(Arg *&aArgs, otOperationalDataset &aDataset) in ParsePanId()
464 otError Dataset::ParsePendingTimestamp(Arg *&aArgs, otOperationalDataset &aDataset) in ParsePendingTimestamp()
[all …]
Dcli_mdns.hpp83 otError Process(Arg aArgs[]);
108 template <CommandId kCommandId> otError Process(Arg aArgs[]);
115 otError ProcessRegisterHost(Arg aArgs[]);
116 otError ProcessRegisterService(Arg aArgs[]);
117 otError ProcessRegisterKey(Arg aArgs[]);
124 static otError ParseStartOrStop(const Arg &aArg, bool &aIsStart);
132 static otError ParseServiceArgs(Arg aArgs[], otMdnsService &aService, Buffers &aBuffers);
Dcli_bbr.cpp54 template <> otError Bbr::Process<Cmd("mlr")>(Arg aArgs[]) in Process()
168 template <> otError Bbr::Process<Cmd("mgmt")>(Arg aArgs[]) in Process()
247 template <> otError Bbr::Process<Cmd("enable")>(Arg aArgs[]) in Process()
264 template <> otError Bbr::Process<Cmd("disable")>(Arg aArgs[]) in Process()
291 template <> otError Bbr::Process<Cmd("jitter")>(Arg aArgs[]) in Process()
305 template <> otError Bbr::Process<Cmd("register")>(Arg aArgs[]) in Process()
334 template <> otError Bbr::Process<Cmd("state")>(Arg aArgs[]) in Process()
366 template <> otError Bbr::Process<Cmd("config")>(Arg aArgs[]) in Process()
393 for (Arg *arg = &aArgs[0]; !arg->IsEmpty(); arg++) in Process()
425 otError Bbr::Process(Arg aArgs[]) in Process()
Dcli_br.cpp56 template <> otError Br::Process<Cmd("init")>(Arg aArgs[]) in Process()
81 template <> otError Br::Process<Cmd("enable")>(Arg aArgs[]) in Process()
102 template <> otError Br::Process<Cmd("disable")>(Arg aArgs[]) in Process()
122 template <> otError Br::Process<Cmd("state")>(Arg aArgs[]) in Process()
146 otError Br::ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags) in ParsePrefixTypeArgs()
190 template <> otError Br::Process<Cmd("omrprefix")>(Arg aArgs[]) in Process()
256 template <> otError Br::Process<Cmd("onlinkprefix")>(Arg aArgs[]) in Process()
335 template <> otError Br::Process<Cmd("nat64prefix")>(Arg aArgs[]) in Process()
392 template <> otError Br::Process<Cmd("peers")>(Arg aArgs[]) in Process()
494 template <> otError Br::Process<Cmd("prefixtable")>(Arg aArgs[]) in Process()
[all …]
Dcli.cpp187 template <> otError Interpreter::Process<Cmd("diag")>(Arg aArgs[]) in Process()
192 Arg::CopyArgsToStringArray(aArgs, args); in Process()
194 return otDiagProcessCmd(GetInstancePtr(), Arg::GetArgsLength(aArgs), args); in Process()
205 template <> otError Interpreter::Process<Cmd("version")>(Arg aArgs[]) in Process()
246 template <> otError Interpreter::Process<Cmd("reset")>(Arg aArgs[]) in Process()
280 Arg args[kMaxArgs + 1]; in ProcessLine()
323 otError Interpreter::ProcessUserCommands(Arg aArgs[]) in ProcessUserCommands()
335 Arg::CopyArgsToStringArray(aArgs, args); in ProcessUserCommands()
336 … error = entry.mCommands[i].mCommand(entry.mContext, Arg::GetArgsLength(aArgs) - 1, args + 1); in ProcessUserCommands()
368 template <> otError Interpreter::Process<Cmd("history")>(Arg aArgs[]) { return mHistory.Process(aAr… in Process()
[all …]
Dcli_srp_server.cpp66 template <> otError SrpServer::Process<Cmd("addrmode")>(Arg aArgs[]) in Process()
122 template <> otError SrpServer::Process<Cmd("auto")>(Arg aArgs[]) in Process()
145 template <> otError SrpServer::Process<Cmd("domain")>(Arg aArgs[]) in Process()
180 template <> otError SrpServer::Process<Cmd("state")>(Arg aArgs[]) in Process()
199 template <> otError SrpServer::Process<Cmd("enable")>(Arg aArgs[]) in Process()
219 template <> otError SrpServer::Process<Cmd("disable")>(Arg aArgs[]) in Process()
228 template <> otError SrpServer::Process<Cmd("ttl")>(Arg aArgs[]) in Process()
272 template <> otError SrpServer::Process<Cmd("lease")>(Arg aArgs[]) in Process()
318 template <> otError SrpServer::Process<Cmd("host")>(Arg aArgs[]) in Process()
421 template <> otError SrpServer::Process<Cmd("service")>(Arg aArgs[]) in Process()
[all …]
Dcli_dns.hpp93 otError Process(Arg aArgs[]);
101 template <CommandId kCommandId> otError Process(Arg aArgs[]);
105 otError GetDnsConfig(Arg aArgs[], otDnsQueryConfig *&aConfig);
107 otError ParseDnsServiceMode(const Arg &aArg, otDnsServiceMode &aMode) const;
120 otError ProcessService(Arg aArgs[], ResolveServiceFn aResolveServiceFn);
Dcli_commissioner.cpp61 template <> otError Commissioner::Process<Cmd("announce")>(Arg aArgs[]) in Process()
101 template <> otError Commissioner::Process<Cmd("energy")>(Arg aArgs[]) in Process()
123 template <> otError Commissioner::Process<Cmd("joiner")>(Arg aArgs[]) in Process()
311 template <> otError Commissioner::Process<Cmd("mgmtget")>(Arg aArgs[]) in Process()
377 template <> otError Commissioner::Process<Cmd("mgmtset")>(Arg aArgs[]) in Process()
458 template <> otError Commissioner::Process<Cmd("panid")>(Arg aArgs[]) in Process()
486 template <> otError Commissioner::Process<Cmd("provisioningurl")>(Arg aArgs[]) in Process()
504 template <> otError Commissioner::Process<Cmd("sessionid")>(Arg aArgs[]) in Process()
529 template <> otError Commissioner::Process<Cmd("id")>(Arg aArgs[]) in Process()
560 template <> otError Commissioner::Process<Cmd("start")>(Arg aArgs[]) in Process()
[all …]
Dcli_joiner.cpp45 template <> otError Joiner::Process<Cmd("discerner")>(Arg aArgs[]) in Process()
130 template <> otError Joiner::Process<Cmd("id")>(Arg aArgs[]) in Process()
153 template <> otError Joiner::Process<Cmd("start")>(Arg aArgs[]) in Process()
181 template <> otError Joiner::Process<Cmd("stop")>(Arg aArgs[]) in Process()
208 template <> otError Joiner::Process<Cmd("state")>(Arg aArgs[]) in Process()
217 otError Joiner::Process(Arg aArgs[]) in Process()
Dcli_coap_secure.cpp109 template <> otError CoapSecure::Process<Cmd("resource")>(Arg aArgs[]) in Process()
157 template <> otError CoapSecure::Process<Cmd("set")>(Arg aArgs[]) in Process()
215 template <> otError CoapSecure::Process<Cmd("start")>(Arg aArgs[]) in Process()
261 template <> otError CoapSecure::Process<Cmd("stop")>(Arg aArgs[]) in Process()
295 template <> otError CoapSecure::Process<Cmd("isclosed")>(Arg aArgs[]) in Process()
311 template <> otError CoapSecure::Process<Cmd("isconnected")>(Arg aArgs[]) in Process()
329 template <> otError CoapSecure::Process<Cmd("isconnactive")>(Arg aArgs[]) in Process()
334 otError CoapSecure::ProcessIsRequest(Arg aArgs[], bool (*IsChecker)(otInstance *)) in ProcessIsRequest()
368 template <> otError CoapSecure::Process<Cmd("get")>(Arg aArgs[]) { return ProcessRequest(aArgs, OT_… in Process()
400 template <> otError CoapSecure::Process<Cmd("post")>(Arg aArgs[]) { return ProcessRequest(aArgs, OT… in Process()
[all …]
Dcli_history.hpp80 otError Process(Arg aArgs[]);
96 template <CommandId kCommandId> otError Process(Arg aArgs[]);
98 otError ParseArgs(Arg aArgs[], bool &aIsList, uint16_t &aNumEntries) const;
99 otError ProcessRxTxHistory(RxTx aRxTx, Arg aArgs[]);
Dcli_mdns.cpp46 template <> otError Mdns::Process<Cmd("enable")>(Arg aArgs[]) in Process()
62 template <> otError Mdns::Process<Cmd("disable")>(Arg aArgs[]) in Process()
73 template <> otError Mdns::Process<Cmd("state")>(Arg aArgs[]) in Process()
84 template <> otError Mdns::Process<Cmd("unicastquestion")>(Arg aArgs[]) in Process()
180 template <> otError Mdns::Process<Cmd("register")>(Arg aArgs[]) in Process()
224 otError Mdns::ProcessRegisterHost(Arg aArgs[]) in ProcessRegisterHost()
271 otError Mdns::ProcessRegisterService(Arg aArgs[]) in ProcessRegisterService()
288 otError Mdns::ParseServiceArgs(Arg aArgs[], otMdnsService &aService, Buffers &aBuffers) in ParseServiceArgs()
372 otError Mdns::ProcessRegisterKey(Arg aArgs[]) in ProcessRegisterKey()
441 template <> otError Mdns::Process<Cmd("unregister")>(Arg aArgs[]) in Process()
[all …]
Dcli_srp_client.cpp69 template <> otError SrpClient::Process<Cmd("autostart")>(Arg aArgs[]) in Process()
166 template <> otError SrpClient::Process<Cmd("callback")>(Arg aArgs[]) in Process()
182 template <> otError SrpClient::Process<Cmd("host")>(Arg aArgs[]) in Process()
360 for (Arg *arg = &aArgs[1]; !arg->IsEmpty(); arg++) in Process()
454 template <> otError SrpClient::Process<Cmd("leaseinterval")>(Arg aArgs[]) in Process()
476 template <> otError SrpClient::Process<Cmd("keyleaseinterval")>(Arg aArgs[]) in Process()
481 template <> otError SrpClient::Process<Cmd("server")>(Arg aArgs[]) in Process()
544 template <> otError SrpClient::Process<Cmd("service")>(Arg aArgs[]) in Process()
679 otError SrpClient::ProcessServiceAdd(Arg aArgs[]) in ProcessServiceAdd()
854 template <> otError SrpClient::Process<Cmd("start")>(Arg aArgs[]) in Process()
[all …]
Dcli_dns.cpp45 template <> otError Dns::Process<Cmd("compression")>(Arg aArgs[]) in Process()
109 template <> otError Dns::Process<Cmd("config")>(Arg aArgs[]) in Process()
241 template <> otError Dns::Process<Cmd("resolve")>(Arg aArgs[]) in Process()
258 template <> otError Dns::Process<Cmd("resolve4")>(Arg aArgs[]) in Process()
322 template <> otError Dns::Process<Cmd("browse")>(Arg aArgs[]) in Process()
361 template <> otError Dns::Process<Cmd("service")>(Arg aArgs[]) in Process()
390 template <> otError Dns::Process<Cmd("servicehost")>(Arg aArgs[]) in Process()
395 otError Dns::ProcessService(Arg aArgs[], ResolveServiceFn aResolveServiceFn) in ProcessService()
417 otError Dns::GetDnsConfig(Arg aArgs[], otDnsQueryConfig *&aConfig) in GetDnsConfig()
495 otError Dns::ParseDnsServiceMode(const Arg &aArg, otDnsServiceMode &aMode) const in ParseDnsServiceMode()
[all …]
Dcli_br.hpp80 otError Process(Arg aArgs[]);
98 template <CommandId kCommandId> otError Process(Arg aArgs[]);
100 otError ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags);
Dcli_udp.cpp82 template <> otError UdpExample::Process<Cmd("bind")>(Arg aArgs[]) in Process()
131 template <> otError UdpExample::Process<Cmd("connect")>(Arg aArgs[]) in Process()
163 template <> otError UdpExample::Process<Cmd("close")>(Arg aArgs[]) in Process()
179 template <> otError UdpExample::Process<Cmd("open")>(Arg aArgs[]) in Process()
252 template <> otError UdpExample::Process<Cmd("send")>(Arg aArgs[]) in Process()
331 template <> otError UdpExample::Process<Cmd("linksecurity")>(Arg aArgs[]) in Process()
424 otError UdpExample::Process(Arg aArgs[]) in Process()
Dcli_utils.cpp373 void Utils::LogInput(const Arg *aArgs) in LogInput()
430 otError Utils::ParseEnableOrDisable(const Arg &aArg, bool &aEnable) in ParseEnableOrDisable()
450 otError Utils::ProcessEnableDisable(Arg aArgs[], SetEnabledHandler aSetEnabledHandler) in ProcessEnableDisable()
467 otError Utils::ProcessEnableDisable(Arg aArgs[], SetEnabledHandlerFailable aSetEnabledHandler) in ProcessEnableDisable()
484 otError Utils::ProcessEnableDisable(Arg aArgs[], in ProcessEnableDisable()
502 otError Utils::ProcessEnableDisable(Arg aArgs[], in ProcessEnableDisable()
520 otError Utils::ParseJoinerDiscerner(Arg &aArg, otJoinerDiscerner &aDiscerner) in ParseJoinerDiscerner()
540 otError Utils::ParsePreference(const Arg &aArg, otRoutePreference &aPreference) in ParsePreference()
590 otError Utils::ParseToIp6Address(otInstance *aInstance, const Arg &aArg, otIp6Address &aAddress, bo… in ParseToIp6Address()
614 otError Utils::ParsePrefix(Arg aArgs[], otBorderRouterConfig &aConfig) in ParsePrefix()
[all …]
Dcli_srp_client.hpp78 otError Process(Arg aArgs[]);
86 template <CommandId kCommandId> otError Process(Arg aArgs[]);
88 otError ProcessServiceAdd(Arg aArgs[]);
Dcli_coap_secure.hpp82 otError Process(Arg aArgs[]);
101 template <CommandId kCommandId> otError Process(Arg aArgs[]);
103 otError ProcessRequest(Arg aArgs[], otCoapCode aCoapCode);
104 otError ProcessIsRequest(Arg aArgs[], bool (*IsChecker)(otInstance *));
Dcli_history.cpp50 otError History::ParseArgs(Arg aArgs[], bool &aIsList, uint16_t &aNumEntries) const in ParseArgs()
130 template <> otError History::Process<Cmd("ipaddr")>(Arg aArgs[]) in Process()
241 template <> otError History::Process<Cmd("ipmaddr")>(Arg aArgs[]) in Process()
354 template <> otError History::Process<Cmd("neighbor")>(Arg aArgs[]) in Process()
500 template <> otError History::Process<Cmd("router")>(Arg aArgs[]) in Process()
641 template <> otError History::Process<Cmd("netinfo")>(Arg aArgs[]) in Process()
791 template <> otError History::Process<Cmd("rx")>(Arg aArgs[]) { return ProcessRxTxHistory(kRx, aArgs… in Process()
917 template <> otError History::Process<Cmd("rxtx")>(Arg aArgs[]) { return ProcessRxTxHistory(kRxTx, a… in Process()
1002 template <> otError History::Process<Cmd("tx")>(Arg aArgs[]) { return ProcessRxTxHistory(kTx, aArgs… in Process()
1076 otError History::ProcessRxTxHistory(RxTx aRxTx, Arg aArgs[]) in ProcessRxTxHistory()
[all …]
/openthread-latest/src/core/utils/
Dparse_cmdline.hpp305 class Arg class
612 static void CopyArgsToStringArray(Arg aArgs[], char *aStrings[]);
622 static uint8_t GetArgsLength(Arg aArgs[]);
650 otError ParseCmd(char *aCommandString, Arg aArgs[], uint8_t aArgsMaxLength);
652 template <uint8_t kLength> inline otError ParseCmd(char *aCommandString, Arg (&aArgs)[kLength]) in ParseCmd()
660 template <> inline otError Arg::ParseAs(uint8_t &aValue) const { return ParseAsUint8(aValue); } in ParseAs()
662 template <> inline otError Arg::ParseAs(uint16_t &aValue) const { return ParseAsUint16(aValue); } in ParseAs()
664 template <> inline otError Arg::ParseAs(uint32_t &aValue) const { return ParseAsUint32(aValue); } in ParseAs()
666 template <> inline otError Arg::ParseAs(uint64_t &aValue) const { return ParseAsUint64(aValue); } in ParseAs()
668 template <> inline otError Arg::ParseAs(bool &aValue) const { return ParseAsBool(aValue); } in ParseAs()
[all …]
Dparse_cmdline.cpp51 Error ParseCmd(char *aCommandString, Arg aArgs[], uint8_t aArgsMaxLength) in ParseCmd()
318 uint16_t Arg::GetLength(void) const { return IsEmpty() ? 0 : static_cast<uint16_t>(strlen(mString))… in GetLength()
320 bool Arg::operator==(const char *aString) const { return !IsEmpty() && StringMatch(mString, aString… in operator ==()
322 void Arg::CopyArgsToStringArray(Arg aArgs[], char *aStrings[]) in CopyArgsToStringArray()
330 uint8_t Arg::GetArgsLength(Arg aArgs[]) in GetArgsLength()
/openthread-latest/tools/ot-fct/
Dcli.hpp69 void ProcessCommand(Utils::CmdLineParser::Arg aArgs[]);
95 otError (Cli::*mCommand)(Utils::CmdLineParser::Arg aArgs[]);
102 otError ProcessCalibrationTable(Utils::CmdLineParser::Arg aArgs[]);
103 otError ProcessTargetPowerTable(Utils::CmdLineParser::Arg aArgs[]);
104 otError ProcessRegionDomainTable(Utils::CmdLineParser::Arg aArgs[]);

12