FastLED 3.9.15
Loading...
Searching...
No Matches
fl::spi::DeviceImplBase Struct Reference

Detailed Description

Common functionality for device implementation (pImpl pattern)

Provides shared state and helper methods used by both MultiLaneDevice and ParallelDevice implementations

Definition at line 19 of file device_impl_base.h.

#include <device_impl_base.h>

+ Inheritance diagram for fl::spi::DeviceImplBase:
+ Collaboration diagram for fl::spi::DeviceImplBase:

Public Member Functions

 DeviceImplBase () FL_NOEXCEPT
 Constructor.
 
void clearBackend ()
 Clear backend state.
 
bool hasBackend () const
 Validate backend pointer.
 
bool isReady () const
 Check if device is ready.
 

Public Attributes

fl::shared_ptr< SpiHwBase > backend
 Polymorphic SPI hardware backend (SpiHw1/2/4/8)
 
bool initialized
 Whether hardware is initialized.
 
bool owns_backend
 Whether this device owns the backend (for cleanup)
 

The documentation for this struct was generated from the following file: