Home
last modified time | relevance | path

Searched refs:OT_ERROR_INVALID_STATE (Results 1 – 25 of 26) sorted by relevance

12

/openthread-latest/src/lib/spinel/
Dspinel_buffer.cpp365 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameFeedByte()
380 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameFeedData()
401 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameFeedMessage()
421 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameGetPosition()
440 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameOverwrite()
489 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameReset()
509 EXPECT(mWriteDirection != kUnknown, error = OT_ERROR_INVALID_STATE); in InFrameEnd()
Dspinel_encoder.cpp200 EXPECT(mNumOpenStructs < kMaxNestedStructs, error = OT_ERROR_INVALID_STATE); in OpenStruct()
219 EXPECT(mNumOpenStructs > 0, error = OT_ERROR_INVALID_STATE); in CloseStruct()
224 EXPECT(len >= sizeof(uint16_t), error = OT_ERROR_INVALID_STATE); in CloseStruct()
Dspinel_decoder.cpp342 EXPECT(mNumOpenStructs < kMaxNestedStructs, error = OT_ERROR_INVALID_STATE); in OpenStruct()
359 EXPECT(mNumOpenStructs > 0, error = OT_ERROR_INVALID_STATE); in CloseStruct()
390 EXPECT(IsSavedPositionValid(), error = OT_ERROR_INVALID_STATE); in ResetToSaved()
Dspinel_helper.cpp78 ret = OT_ERROR_INVALID_STATE; in SpinelStatusToOtError()
Dradio_spinel.cpp1602 otError error = OT_ERROR_INVALID_STATE; in Transmit()
1683 EXPECT(mState != kStateDisabled, error = OT_ERROR_INVALID_STATE); in Receive()
1727 error = OT_ERROR_INVALID_STATE; in Sleep()
1765 EXPECT(mState == kStateSleep, error = OT_ERROR_INVALID_STATE); in Disable()
/openthread-latest/src/cli/
Dcli_tcp.cpp297 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
349 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
396 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
475 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
657 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
683 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
717 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
745 VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE); in Process()
Dcli_udp.cpp259 VerifyOrExit(otUdpIsOpen(GetInstancePtr(), &mSocket), error = OT_ERROR_INVALID_STATE); in Process()
Dcli_coap.cpp85 VerifyOrExit(mRequestTokenLength != 0, error = OT_ERROR_INVALID_STATE); in CancelResourceSubscription()
/openthread-latest/src/posix/platform/
Dtrel.cpp213 VerifyOrExit(sSocket >= 0, error = OT_ERROR_INVALID_STATE); in SendPacket()
235 error = OT_ERROR_INVALID_STATE; in SendPacket()
306 …if (SendPacket(packet->mBuffer, packet->mLength, &packet->mDestSockAddr) == OT_ERROR_INVALID_STATE) in SendQueuedPackets()
529 (SendPacket(aUdpPayload, aUdpPayloadLen, aDestSockAddr) == OT_ERROR_INVALID_STATE)) in otPlatTrelSend()
Dnetif.cpp656 VerifyOrExit(netifIdx > 0, error = OT_ERROR_INVALID_STATE); in AddRoute()
657 VerifyOrExit(sNetlinkFd >= 0, error = OT_ERROR_INVALID_STATE); in AddRoute()
711 VerifyOrExit(netifIdx > 0, error = OT_ERROR_INVALID_STATE); in DeleteRoute()
712 VerifyOrExit(sNetlinkFd >= 0, error = OT_ERROR_INVALID_STATE); in DeleteRoute()
Dudp.cpp157 error = (errno == EINVAL) ? OT_ERROR_INVALID_STATE : OT_ERROR_FAILED; in transmitPacket()
Dspi_interface.cpp398 …(mReceiveFrameCallback != nullptr) && (mRxFrameBuffer != nullptr), error = OT_ERROR_INVALID_STATE); in PushPullSpi()
/openthread-latest/include/openthread/
Derror.h128 OT_ERROR_INVALID_STATE = 13, enumerator
/openthread-latest/tests/unit/
Dtest_spinel_buffer.cpp730 VerifyOrQuit(ncpBuffer.InFrameFeedData(sOpenThreadText, 1) == OT_ERROR_INVALID_STATE); in TestBuffer()
731 VerifyOrQuit(ncpBuffer.InFrameFeedData(sOpenThreadText, 0) == OT_ERROR_INVALID_STATE); in TestBuffer()
732 VerifyOrQuit(ncpBuffer.InFrameFeedData(sOpenThreadText, 0) == OT_ERROR_INVALID_STATE); in TestBuffer()
733 VerifyOrQuit(ncpBuffer.InFrameEnd() == OT_ERROR_INVALID_STATE); in TestBuffer()
738 VerifyOrQuit(ncpBuffer.InFrameFeedMessage(message) == OT_ERROR_INVALID_STATE); in TestBuffer()
740 VerifyOrQuit(ncpBuffer.InFrameEnd() == OT_ERROR_INVALID_STATE); in TestBuffer()
801 VerifyOrQuit(ncpBuffer.InFrameGetPosition(pos2) == OT_ERROR_INVALID_STATE); in TestBuffer()
812 VerifyOrQuit(ncpBuffer.InFrameGetPosition(pos2) == OT_ERROR_INVALID_STATE); in TestBuffer()
Dtest_spinel_decoder.cpp193 VerifyOrQuit(decoder.ResetToSaved() == OT_ERROR_INVALID_STATE); in TestDecoder()
213 VerifyOrQuit(decoder.ResetToSaved() == OT_ERROR_INVALID_STATE); in TestDecoder()
284 VerifyOrQuit(decoder.ResetToSaved() == OT_ERROR_INVALID_STATE); in TestDecoder()
290 VerifyOrQuit(decoder.ResetToSaved() == OT_ERROR_INVALID_STATE); in TestDecoder()
598 VerifyOrQuit(decoder.ResetToSaved() == OT_ERROR_INVALID_STATE); in TestDecoder()
/openthread-latest/examples/platforms/utils/
Duart_rtt.c103 otEXPECT_ACTION(sUartPendingUp, error = OT_ERROR_INVALID_STATE); in otPlatUartFlush()
/openthread-latest/src/core/common/
Derror.hpp69 constexpr Error kErrorInvalidState = OT_ERROR_INVALID_STATE;
/openthread-latest/examples/platforms/simulation/
Dradio.c264 …ACTION(sFilterMode != (deny ? kFilterAllowList : kFilterDenyList), error = OT_ERROR_INVALID_STATE); in ProcessNodeIdFilter()
469 otEXPECT_ACTION(sState == OT_RADIO_STATE_SLEEP, error = OT_ERROR_INVALID_STATE); in otPlatRadioDisable()
483 otError error = OT_ERROR_INVALID_STATE; in otPlatRadioSleep()
500 otError error = OT_ERROR_INVALID_STATE; in otPlatRadioReceive()
522 otError error = OT_ERROR_INVALID_STATE; in otPlatRadioTransmit()
Dble.c149 otEXPECT_ACTION(sFd != -1, error = OT_ERROR_INVALID_STATE); in otPlatBleGattServerIndicate()
Duart.c191 otEXPECT_ACTION(s_write_buffer != NULL && s_write_length > 0, error = OT_ERROR_INVALID_STATE); in otPlatUartFlush()
/openthread-latest/src/core/api/
Dnat64_api.cpp165 err = OT_ERROR_INVALID_STATE); in otNat64SynthesizeIp6Address()
/openthread-latest/src/ncp/
Dncp_base.cpp149 case OT_ERROR_INVALID_STATE: in ThreadErrorToSpinelStatus()
570 VerifyOrExit(!mDisableStreamWrite, error = OT_ERROR_INVALID_STATE); in StreamWrite()
571 … VerifyOrExit(!mChangedPropsSet.IsPropertyFiltered(streamPropKey), error = OT_ERROR_INVALID_STATE); in StreamWrite()
735 VerifyOrExit(!mDisableStreamWrite, error = OT_ERROR_INVALID_STATE); in Log()
1821 …rifyOrExit(mCurScanChannel[mCurCommandIid] == kInvalidScanChannel, error = OT_ERROR_INVALID_STATE); in HandlePropertySet()
2792 otError error = OT_ERROR_INVALID_STATE; in otNcpStreamWrite()
Dncp_base_radio.cpp497 VerifyOrExit(otLinkRawIsEnabled(mInstance), error = OT_ERROR_INVALID_STATE); in HandlePropertySet_SPINEL_PROP_STREAM_RAW()
Dncp_base_mtd.cpp1003 VerifyOrExit(mAllowLocalNetworkDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyInsert()
1044 VerifyOrExit(mAllowLocalNetworkDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyRemove()
1104 VerifyOrExit(mAllowLocalServerDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyInsert()
1138 VerifyOrExit(mAllowLocalServerDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyRemove()
2308 VerifyOrExit(mAllowLocalNetworkDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyInsert()
2334 VerifyOrExit(mAllowLocalNetworkDataChange, error = OT_ERROR_INVALID_STATE); in HandlePropertyRemove()
Dncp_base_ftd.cpp1155 if (error == OT_ERROR_INVALID_STATE) in HandlePropertyRemove()

12