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

◆ isBusy()

bool fl::spi::Device::isBusy ( ) const

Check if async operation is in progress.

Returns
true if busy, false if idle

Definition at line 342 of file device.cpp.hpp.

342 {
343 if (!isReady()) {
344 return false;
345 }
346
347 // Get hardware controller
348 if (!pImpl->hw_backend) {
349 return false;
350 }
351
352 // Use polymorphic interface (works for SpiHw1/2/4/8)
353 SpiHwBase* hw = pImpl->hw_backend.get();
354
355 return hw->isBusy();
356}
bool isReady() const
Check if device is initialized and ready for use.
fl::unique_ptr< Impl > pImpl
Definition device.h:134

References isReady(), and pImpl.

+ Here is the call graph for this function: