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

◆ enqueue()

void fl::SpiChannelEngineAdapter::enqueue ( ChannelDataPtr channelData)
overridevirtual

Enqueue channel data for transmission.

Parameters
channelDataChannel data to transmit
Note
Batches multiple channels for later transmission

Implements fl::IChannelDriver.

Definition at line 213 of file spi_channel_adapter.cpp.hpp.

213 {
214 if (!channelData) {
215 FL_WARN("SpiChannelEngineAdapter: Null channel data passed to enqueue()");
216 return;
217 }
218
219 // Validate that we can handle this data
220 if (!canHandle(channelData)) {
221 FL_WARN("SpiChannelEngineAdapter: Cannot handle non-SPI channel data (chipset mismatch)");
222 return;
223 }
224
225 mEnqueuedChannels.push_back(channelData);
226 FL_DBG("SpiChannelEngineAdapter: Enqueued channel (total: " << mEnqueuedChannels.size() << ")");
227}
fl::vector< ChannelDataPtr > mEnqueuedChannels
Channels waiting for show()
bool canHandle(const ChannelDataPtr &data) const override
Check if adapter can handle channel data.
#define FL_WARN(X)
Definition log.h:276
#define FL_DBG
Definition log.h:388

References canHandle(), FL_DBG, FL_WARN, and mEnqueuedChannels.

+ Here is the call graph for this function: