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

◆ flexPwmStaticMidpointNs()

u32 fl::channels::rx::flexPwmStaticMidpointNs ( const ChipsetTiming4Phase & timing)
inline

Static threshold between a 0 and a 1 HIGH: midpoint of T0H max / T1H min.

Definition at line 47 of file ws2812_stream_decoder.h.

47 {
48 return (timing.t0h_max_ns + timing.t1h_min_ns) / 2u;
49}
u32 t1h_min_ns
Bit 1 high time minimum (e.g., 650ns)
Definition rx.h:96
u32 t0h_max_ns
Bit 0 high time maximum (e.g., 550ns)
Definition rx.h:91

References fl::FL_NO_EXCEPT.

Referenced by flexPwmAdaptiveMidpointNs().

+ Here is the caller graph for this function: