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

◆ fiveBitSemanticsFor()

FiveBitSemantics fl::fiveBitSemanticsFor ( SpiChipset chip,
FiveBitSemantics profile )

The 5-bit semantics for chip, with profile overriding the chip's default when it is not NotApplicable.

Non-HD chips have no field solve and are NotApplicable whatever the profile says.

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

9 {
11 switch (chip) {
15 break;
17 chip_default = FiveBitSemantics::CurrentGain;
18 break;
20 // Protocol-compatible with APA102, but what its field does to
21 // light is not documented: B1's conservative default.
22 chip_default = FiveBitSemantics::Unknown;
23 break;
24 default:
26 }
27 return profile != FiveBitSemantics::NotApplicable ? profile : chip_default;
28}
FiveBitSemantics
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
@ DOTSTARHD
APA102HD LED chipset alias.
@ SK9822HD
SK9822 LED chipset with 5-bit gamma correction.
@ HD107HD
Same as APA102HD, but in turbo 40-mhz mode.

References APA102HD, CurrentGain, DOTSTARHD, FL_NO_EXCEPT, HD107HD, NotApplicable, SecondarySlowPwm, SK9822HD, and Unknown.

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

+ Here is the caller graph for this function: