FastLED 3.10.8
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 340 of file device.cpp.hpp.

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

References fl::FL_NO_EXCEPT, isReady(), and pImpl.

+ Here is the call graph for this function: