|
FastLED 3.10.6
|
Wave lookup table for UART LED encoding (waveN family)
Maps 2 LED bits to 1 UART data byte, computed from chipset timing. The UART frame (with TX inversion) is treated as two P-pulse LED bit slots, where P = pulses_per_bit:
buildWave10Lut() evaluates both geometries and picks the feasible one with the smaller quantization error (preferring P=5 on ties).
Valid HIGH pulse count per LED bit: [1, P-1]
Definition at line 77 of file uart_wave_encoder.h.
#include <uart_wave_encoder.h>
Public Member Functions | |
| u32 | baudRate (const ChipsetTimingConfig &timing) const FL_NO_EXCEPT |
| Baud rate this LUT's geometry requires for the timing (baud = P / bit_period; one UART bit per pulse). | |
| u8 | dataBits () const FL_NO_EXCEPT |
| UART word length for this geometry (2P - 2 data bits) | |
Static Public Member Functions | |
| static u32 | computeBaudRate (const ChipsetTimingConfig &timing) FL_NO_EXCEPT |
| Legacy fixed-wave10 baud computation (P = 5) | |
Public Attributes | |
| u8 | lut [4] |
| 2-bit input -> UART data byte | |
| u8 | pulses_per_bit |
| Frame geometry: 5 (wave10) or 4 (wave8-frame); 0 = infeasible. | |