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

◆ flexPwmBitFromMidpoint()

int fl::channels::rx::flexPwmBitFromMidpoint ( u32 high_ns,
u32 midpoint_ns )
inline

Bit from a HIGH followed by a normal LOW: HIGH-only midpoint split.

Always 0 or 1 so one marginal bit cannot shift the rest of the frame (#3219).

Definition at line 70 of file ws2812_stream_decoder.h.

70 {
71 return (high_ns >= midpoint_ns) ? 1 : 0;
72}

References fl::FL_NO_EXCEPT.

Referenced by fl::channels::rx::Ws2812StreamDecoder::classify(), decodeFlexPwmEdges(), and fl::channels::rx::Ws2812StreamDecoder::finish().

+ Here is the caller graph for this function: