FastLED 3.10.8
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/channels/rx.h"
5#include "fl/stl/cstddef.h"
6#include "fl/stl/noexcept.h"
7#include "fl/stl/optional.h"
8#include "fl/stl/string.h"
9
10namespace fl {
11
14 int pin = -1;
17
18 size_t edge_capacity = 4096;
21 u32 signal_range_max_ns = 100000;
22 u32 skip_signals = 0;
23 bool start_low = true;
24 bool io_loop_back = false;
25 bool use_dma = false;
29
31 explicit RxChannelConfig(int pin_param) FL_NO_EXCEPT
32 : pin(pin_param) {}
33 RxChannelConfig(int pin_param, RxBackend backend_param) FL_NO_EXCEPT
34 : pin(pin_param)
35 , backend(backend_param) {}
36};
37
38} // namespace fl
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Optional< T > optional
Definition optional.h:16
RxBackend
Definition types.h:8
@ PLATFORM_DEFAULT
Use the recommended backend for the active platform (RMT on ESP32; FlexPWM on Teensy 4....
Definition types.h:10
Base definition for an LED controller.
Definition crgb.hpp:179
Common RX interfaces and shared types.
RxChannelConfig(int pin_param, RxBackend backend_param) FL_NO_EXCEPT
Definition config.h:33
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::string affinity
Definition config.h:16
fl::optional< ChipsetTiming4Phase > stream_timing
Decode thresholds for backends that decode while capturing (Teensy 4.x FlexPWM).
Definition config.h:28
RxChannelConfig() FL_NO_EXCEPT=default
fl::string name
Definition config.h:13
u32 signal_range_min_ns
Definition config.h:20
RxBackend backend
Definition config.h:15