MCPcopy Create free account
hub / github.com/FastLED/FastLED / canHandle

Method canHandle

src/platforms/esp/32/drivers/uart/channel_driver_uart.cpp.hpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool ChannelEngineUART::canHandle(const ChannelDataPtr& data) const FL_NOEXCEPT {
60 if (!data) {
61 return false;
62 }
63 // Reject SPI chipsets
64 if (data->isSpi()) {
65 return false;
66 }
67 // Validate that the chipset's timing is representable via UART wave10
68 const ChipsetTimingConfig& timing = data->getTiming();
69 return canRepresentTiming(timing);
70}
71
72//=============================================================================
73// Public Interface - IChannelDriver Implementation

Callers

nothing calls this directly

Calls 2

canRepresentTimingFunction · 0.85
isSpiMethod · 0.45

Tested by

no test coverage detected