FastLED 3.9.15
Loading...
Searching...
No Matches
encoder_utils.h File Reference

Detailed Description

Shared utilities for SPI chipset encoders.

Common functions used by multiple encoder implementations including brightness mapping, checksum generation, and color scaling.

Definition in file encoder_utils.h.

#include "fl/stl/stdint.h"
#include "fl/gfx/gamma_lut.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for encoder_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

void fl::hd108BrightnessHeader (u8 brightness_8bit, u8 *f0_out, u8 *f1_out) FL_NOEXCEPT
 Generate HD108 per-channel gain header bytes.
 
u16 fl::hd108GammaCorrect (u8 value) FL_NOEXCEPT
 Convert 8-bit color to HD108 16-bit gamma-corrected value (gamma 2.8)
 
u16 fl::lpd6803EncodeRGB (u8 r, u8 g, u8 b) FL_NOEXCEPT
 Convert RGB to LPD6803 16-bit format (1bbbbbgggggrrrrr)
 
u8 fl::lpd8806Encode (u8 value) FL_NOEXCEPT
 Apply LPD8806 encoding to a single color byte.
 
u8 fl::mapBrightness8to5 (u8 brightness_8bit) FL_NOEXCEPT
 Map 8-bit brightness to 5-bit (0-31)
 
u8 fl::p9813FlagByte (u8 r, u8 g, u8 b) FL_NOEXCEPT
 Generate P9813 flag byte from RGB components.