FastLED 3.10.6
Loading...
Searching...
No Matches

◆ hdMinimumField()

u8 fl::hdMinimumField ( FiveBitSemantics semantics,
u8 floor_setting )

The lowest field the managed HD path may choose: the configured flicker floor for a secondary slow-PWM field, 31 (held fixed) for everything else.

Definition at line 30 of file five_bit_semantics.cpp.hpp.

30 {
31 if (semantics != FiveBitSemantics::SecondarySlowPwm) {
32 return 31;
33 }
34 if (floor_setting < 1) {
35 return 1;
36 }
37 return floor_setting > 31 ? 31 : floor_setting;
38}

References FL_NO_EXCEPT, and SecondarySlowPwm.

Referenced by fl::anonymous_namespace{pipeline_binding.cpp.hpp}::encodeColorPipelineManagedSpi(), and powerChannelCodecPolicy().

+ Here is the caller graph for this function: