FastLED 3.10.6
Loading...
Searching...
No Matches
five_bit_semantics.h
Go to the documentation of this file.
1#pragma once
2
3// Per-chip 5-bit field semantics for the colour-managed HD path (P8, B1,
4// #4042).
5//
6// APA102-class parts drive their 5-bit field as a secondary slow PWM stage,
7// so a joint code/field solve may use it for low-light resolution, bounded
8// below by a flicker floor. SK9822's field is a current gain whose effect on
9// chromaticity is not characterised, so it is held fixed. A chip whose
10// semantics are not known gets the SK9822-conservative treatment. A bound
11// profile's `five_bit_semantics`, when it says anything, overrides the chip's
12// default.
13
15#include "fl/gfx/color_profile.h" // FiveBitSemantics
16#include "fl/stl/int.h"
17#include "fl/stl/noexcept.h"
18
19namespace fl {
20
26
29u8 hdMinimumField(FiveBitSemantics semantics, u8 floor_setting) FL_NO_EXCEPT;
30
31namespace detail {
35} // namespace detail
36
37} // namespace fl
u8 & hdFieldFloor() FL_NO_EXCEPT
Backing store for CFastLED::setHdFieldFloor().
Compile-time linker keep-alive hook for a single fl::Bus.
Definition bus_info.h:57
unsigned char u8
Definition stdint.h:131
FiveBitSemantics
u8 hdMinimumField(FiveBitSemantics semantics, u8 floor_setting) FL_NO_EXCEPT
The lowest field the managed HD path may choose: the configured flicker floor for a secondary slow-PW...
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
SpiChipset
LED chipsets with SPI interface (clocked protocols) Modern type-safe enum class - prefer this for new...
FiveBitSemantics fiveBitSemanticsFor(SpiChipset chip, FiveBitSemantics profile) FL_NO_EXCEPT
The 5-bit semantics for chip, with profile overriding the chip's default when it is not NotApplicable...
Base definition for an LED controller.
Definition crgb.hpp:179
SPI LED chipset enumeration.