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

◆ baudRate()

u32 fl::Wave10Lut::baudRate ( const ChipsetTimingConfig & timing) const
inline

Baud rate this LUT's geometry requires for the timing (baud = P / bit_period; one UART bit per pulse).

Definition at line 88 of file uart_wave_encoder.h.

88 {
89 const u32 period_ns = timing.total_period_ns();
90 if (period_ns == 0 || pulses_per_bit == 0) return 0;
91 return static_cast<u32>(
92 static_cast<u64>(pulses_per_bit) * 1000000000ULL / period_ns);
93 }
fl::u64 u64
Definition stdint.h:220
u8 pulses_per_bit
Frame geometry: 5 (wave10) or 4 (wave8-frame); 0 = infeasible.

References fl::FL_NO_EXCEPT, and pulses_per_bit.