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

Method waitComplete

src/fl/channels/spi/device.cpp.hpp:325–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325bool Device::waitComplete(u32 timeout_ms) {
326 if (!isReady()) {
327 return false;
328 }
329
330 // Get hardware controller
331 if (!pImpl->hw_backend) {
332 FL_WARN("SPI Device: No hardware controller available");
333 return false;
334 }
335
336 // Use polymorphic interface (works for SpiHw1/2/4/8)
337 SpiHwBase* hw = pImpl->hw_backend.get();
338
339 return hw->waitComplete(timeout_ms);
340}
341
342bool Device::isBusy() const {
343 if (!isReady()) {

Callers 4

waitMethod · 0.45
transmitMethod · 0.45
waitMethod · 0.45
transmitBatchMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected