/openthread-3.4.0/src/core/utils/ |
D | parse_cmdline.hpp | 305 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/ |
D | cli.hpp | 120 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 …]
|
D | cli_dataset.hpp | 55 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);
|
D | cli_br.hpp | 54 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);
|
D | cli_history.hpp | 56 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[]);
|
D | cli_srp_client.hpp | 57 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[]);
|
D | cli_srp_server.hpp | 55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::SrpServer 78 otError Process(Arg aArgs[]); 85 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_joiner.hpp | 55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Joiner 75 otError Process(Arg aArgs[]); 80 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_udp.hpp | 53 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::UdpExample 70 otError Process(Arg aArgs[]); 75 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_br.cpp | 57 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 …]
|
D | cli_coap.hpp | 55 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);
|
D | cli_srp_server.cpp | 46 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 …]
|
D | cli_commissioner.hpp | 55 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::Commissioner 75 otError Process(Arg aArgs[]); 85 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_network_data.hpp | 53 typedef Utils::CmdLineParser::Arg Arg; typedef in ot::Cli::NetworkData 85 otError Process(Arg aArgs[]); 132 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_joiner.cpp | 45 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()
|
D | cli_dataset.cpp | 144 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 …]
|
D | cli_coap_secure.hpp | 61 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);
|
D | cli.cpp | 208 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 …]
|
D | cli_commissioner.cpp | 43 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 …]
|
D | cli_srp_client.cpp | 69 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 …]
|
D | cli_udp.cpp | 53 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()
|
D | cli_coap_secure.cpp | 93 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 …]
|
D | cli_tcp.hpp | 65 using Arg = Utils::CmdLineParser::Arg; typedef in ot::Cli::TcpExample 82 otError Process(Arg aArgs[]); 87 template <CommandId kCommandId> otError Process(Arg aArgs[]);
|
D | cli_output.hpp | 119 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/ |
D | cli.hpp | 69 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[]);
|