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

◆ calibrate()

void fl::channels::rx::Ws2812StreamDecoder::calibrate ( )
private

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

169 {
171 mStats.calibratedMidpointNs = mMidpoint;
172 mCalibrated = true;
173 for (u32 k = 0; k < mPendingCount; ++k) {
174 classify(mPending[k].high_ns, mPending[k].mode);
175 }
176 mPendingCount = 0;
177}
void classify(u32 high_ns, Mode mode) FL_NO_EXCEPT
u32 flexPwmAdaptiveMidpointNs(const ChipsetTiming4Phase &timing, u32 high_min, u32 high_max, u32 samples) FL_NO_EXCEPT
#3416 adaptive midpoint: (min + max) / 2 of the observed HIGH widths once there are enough samples sp...

References classify(), fl::FL_NO_EXCEPT, fl::channels::rx::flexPwmAdaptiveMidpointNs(), mCalibrated, mHighMax, mHighMin, mHighSamples, mMidpoint, mPending, mPendingCount, mStats, and mTiming.

Referenced by flush(), and pushBit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: