FastLED 3.10.8
Loading...
Searching...
No Matches

◆ toRxConfig()

static RxConfig fl::anonymous_namespace{channel.cpp.hpp}::toRxConfig ( const RxChannelConfig & config)
static

Definition at line 11 of file channel.cpp.hpp.

11 {
12 RxConfig out;
13 out.buffer_size = config.edge_capacity;
14 out.hz = config.hz;
17 out.skip_signals = config.skip_signals;
18 out.start_low = config.start_low;
19 out.io_loop_back = config.io_loop_back;
20 out.use_dma = config.use_dma;
21 out.stream_timing = config.stream_timing;
22 return out;
23}
fl::optional< u32 > hz
Definition config.h:19
u32 signal_range_max_ns
Definition config.h:21
size_t edge_capacity
Definition config.h:18
fl::optional< ChipsetTiming4Phase > stream_timing
Decode thresholds for backends that decode while capturing (Teensy 4.x FlexPWM).
Definition config.h:28
u32 signal_range_min_ns
Definition config.h:20
u32 skip_signals
Number of signals to skip before capturing (default: 0)
Definition rx.h:231
fl::optional< ChipsetTiming4Phase > stream_timing
Definition rx.h:256
u32 signal_range_min_ns
Minimum pulse width (glitch filter, default: 100ns)
Definition rx.h:229
size_t buffer_size
Buffer size in symbols/edges (default: 512)
Definition rx.h:225
bool start_low
Pin idle state: true=LOW (WS2812B), false=HIGH (inverted)
Definition rx.h:232
bool use_dma
Use DMA streaming for RX (RMT only, default: false)
Definition rx.h:250
u32 signal_range_max_ns
Maximum pulse width (idle threshold, default: 100μs)
Definition rx.h:230
fl::optional< u32 > hz
Optional clock frequency (RMT only, default: 40MHz)
Definition rx.h:226
bool io_loop_back
Enable internal RMT loopback (RMT only, default: false)
Definition rx.h:240
Configuration for RX device initialization.
Definition rx.h:223

References fl::RxConfig::buffer_size, fl::FL_NO_EXCEPT, fl::RxConfig::hz, fl::RxConfig::io_loop_back, fl::RxConfig::signal_range_max_ns, fl::RxConfig::signal_range_min_ns, fl::RxConfig::skip_signals, fl::RxConfig::start_low, fl::RxConfig::stream_timing, toRxConfig(), and fl::RxConfig::use_dma.

Referenced by toRxConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: