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

◆ Channel() [1/5]

fl::Channel::Channel ( const ChipsetVariant & chipset,
EOrder rgbOrder,
RegistrationMode mode )
protected

Protected constructor for template subclasses (e.g., ClocklessIdf5)

Parameters
chipsetChipset configuration (clockless or SPI)
rgbOrderRGB channel ordering
modeRegistration mode (AutoRegister or DeferRegister)
Note
Does not set LED data or channel options - caller must do that

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

207 : CPixelLEDController<RGB>(mode)
208 , mChipset(chipset)
209 , mRgbOrder(rgbOrder)
210 , mDriver()
211 , mBus(Bus::AUTO)
212 , mId(nextId())
213 , mName(makeName(mId)) {
214 // NOTE: Do NOT call fl::pinMode() here — see comment in the
215 // Channel(ChipsetVariant, span, EOrder, ChannelOptions) constructor.
217}
EOrder mRgbOrder
Definition channel.h:255
static fl::string makeName(i32 id, const fl::optional< fl::string > &configName=fl::optional< fl::string >())
ChipsetVariant mChipset
Definition channel.h:254
ChannelDataPtr mChannelData
Definition channel.h:279
static i32 nextId()
fl::weak_ptr< IChannelDriver > mDriver
Definition channel.h:256
const i32 mId
Definition channel.h:276
fl::string mName
Definition channel.h:277
static ChannelDataPtr create(const ChipsetVariant &chipset, fl::vector_psram< u8 > &&encodedData=fl::vector_psram< u8 >()) FL_NOEXCEPT
Create channel transmission data (modern variant-based API)
Definition data.cpp.hpp:12
@ AUTO
Sentinel: defer to DefaultBus<Chipset>::value.
Definition bus.h:61

References CPixelLEDController< RGB >::CPixelLEDController(), fl::AUTO, fl::ChannelData::create(), makeName(), mBus, mChannelData, mChipset, mDriver, mId, mName, mRgbOrder, nextId(), and fl::RGB.

Referenced by Channel(), Channel(), operator=(), operator=(), setGamma(), setScreenMap(), setScreenMap(), setScreenMap(), and setScreenMap().

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