Home
last modified time | relevance | path

Searched refs:aMode (Results 1 – 25 of 67) sorted by relevance

123

/openthread-latest/examples/platforms/simulation/
Ddiag.c67 void otPlatDiagModeSet(bool aMode) { sDiagMode = aMode; } in otPlatDiagModeSet() argument
106 otError otPlatDiagGpioSetMode(uint32_t aGpio, otGpioMode aMode) in otPlatDiagGpioSetMode() argument
111 sGpioMode = aMode; in otPlatDiagGpioSetMode()
117 otError otPlatDiagGpioGetMode(uint32_t aGpio, otGpioMode *aMode) in otPlatDiagGpioGetMode() argument
121 otEXPECT_ACTION((aGpio == SIM_GPIO) && (aMode != NULL), error = OT_ERROR_INVALID_ARGS); in otPlatDiagGpioGetMode()
122 *aMode = sGpioMode; in otPlatDiagGpioGetMode()
Ddso_transport.c53 void otPlatDsoDisconnect(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode) in otPlatDsoDisconnect() argument
56 OT_UNUSED_VARIABLE(aMode); in otPlatDsoDisconnect()
/openthread-latest/src/core/common/
Dstring.cpp53 MatchType Match(const char *aString, const char *aPrefixString, StringMatchMode aMode) in Match() argument
65 switch (aMode) in Match()
121 const char *StringFind(const char *aString, const char *aSubString, StringMatchMode aMode) in StringFind() argument
131 if (Match(&aString[index], aSubString, aMode) != kNoMatch) in StringFind()
141 bool StringStartsWith(const char *aString, const char *aPrefixString, StringMatchMode aMode) in StringStartsWith() argument
143 return Match(aString, aPrefixString, aMode) != kNoMatch; in StringStartsWith()
153 bool StringEndsWith(const char *aString, const char *aSubString, StringMatchMode aMode) in StringEndsWith() argument
158 …return (subLen > 0) && (len >= subLen) && (Match(&aString[len - subLen], aSubString, aMode) != kNo… in StringEndsWith()
166 bool StringMatch(const char *aFirstString, const char *aSecondString, StringMatchMode aMode) in StringMatch() argument
168 return Match(aFirstString, aSecondString, aMode) == kFullMatch; in StringMatch()
Dstring.hpp110 const char *StringFind(const char *aString, const char *aSubString, StringMatchMode aMode = kString…
122 bool StringStartsWith(const char *aString, const char *aPrefixString, StringMatchMode aMode = kStri…
145 bool StringEndsWith(const char *aString, const char *aSubString, StringMatchMode aMode = kStringExa…
168 bool StringMatch(const char *aFirstString, const char *aSecondString, StringMatchMode aMode);
Dtrickle_timer.cpp209 void TrickleTimer::Start(Mode aMode, uint32_t aIntervalMin, uint32_t aIntervalMax, uint16_t aRedund… in Start() argument
216 mMode = aMode; in Start()
/openthread-latest/include/openthread/platform/
Ddiag.h102 void otPlatDiagModeSet(bool aMode);
181 otError otPlatDiagGpioSetMode(uint32_t aGpio, otGpioMode aMode);
196 otError otPlatDiagGpioGetMode(uint32_t aGpio, otGpioMode *aMode);
Ddso_transport.h173 void otPlatDsoDisconnect(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode);
185 … void otPlatDsoHandleDisconnected(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode);
/openthread-latest/src/core/utils/
Dotns.cpp151 void Otns::EmitDeviceMode(Mle::DeviceMode aMode) in EmitDeviceMode() argument
153 …EmitStatus("mode=%s%s%s", aMode.IsRxOnWhenIdle() ? "r" : "", aMode.IsFullThreadDevice() ? "d" : "", in EmitDeviceMode()
154 (aMode.GetNetworkDataType() == NetworkData::kFullSet) ? "n" : ""); in EmitDeviceMode()
Dparse_cmdline.cpp233 …r ParseHexString(const char *&aString, uint16_t &aSize, uint8_t *aBuffer, HexStringParseMode aMode) in ParseHexString() argument
246 switch (aMode) in ParseHexString()
267 if ((aMode == kModeAllowPartial) && (parsedSize == aSize)) in ParseHexString()
/openthread-latest/src/core/api/
Dicmp6_api.cpp45 void otIcmp6SetEchoMode(otInstance *aInstance, otIcmp6EchoMode aMode) in otIcmp6SetEchoMode() argument
47 AsCoreType(aInstance).Get<Ip6::Icmp>().SetEchoMode(aMode); in otIcmp6SetEchoMode()
/openthread-latest/src/core/crypto/
Daes_ccm.cpp191 void AesCcm::Payload(void *aPlainText, void *aCipherText, uint32_t aLength, Mode aMode) in Payload() argument
215 if (aMode == kEncrypt) in Payload()
250 void AesCcm::Payload(Message &aMessage, uint16_t aOffset, uint16_t aLength, Mode aMode) in Payload() argument
258 Payload(chunk.GetBytes(), chunk.GetBytes(), chunk.GetLength(), aMode); in Payload()
Daes_ccm.hpp144 void Payload(void *aPlainText, void *aCipherText, uint32_t aLength, Mode aMode);
157 void Payload(Message &aMessage, uint16_t aOffset, uint16_t aLength, Mode aMode);
/openthread-latest/src/cli/
Dcli_dns.hpp103 const char *DnsConfigServiceModeToString(otDnsServiceMode aMode) const;
104 otError ParseDnsServiceMode(const Arg &aArg, otDnsServiceMode &aMode) const;
Dcli_dns.cpp490 const char *Dns::DnsConfigServiceModeToString(otDnsServiceMode aMode) const in DnsConfigServiceModeToString()
492 return Stringify(aMode, kServiceModeStrings); in DnsConfigServiceModeToString()
495 otError Dns::ParseDnsServiceMode(const Arg &aArg, otDnsServiceMode &aMode) const in ParseDnsServiceMode()
501 aMode = OT_DNS_SERVICE_MODE_UNSPECIFIED; in ParseDnsServiceMode()
509 aMode = static_cast<otDnsServiceMode>(index); in ParseDnsServiceMode()
/openthread-latest/src/core/thread/
Dmle.hpp986 Error AppendModeTlv(DeviceMode aMode);
1001 Error AppendAddressRegistrationTlv(AddressRegistrationMode aMode = kAppendAllAddresses);
1046 Error ReadModeTlv(DeviceMode &aMode) const;
1312 Error Start(StartMode aMode);
1313 void Stop(StopMode aMode);
1316 void Attach(AttachMode aMode);
1324 Error SendChildUpdateRequestToParent(ChildUpdateRequestMode aMode);
1357 void SendAnnounce(uint8_t aChannel, AnnounceMode aMode);
1358 …void SendAnnounce(uint8_t aChannel, const Ip6::Address &aDestination, AnnounceMode aMode = k…
1368 Error ProcessMessageSecurity(Crypto::AesCcm::Mode aMode,
[all …]
Dmle_types.hpp212 explicit DeviceMode(uint8_t aMode) { Set(aMode); } in DeviceMode() argument
233 void Set(uint8_t aMode) { mMode = aMode | kModeReserved; } in Set() argument
Dchild.cpp138 void Child::SetDeviceMode(Mle::DeviceMode aMode) in SetDeviceMode() argument
140 VerifyOrExit(aMode != GetDeviceMode()); in SetDeviceMode()
142 Neighbor::SetDeviceMode(aMode); in SetDeviceMode()
/openthread-latest/src/core/mac/
Dmac_filter.hpp107 void SetMode(Mode aMode) { mMode = aMode; } in SetMode() argument
/openthread-latest/src/core/net/
Ddns_client.hpp243 explicit QueryConfig(InitMode aMode);
250 … void SetServiceMode(ServiceMode aMode) { mServiceMode = static_cast<otDnsServiceMode>(aMode); } in SetServiceMode() argument
252 void SetNat64Mode(Nat64Mode aMode) { mNat64Mode = static_cast<otDnsNat64Mode>(aMode); } in SetNat64Mode() argument
Dicmp6.hpp303 void SetEchoMode(otIcmp6EchoMode aMode) { mEchoMode = aMode; } in SetEchoMode() argument
Ddns_dso.hpp67 … void otPlatDsoHandleDisconnected(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode);
183 … void otPlatDsoHandleDisconnected(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode);
465 void Disconnect(DisconnectMode aMode, DisconnectReason aReason);
743 void HandleDisconnected(DisconnectMode aMode);
Ddns_dso.cpp68 …" void otPlatDsoHandleDisconnected(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode) in otPlatDsoHandleDisconnected() argument
70 AsCoreType(aConnection).HandleDisconnected(MapEnum(aMode)); in otPlatDsoHandleDisconnected()
197 void Dso::Connection::Disconnect(DisconnectMode aMode, DisconnectReason aReason) in Disconnect() argument
204 otPlatDsoDisconnect(this, MapEnum(aMode)); in Disconnect()
210 void Dso::Connection::HandleDisconnected(DisconnectMode aMode) in HandleDisconnected() argument
220 switch (aMode) in HandleDisconnected()
1512 …TOOL_WEAK void otPlatDsoDisconnect(otPlatDsoConnection *aConnection, otPlatDsoDisconnectMode aMode) in otPlatDsoDisconnect() argument
1515 OT_UNUSED_VARIABLE(aMode); in otPlatDsoDisconnect()
/openthread-latest/src/posix/platform/
Dradio.cpp611 void otPlatDiagModeSet(bool aMode) in otPlatDiagModeSet() argument
613 SuccessOrExit(GetRadioSpinel().PlatDiagProcess(aMode ? "start" : "stop")); in otPlatDiagModeSet()
614 GetRadioSpinel().SetDiagEnabled(aMode); in otPlatDiagModeSet()
676 otError otPlatDiagGpioSetMode(uint32_t aGpio, otGpioMode aMode) in otPlatDiagGpioSetMode() argument
681 … snprintf(cmd, sizeof(cmd), "gpio mode %d %s", aGpio, aMode == OT_GPIO_MODE_INPUT ? "in" : "out"); in otPlatDiagGpioSetMode()
688 otError otPlatDiagGpioGetMode(uint32_t aGpio, otGpioMode *aMode) in otPlatDiagGpioGetMode() argument
703 *aMode = OT_GPIO_MODE_INPUT; in otPlatDiagGpioGetMode()
707 *aMode = OT_GPIO_MODE_OUTPUT; in otPlatDiagGpioGetMode()
Dspi_interface.cpp285 void SpiInterface::InitSpiDev(const char *aPath, uint8_t aMode, uint32_t aSpeed) in InitSpiDev() argument
290 LogDebg("InitSpiDev: path=%s, mode=%" PRIu8 ", speed=%" PRIu32, aPath, aMode, aSpeed); in InitSpiDev()
292 VerifyOrDie((aPath != nullptr) && (aMode <= kSpiModeMax), OT_EXIT_INVALID_ARGUMENTS); in InitSpiDev()
294 VerifyOrExit(ioctl(fd, SPI_IOC_WR_MODE, &aMode) != -1, LogError("ioctl(SPI_IOC_WR_MODE)")); in InitSpiDev()
300 mSpiMode = aMode; in InitSpiDev()
/openthread-latest/tests/nexus/platform/
Dnexus_settings.cpp102 Error Settings::SetOrAdd(SetAddMode aMode, uint16_t aKey, const uint8_t *aValue, uint16_t aValueLen… in SetOrAdd() argument
121 if (aMode == kSet) in SetOrAdd()

123