FastLED 3.10.10
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 221 of file spi_channel_adapter.cpp.hpp.

221 {
222 if (!channelData) {
223 FL_WARN("SpiChannelEngineAdapter: Null channel data passed to enqueue()");
224 return;
225 }
226
227 // Validate that we can handle this data
228 if (!canHandle(channelData)) {
229 FL_WARN("SpiChannelEngineAdapter: Cannot handle non-SPI channel data (chipset mismatch)");
230 return;
231 }
232
233 mEnqueuedChannels.push_back(channelData);
234 FL_DBG("SpiChannelEngineAdapter: Enqueued channel (total: " << mEnqueuedChannels.size() << ")");
235}
bool canHandle(const ChannelDataPtr &data) const FL_NO_EXCEPT override
Check if adapter can handle channel data.
fl::vector< ChannelDataPtr > mEnqueuedChannels
Channels waiting for show()
#define FL_WARN(...)
Definition log.h:437
#define FL_DBG
Definition log.h:553

References canHandle(), FL_DBG, fl::FL_NO_EXCEPT, FL_WARN, and mEnqueuedChannels.

+ Here is the call graph for this function: