FastLED 3.9.15
Loading...
Searching...
No Matches

◆ begin()

bool fl::RxChannel::begin ( const RxChannelConfig & config)

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

90 {
91 bool recreate_device = !mDevice ||
92 config.pin != mConfig.pin ||
93 config.backend != mConfig.backend;
94 if (recreate_device) {
96 }
97 if (!config.name.empty()) {
98 mName = config.name;
99 }
100 mConfig = config;
101 return mDevice ? mDevice->begin(toRxConfig(mConfig)) : false;
102}
fl::shared_ptr< RxDevice > mDevice
Definition channel.h:56
RxChannelConfig mConfig
Definition channel.h:55
const RxChannelConfig & config() const FL_NOEXCEPT
Definition channel.h:37
fl::string mName
Definition channel.h:54
static fl::shared_ptr< RxDevice > createBackendDevice(const RxChannelConfig &config) FL_NOEXCEPT
static RxConfig toRxConfig(const RxChannelConfig &config) FL_NOEXCEPT

References config(), FL_NOEXCEPT, mConfig, mDevice, and mName.

Referenced by executeToggles().

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