Lines Matching refs:mEncoder
272 , mEncoder(mTxFrameBuffer) in NcpBase()
589 SuccessOrExit(error = mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, streamPropKey)); in StreamWrite()
590 SuccessOrExit(error = mEncoder.WriteData(aDataPtr, static_cast<uint16_t>(aDataLen))); in StreamWrite()
591 SuccessOrExit(error = mEncoder.EndFrame()); in StreamWrite()
754 …SuccessOrExit(error = mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, SPINEL_PROP_STREAM_LOG… in Log()
755 SuccessOrExit(error = mEncoder.WriteUtf8(aLogString)); in Log()
756 SuccessOrExit(error = mEncoder.WriteUint8(ConvertLogLevel(aLogLevel))); in Log()
757 SuccessOrExit(error = mEncoder.WriteUintPacked(ConvertLogRegion(aLogRegion))); in Log()
758 SuccessOrExit(error = mEncoder.WriteUint64(mLogTimestampBase + otPlatAlarmMilliGetNow())); in Log()
759 SuccessOrExit(error = mEncoder.EndFrame()); in Log()
1208 …SuccessOrExit(error = mEncoder.BeginFrame(aHeader, SPINEL_CMD_PROP_VALUE_IS, SPINEL_PROP_LAST_STAT… in WriteLastStatusFrame()
1209 SuccessOrExit(error = mEncoder.WriteUintPacked(aLastStatus)); in WriteLastStatusFrame()
1210 SuccessOrExit(error = mEncoder.EndFrame()); in WriteLastStatusFrame()
1223 SuccessOrExit(error = mEncoder.BeginFrame(aHeader, SPINEL_CMD_PROP_VALUE_IS, aPropKey)); in WritePropertyValueIsFrame()
1225 ExitNow(error = mEncoder.EndFrame()); in WritePropertyValueIsFrame()
1231 SuccessOrExit(error = mEncoder.BeginFrame(aHeader, SPINEL_CMD_PROP_VALUE_IS, aPropKey)); in WritePropertyValueIsFrame()
1242 ExitNow(error = mEncoder.EndFrame()); in WritePropertyValueIsFrame()
1271 SuccessOrExit(error = mEncoder.BeginFrame(aHeader, aResponseCommand, aPropKey)); in WritePropertyValueInsertedRemovedFrame()
1272 SuccessOrExit(error = mEncoder.WriteData(aValuePtr, aValueLen)); in WritePropertyValueInsertedRemovedFrame()
1273 SuccessOrExit(error = mEncoder.EndFrame()); in WritePropertyValueInsertedRemovedFrame()
1309 mEncoder.ClearNcpBuffer(); in CommandHandler_RESET()
1394 SuccessOrExit(responseError = mEncoder.BeginFrame(aHeader, SPINEL_CMD_PEEK_RET)); in CommandHandler_PEEK()
1395 SuccessOrExit(responseError = mEncoder.WriteUint32(address)); in CommandHandler_PEEK()
1396 SuccessOrExit(responseError = mEncoder.WriteUint16(count)); in CommandHandler_PEEK()
1397 …SuccessOrExit(responseError = mEncoder.WriteData(reinterpret_cast<const uint8_t *>(address), count… in CommandHandler_PEEK()
1398 SuccessOrExit(responseError = mEncoder.EndFrame()); in CommandHandler_PEEK()
1467 …SuccessOrExit(error = mEncoder.BeginFrame(aHeader, SPINEL_CMD_PROP_VALUE_IS, SPINEL_PROP_NEST_STRE… in HandlePropertySet_SPINEL_PROP_NEST_STREAM_MFG()
1468 SuccessOrExit(error = mEncoder.WriteUtf8(output)); in HandlePropertySet_SPINEL_PROP_NEST_STREAM_MFG()
1469 SuccessOrExit(error = mEncoder.EndFrame()); in HandlePropertySet_SPINEL_PROP_NEST_STREAM_MFG()
1503 … SuccessOrExit(mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, SPINEL_PROP_NEST_STREAM_MFG)); in HandleDiagOutput()
1504 SuccessOrExit(mEncoder.WriteUtf8(output)); in HandleDiagOutput()
1505 SuccessOrExit(mEncoder.EndFrame()); in HandleDiagOutput()
1517 return mEncoder.WriteBool(otLinkRawIsEnabled(mInstance)); in HandlePropertyGet()
1519 return mEncoder.WriteBool(false); in HandlePropertyGet()
1525 return mEncoder.WriteUint8(otLinkGetChannel(mInstance)); in HandlePropertyGet()
1564 …return mEncoder.WriteUint8(isPromiscuous ? SPINEL_MAC_PROMISCUOUS_MODE_FULL : SPINEL_MAC_PROMISCUO… in HandlePropertyGet()
1616 return mEncoder.WriteUint16(otLinkGetPanId(mInstance)); in HandlePropertyGet()
1634 return mEncoder.WriteEui64(*otLinkGetExtendedAddress(mInstance)); in HandlePropertyGet()
1652 return mEncoder.WriteUint16(otLinkGetShortAddress(mInstance)); in HandlePropertyGet()
1657 return mEncoder.WriteBool(mIsRawStreamEnabled[mCurCommandIid]); in HandlePropertyGet()
1717 return mEncoder.WriteUint8(otPlatRadioGetCslAccuracy(mInstance)); in HandlePropertyGet()
1724 return mEncoder.WriteUint8(otPlatRadioGetCslUncertainty(mInstance)); in HandlePropertyGet()
1736 SuccessOrExit(error = mEncoder.WriteUint8(i)); in EncodeChannelMask()
1781 return mEncoder.WriteUint16(mScanPeriod); in HandlePropertyGet()
1825 return mEncoder.WriteUint8(scanState); in HandlePropertyGet()
1905 SuccessOrExit(error = mEncoder.WriteUintPacked(entry->mPropKey)); in HandlePropertyGet()
1971 return mEncoder.WriteUintPacked(mLastStatus); in HandlePropertyGet()
1978 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_PROTOCOL_VERSION_THREAD_MAJOR)); in HandlePropertyGet()
1979 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_PROTOCOL_VERSION_THREAD_MINOR)); in HandlePropertyGet()
1987 return mEncoder.WriteUintPacked(SPINEL_PROTOCOL_TYPE_THREAD); in HandlePropertyGet()
1992 return mEncoder.WriteUintPacked(0); // Vendor ID. Zero for unknown. in HandlePropertyGet()
1999 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_COUNTERS)); in HandlePropertyGet()
2000 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_UNSOL_UPDATE_FILTER)); in HandlePropertyGet()
2003 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MCU_POWER_STATE)); in HandlePropertyGet()
2007 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_802_15_4_2450MHZ_OQPSK)); in HandlePropertyGet()
2011 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_802_15_4_915MHZ_OQPSK)); in HandlePropertyGet()
2015 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CONFIG_FTD)); in HandlePropertyGet()
2017 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CONFIG_MTD)); in HandlePropertyGet()
2019 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CONFIG_RADIO)); in HandlePropertyGet()
2023 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MAC_RAW)); in HandlePropertyGet()
2027 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_RCP_API_VERSION)); in HandlePropertyGet()
2028 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_RCP_MIN_HOST_API_VERSION)); in HandlePropertyGet()
2032 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_RCP_RESET_TO_BOOTLOADER)); in HandlePropertyGet()
2036 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_RCP_LOG_CRASH_DUMP)); in HandlePropertyGet()
2040 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_POSIX)); in HandlePropertyGet()
2044 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_OPENTHREAD_LOG_METADATA)); in HandlePropertyGet()
2049 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_NET_THREAD_1_1)); in HandlePropertyGet()
2052 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_NET_THREAD_1_2)); in HandlePropertyGet()
2055 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_PCAP)); in HandlePropertyGet()
2058 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MAC_ALLOWLIST)); in HandlePropertyGet()
2062 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_JAM_DETECT)); in HandlePropertyGet()
2065 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CHILD_SUPERVISION)); in HandlePropertyGet()
2068 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CHANNEL_MONITOR)); in HandlePropertyGet()
2072 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_CHANNEL_MANAGER)); in HandlePropertyGet()
2076 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_TIME_SYNC)); in HandlePropertyGet()
2079 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_ERROR_RATE_TRACKING)); in HandlePropertyGet()
2082 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_OOB_STEERING_DATA)); in HandlePropertyGet()
2086 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_SLAAC)); in HandlePropertyGet()
2090 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_RADIO_COEX)); in HandlePropertyGet()
2094 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MAC_RETRY_HISTOGRAM)); in HandlePropertyGet()
2098 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_PEEK_POKE)); in HandlePropertyGet()
2102 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_ROLE_ROUTER)); in HandlePropertyGet()
2105 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_ROLE_SLEEPY)); in HandlePropertyGet()
2108 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_COMMISSIONER)); in HandlePropertyGet()
2112 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_JOINER)); in HandlePropertyGet()
2116 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_BORDER_ROUTER)); in HandlePropertyGet()
2120 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_UDP_FORWARD)); in HandlePropertyGet()
2124 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_SERVICE)); in HandlePropertyGet()
2128 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_CSL_RECEIVER)); in HandlePropertyGet()
2132 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_MULTI_RADIO)); in HandlePropertyGet()
2136 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_SRP_CLIENT)); in HandlePropertyGet()
2140 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_LINK_METRICS)); in HandlePropertyGet()
2144 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_DUA)); in HandlePropertyGet()
2148 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_REFERENCE_DEVICE)); in HandlePropertyGet()
2152 SuccessOrExit(error = mEncoder.WriteUintPacked(SPINEL_CAP_THREAD_BACKBONE_ROUTER)); in HandlePropertyGet()
2163 return mEncoder.WriteUtf8(otGetVersionString()); in HandlePropertyGet()
2180 return mEncoder.WriteUint8(instances); in HandlePropertyGet()
2204 return mEncoder.WriteUint8(state); in HandlePropertyGet()
2263 return mEncoder.WriteUint8(SPINEL_MCU_POWER_STATE_ON); in HandlePropertyGet()
2270 return mEncoder.WriteUint8(SPINEL_POWER_STATE_ONLINE); in HandlePropertyGet()
2281 return mEncoder.WriteEui64(hwAddr); in HandlePropertyGet()
2287 return mEncoder.OverwriteWithLastStatusError(SPINEL_STATUS_UNIMPLEMENTED); in HandlePropertyGet()
2292 return mEncoder.WriteUint8(mHostPowerState); in HandlePropertyGet()
2380 SuccessOrExit(error = mEncoder.WriteUintPacked(entry->mPropKey)); in HandlePropertyGet()
2390 return mEncoder.WriteInt8(otPlatRadioGetRssi(mInstance)); in HandlePropertyGet()
2395 return mEncoder.WriteInt8(otPlatRadioGetReceiveSensitivity(mInstance)); in HandlePropertyGet()
2416 return mEncoder.WriteUint32(freq_khz); in HandlePropertyGet()
2428 error = mEncoder.WriteInt8(threshold); in HandlePropertyGet()
2432 error = mEncoder.OverwriteWithLastStatusError(ThreadErrorToSpinelStatus(error)); in HandlePropertyGet()
2459 error = mEncoder.WriteInt8(power); in HandlePropertyGet()
2463 error = mEncoder.OverwriteWithLastStatusError(ThreadErrorToSpinelStatus(error)); in HandlePropertyGet()
2490 error = mEncoder.WriteInt8(gain); in HandlePropertyGet()
2494 error = mEncoder.OverwriteWithLastStatusError(ThreadErrorToSpinelStatus(error)); in HandlePropertyGet()
2534 error = mEncoder.WriteUint16(regionCode); in HandlePropertyGet()
2538 error = mEncoder.OverwriteWithLastStatusError(ThreadErrorToSpinelStatus(error)); in HandlePropertyGet()
2567 OT_UNREACHABLE_CODE(return mEncoder.WriteBool(false);) in HandlePropertyGet()
2582 return mEncoder.WriteUint8(ConvertLogLevel(otLoggingGetLevel())); in HandlePropertyGet()
2650 return mEncoder.WriteUint64(mLogTimestampBase); in HandlePropertyGet()
2682 return mEncoder.WriteBool(otPlatRadioIsCoexEnabled(mInstance)); in HandlePropertyGet()
2692 error = mEncoder.OverwriteWithLastStatusError(ThreadErrorToSpinelStatus(error)); in HandlePropertyGet()
2697 SuccessOrExit(error = mEncoder.OpenStruct()); in HandlePropertyGet()
2698 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxRequest)); in HandlePropertyGet()
2699 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxGrantImmediate)); in HandlePropertyGet()
2700 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxGrantWait)); in HandlePropertyGet()
2701 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxGrantWaitActivated)); in HandlePropertyGet()
2702 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxGrantWaitTimeout)); in HandlePropertyGet()
2703 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxGrantDeactivatedDuringRequest)); in HandlePropertyGet()
2704 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumTxDelayedGrant)); in HandlePropertyGet()
2705 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mAvgTxRequestToGrantTime)); in HandlePropertyGet()
2706 SuccessOrExit(error = mEncoder.CloseStruct()); in HandlePropertyGet()
2709 SuccessOrExit(error = mEncoder.OpenStruct()); in HandlePropertyGet()
2710 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxRequest)); in HandlePropertyGet()
2711 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantImmediate)); in HandlePropertyGet()
2712 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantWait)); in HandlePropertyGet()
2713 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantWaitActivated)); in HandlePropertyGet()
2714 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantWaitTimeout)); in HandlePropertyGet()
2715 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantDeactivatedDuringRequest)); in HandlePropertyGet()
2716 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxDelayedGrant)); in HandlePropertyGet()
2717 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mAvgRxRequestToGrantTime)); in HandlePropertyGet()
2718 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumRxGrantNone)); in HandlePropertyGet()
2719 SuccessOrExit(error = mEncoder.CloseStruct()); in HandlePropertyGet()
2722 SuccessOrExit(error = mEncoder.WriteBool(coexMetrics.mStopped)); in HandlePropertyGet()
2723 SuccessOrExit(error = mEncoder.WriteUint32(coexMetrics.mNumGrantGlitch)); in HandlePropertyGet()