25 switch (config.backend) {
50 if (!config_name.empty()) {
58#if FASTLED_LOG_RUNTIME_ENABLED
84 if (!
mConfig.affinity.empty()) {
91 bool recreate_device = !
mDevice ||
94 if (recreate_device) {
97 if (!
config.name.empty()) {
105 if (!
config.name.empty()) {
124 return mDevice->decode(timing, out);
T fetch_add(T value) FL_NOEXCEPT
void setConfig(const RxChannelConfig &config) FL_NOEXCEPT
fl::shared_ptr< RxDevice > mDevice
fl::result< u32, DecodeError > decode(const ChipsetTiming4Phase &timing, fl::span< u8 > out) FL_NOEXCEPT
virtual ~RxChannel() FL_NOEXCEPT
bool begin(const RxChannelConfig &config) FL_NOEXCEPT
size_t getRawEdgeTimes(fl::span< EdgeTime > out, size_t offset=0) FL_NOEXCEPT
static i32 nextId() FL_NOEXCEPT
RxWaitResult wait(u32 timeout_ms) FL_NOEXCEPT
bool injectEdges(fl::span< const EdgeTime > edges) FL_NOEXCEPT
static fl::string makeName(i32 id, const fl::string &config_name) FL_NOEXCEPT
int getPin() const FL_NOEXCEPT
fl::string getEngineName() const FL_NOEXCEPT
const RxChannelConfig & config() const FL_NOEXCEPT
static RxChannelPtr create(const RxChannelConfig &config) FL_NOEXCEPT
bool finished() const FL_NOEXCEPT
RxChannel(const RxChannelConfig &config, fl::shared_ptr< RxDevice > device) FL_NOEXCEPT
static fl::shared_ptr< RxDevice > create(int pin) FL_NOEXCEPT
Template factory method to create RX device by type.
static expected failure(E err, const char *msg=nullptr) FL_NOEXCEPT
Create error result.
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
Centralized logging categories for FastLED hardware interfaces and subsystems.
static fl::shared_ptr< RxDevice > createBackendDevice(const RxChannelConfig &config) FL_NOEXCEPT
static RxConfig toRxConfig(const RxChannelConfig &config) FL_NOEXCEPT
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
string to_string(T value) FL_NOEXCEPT
@ LPC_SCT_CAPTURE
LPC8xx SCT input-capture + DMA edge backend (LPC845 et al). Capture path is a skeleton until follow-u...
@ FLEXPWM
Teensy 4.x-only FlexPWM capture backend.
@ FLEXIO
Teensy 4.x-only FlexIO capture backend (FLEXIO1 — FLEXIO2 is owned by the WS2812 TX driver)....
@ PLATFORM_DEFAULT
Use the recommended backend for the active platform (RMT on ESP32; FlexPWM on Teensy 4....
@ RMT
ESP32-only RMT capture backend.
@ ISR
Platform-neutral interrupt-driven edge capture backend when available.
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
RxWaitResult
Result codes for RX wait() operations.
@ TIMEOUT
Operation timed out.
@ INVALID_ARGUMENT
Invalid input arguments.
Base definition for an LED controller.
4-phase RX timing thresholds for chipset detection
u32 skip_signals
Number of signals to skip before capturing (default: 0)
u32 signal_range_min_ns
Minimum pulse width (glitch filter, default: 100ns)
size_t buffer_size
Buffer size in symbols/edges (default: 512)
bool start_low
Pin idle state: true=LOW (WS2812B), false=HIGH (inverted)
bool use_dma
Use DMA streaming for RX (RMT only, default: false)
u32 signal_range_max_ns
Maximum pulse width (idle threshold, default: 100μs)
fl::optional< u32 > hz
Optional clock frequency (RMT only, default: 40MHz)
bool io_loop_back
Enable internal RMT loopback (RMT only, default: false)
Configuration for RX device initialization.