FastLED 3.10.8
Loading...
Searching...
No Matches

◆ reset()

void fl::channels::rx::Ws2812StreamDecoder::reset ( const ChipsetTiming4Phase & stream_timing,
u32 ns_per_tick_q16,
fl::span< u8 > out,
fl::span< EdgeTime > diag_edges )

Start a frame.

stream_timing classifies bits while capturing. out receives decoded bytes and must outlive the frame; diag_edges (may be empty) receives the first edges for getRawEdgeTimes() diagnostics.

Definition at line 96 of file ws2812_stream_decoder.cpp.hpp.

98 {
99 mTiming = stream_timing;
100 mNsPerTickQ16 = ns_per_tick_q16;
101 mOut = out;
102 mDiag = diag_edges;
103 mDiagCount = 0;
104 mHavePrev = false;
105 mStarted = false;
106 mPrevRise = 0;
107 mPrevFall = 0;
108 mEdgeIndex = 0;
109 mHighMin = 0xFFFFFFFFu;
110 mHighMax = 0;
111 mHighSamples = 0;
112 mCalibrated = false;
113 mMidpoint = 0;
114 mPendingCount = 0;
115 mExceptionCount = 0;
116 mCurByte = 0;
117 mBitCount = 0;
118 mBitPos = 0;
119 mFlushed = false;
120 mPartialWritten = false;
121 mStats = Stats();
122}

References fl::FL_NO_EXCEPT, mBitCount, mBitPos, mCalibrated, mCurByte, mDiag, mDiagCount, mEdgeIndex, mExceptionCount, mFlushed, mHavePrev, mHighMax, mHighMin, mHighSamples, mMidpoint, mNsPerTickQ16, mOut, mPartialWritten, mPendingCount, mPrevFall, mPrevRise, mStarted, mStats, and mTiming.