Home
last modified time | relevance | path

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

12

/openthread-3.4.0/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 …]
/openthread-3.4.0/src/cli/
Dcli.hpp120 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Interpreter
181 static otError ParseEnableOrDisable(const Arg &aArg, bool &aEnable);
232 static otError ParsePreference(const Arg &aArg, otRoutePreference &aPreference);
261 const Arg &aArg,
294 template <typename ValueType> otError ProcessGet(Arg aArgs[], GetHandler<ValueType> aGetHandler) in ProcessGet()
311 template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandler<ValueType> aSetHandler) in ProcessSet()
325 …template <typename ValueType> otError ProcessSet(Arg aArgs[], SetHandlerFailable<ValueType> aSetHa… in ProcessSet()
340 …otError ProcessGetSet(Arg aArgs[], GetHandler<ValueType> aGetHandler, SetHandler<ValueType> aSetHa… in ProcessGetSet()
352 …otError ProcessGetSet(Arg aArgs[], GetHandler<ValueType> aGetHandler, SetHandlerFailable<ValueType… in ProcessGetSet()
367 otError ParsePingInterval(const Arg &aArg, uint32_t &aInterval);
[all …]
Dcli_dataset.hpp55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Dataset
68 otError Process(Arg aArgs[]);
73 template <CommandId kCommandId> otError Process(Arg aArgs[]);
78 otError ProcessUpdater(Arg aArgs[]);
84 otError ParseSecurityPolicy(otSecurityPolicy &aSecurityPolicy, Arg *&aArgs);
Dcli_br.hpp54 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Br
74 otError Process(Arg aArgs[]);
86 template <CommandId kCommandId> otError Process(Arg aArgs[]);
88 otError ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags);
Dcli_history.hpp56 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::History
76 otError Process(Arg aArgs[]);
92 template <CommandId kCommandId> otError Process(Arg aArgs[]);
94 otError ParseArgs(Arg aArgs[], bool &aIsList, uint16_t &aNumEntries) const;
95 otError ProcessRxTxHistory(RxTx aRxTx, Arg aArgs[]);
Dcli_srp_client.hpp57 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::SrpClient
74 otError Process(Arg aArgs[]);
85 template <CommandId kCommandId> otError Process(Arg aArgs[]);
87 otError ProcessServiceAdd(Arg aArgs[]);
Dcli_srp_server.hpp55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::SrpServer
78 otError Process(Arg aArgs[]);
85 template <CommandId kCommandId> otError Process(Arg aArgs[]);
Dcli_joiner.hpp55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Joiner
75 otError Process(Arg aArgs[]);
80 template <CommandId kCommandId> otError Process(Arg aArgs[]);
Dcli_udp.hpp53 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::UdpExample
70 otError Process(Arg aArgs[]);
75 template <CommandId kCommandId> otError Process(Arg aArgs[]);
Dcli_br.cpp57 template <> otError Br::Process<Cmd("enable")>(Arg aArgs[]) in Process()
78 template <> otError Br::Process<Cmd("disable")>(Arg aArgs[]) in Process()
98 template <> otError Br::Process<Cmd("state")>(Arg aArgs[]) in Process()
122 otError Br::ParsePrefixTypeArgs(Arg aArgs[], PrefixType &aFlags) in ParsePrefixTypeArgs()
166 template <> otError Br::Process<Cmd("omrprefix")>(Arg aArgs[]) in Process()
232 template <> otError Br::Process<Cmd("onlinkprefix")>(Arg aArgs[]) in Process()
298 template <> otError Br::Process<Cmd("nat64prefix")>(Arg aArgs[]) in Process()
366 template <> otError Br::Process<Cmd("prefixtable")>(Arg aArgs[]) in Process()
401 template <> otError Br::Process<Cmd("rioprf")>(Arg aArgs[]) in Process()
476 template <> otError Br::Process<Cmd("counters")>(Arg aArgs[]) in Process()
[all …]
Dcli_coap.hpp55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Coap
72 otError Process(Arg aArgs[]);
90 template <CommandId kCommandId> otError Process(Arg aArgs[]);
100 otError ProcessRequest(Arg aArgs[], otCoapCode aCoapCode, bool aCoapObserve = false);
102 otError ProcessRequest(Arg aArgs[], otCoapCode aCoapCode);
Dcli_srp_server.cpp46 template <> otError SrpServer::Process<Cmd("addrmode")>(Arg aArgs[]) in Process()
78 template <> otError SrpServer::Process<Cmd("auto")>(Arg aArgs[]) in Process()
118 template <> otError SrpServer::Process<Cmd("domain")>(Arg aArgs[]) in Process()
134 template <> otError SrpServer::Process<Cmd("state")>(Arg aArgs[]) in Process()
153 template <> otError SrpServer::Process<Cmd("enable")>(Arg aArgs[]) in Process()
162 template <> otError SrpServer::Process<Cmd("disable")>(Arg aArgs[]) in Process()
171 template <> otError SrpServer::Process<Cmd("ttl")>(Arg aArgs[]) in Process()
195 template <> otError SrpServer::Process<Cmd("lease")>(Arg aArgs[]) in Process()
223 template <> otError SrpServer::Process<Cmd("host")>(Arg aArgs[]) in Process()
285 template <> otError SrpServer::Process<Cmd("service")>(Arg aArgs[]) in Process()
[all …]
Dcli_commissioner.hpp55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Commissioner
75 otError Process(Arg aArgs[]);
85 template <CommandId kCommandId> otError Process(Arg aArgs[]);
Dcli_network_data.hpp53 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::NetworkData
85 otError Process(Arg aArgs[]);
132 template <CommandId kCommandId> otError Process(Arg aArgs[]);
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_dataset.cpp144 template <> otError Dataset::Process<Cmd("init")>(Arg aArgs[]) in Process()
205 template <> otError Dataset::Process<Cmd("active")>(Arg aArgs[]) in Process()
229 template <> otError Dataset::Process<Cmd("pending")>(Arg aArgs[]) in Process()
269 template <> otError Dataset::Process<Cmd("activetimestamp")>(Arg aArgs[]) in Process()
312 template <> otError Dataset::Process<Cmd("channel")>(Arg aArgs[]) in Process()
353 template <> otError Dataset::Process<Cmd("channelmask")>(Arg aArgs[]) in Process()
387 template <> otError Dataset::Process<Cmd("clear")>(Arg aArgs[]) in Process()
395 template <> otError Dataset::Process<Cmd("commit")>(Arg aArgs[]) in Process()
450 template <> otError Dataset::Process<Cmd("delay")>(Arg aArgs[]) in Process()
494 template <> otError Dataset::Process<Cmd("extpanid")>(Arg aArgs[]) in Process()
[all …]
Dcli_coap_secure.hpp61 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::CoapSecure
78 otError Process(Arg aArgs[]);
100 template <CommandId kCommandId> otError Process(Arg aArgs[]);
102 otError ProcessRequest(Arg aArgs[], otCoapCode aCoapCode);
Dcli.cpp208 template <> otError Interpreter::Process<Cmd("diag")>(Arg aArgs[]) in Process()
215 Arg::CopyArgsToStringArray(aArgs, args); in Process()
217 …error = otDiagProcessCmd(GetInstancePtr(), Arg::GetArgsLength(aArgs), args, output, sizeof(output)… in Process()
225 template <> otError Interpreter::Process<Cmd("version")>(Arg aArgs[]) in Process()
245 template <> otError Interpreter::Process<Cmd("reset")>(Arg aArgs[]) in Process()
256 Arg args[kMaxArgs + 1]; in ProcessLine()
293 otError Interpreter::ProcessUserCommands(Arg aArgs[]) in ProcessUserCommands()
305 Arg::CopyArgsToStringArray(aArgs, args); in ProcessUserCommands()
306 … error = entry.mCommands[i].mCommand(entry.mContext, Arg::GetArgsLength(aArgs) - 1, args + 1); in ProcessUserCommands()
336 otError Interpreter::ParseEnableOrDisable(const Arg &aArg, bool &aEnable) in ParseEnableOrDisable()
[all …]
Dcli_commissioner.cpp43 template <> otError Commissioner::Process<Cmd("announce")>(Arg aArgs[]) in Process()
62 template <> otError Commissioner::Process<Cmd("energy")>(Arg aArgs[]) in Process()
84 template <> otError Commissioner::Process<Cmd("joiner")>(Arg aArgs[]) in Process()
195 template <> otError Commissioner::Process<Cmd("mgmtget")>(Arg aArgs[]) in Process()
242 template <> otError Commissioner::Process<Cmd("mgmtset")>(Arg aArgs[]) in Process()
304 template <> otError Commissioner::Process<Cmd("panid")>(Arg aArgs[]) in Process()
321 template <> otError Commissioner::Process<Cmd("provisioningurl")>(Arg aArgs[]) in Process()
328 template <> otError Commissioner::Process<Cmd("sessionid")>(Arg aArgs[]) in Process()
337 template <> otError Commissioner::Process<Cmd("id")>(Arg aArgs[]) in Process()
354 template <> otError Commissioner::Process<Cmd("start")>(Arg aArgs[]) in Process()
[all …]
Dcli_srp_client.cpp69 template <> otError SrpClient::Process<Cmd("autostart")>(Arg aArgs[]) in Process()
97 template <> otError SrpClient::Process<Cmd("callback")>(Arg aArgs[]) in Process()
113 template <> otError SrpClient::Process<Cmd("host")>(Arg aArgs[]) in Process()
199 for (Arg *arg = &aArgs[1]; !arg->IsEmpty(); arg++) in Process()
245 template <> otError SrpClient::Process<Cmd("leaseinterval")>(Arg aArgs[]) in Process()
250 template <> otError SrpClient::Process<Cmd("keyleaseinterval")>(Arg aArgs[]) in Process()
256 template <> otError SrpClient::Process<Cmd("server")>(Arg aArgs[]) in Process()
286 template <> otError SrpClient::Process<Cmd("service")>(Arg aArgs[]) in Process()
356 otError SrpClient::ProcessServiceAdd(Arg aArgs[]) in ProcessServiceAdd()
520 template <> otError SrpClient::Process<Cmd("start")>(Arg aArgs[]) in Process()
[all …]
Dcli_udp.cpp53 template <> otError UdpExample::Process<Cmd("bind")>(Arg aArgs[]) in Process()
80 template <> otError UdpExample::Process<Cmd("connect")>(Arg aArgs[]) in Process()
103 template <> otError UdpExample::Process<Cmd("close")>(Arg aArgs[]) in Process()
110 template <> otError UdpExample::Process<Cmd("open")>(Arg aArgs[]) in Process()
123 template <> otError UdpExample::Process<Cmd("send")>(Arg aArgs[]) in Process()
200 template <> otError UdpExample::Process<Cmd("linksecurity")>(Arg aArgs[]) in Process()
273 otError UdpExample::Process(Arg aArgs[]) in Process()
Dcli_coap_secure.cpp93 template <> otError CoapSecure::Process<Cmd("resource")>(Arg aArgs[]) in Process()
131 template <> otError CoapSecure::Process<Cmd("set")>(Arg aArgs[]) in Process()
150 template <> otError CoapSecure::Process<Cmd("start")>(Arg aArgs[]) in Process()
180 template <> otError CoapSecure::Process<Cmd("stop")>(Arg aArgs[]) in Process()
203 template <> otError CoapSecure::Process<Cmd("get")>(Arg aArgs[]) { return ProcessRequest(aArgs, OT_… in Process()
205 template <> otError CoapSecure::Process<Cmd("post")>(Arg aArgs[]) { return ProcessRequest(aArgs, OT… in Process()
207 template <> otError CoapSecure::Process<Cmd("put")>(Arg aArgs[]) { return ProcessRequest(aArgs, OT_… in Process()
209 template <> otError CoapSecure::Process<Cmd("delete")>(Arg aArgs[]) in Process()
214 otError CoapSecure::ProcessRequest(Arg aArgs[], otCoapCode aCoapCode) in ProcessRequest()
364 template <> otError CoapSecure::Process<Cmd("connect")>(Arg aArgs[]) in Process()
[all …]
Dcli_tcp.hpp65 using Arg = Utils::CmdLineParser::Arg; typedef in ot::Cli::TcpExample
82 otError Process(Arg aArgs[]);
87 template <CommandId kCommandId> otError Process(Arg aArgs[]);
Dcli_output.hpp119 typedef Utils::CmdLineParser::Arg Arg; ///< An argument typedef in ot::Cli::Output
129 typedef otError (Cli::*Handler)(Arg aArgs[]); ///< The handler method pointer type.
534 void LogInput(const Arg *aArgs);
536 void LogInput(const Arg *) {} in LogInput() argument
/openthread-3.4.0/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