FastLED 3.10.8
Loading...
Searching...
No Matches

◆ MultiLaneDevice() [1/3]

fl::spi::MultiLaneDevice::MultiLaneDevice ( const Config & config)
explicit

Construct multi-lane device.

Parameters
configConfiguration with 1-8 data pins

Definition at line 59 of file multi_lane_device.cpp.hpp.

60 : pImpl(fl::make_unique<Impl>(config)) {
61
62 // Validate configuration
63 size_t num_lanes = config.data_pins.size();
64 if (num_lanes < 1 || num_lanes > 8) {
65 FL_WARN("MultiLaneDevice: Invalid number of data pins (" << num_lanes << "), must be 1-8");
66 }
67
68 FL_DBG("MultiLaneDevice: Created with " << num_lanes << " lane(s)");
69}
fl::unique_ptr< Impl > pImpl
#define FL_WARN(...)
Definition log.h:437
#define FL_DBG
Definition log.h:553
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NO_EXCEPT
Definition unique_ptr.h:263

References FL_DBG, fl::FL_NO_EXCEPT, FL_WARN, fl::adl_barrier::make_unique(), and pImpl.

Referenced by MultiLaneDevice(), MultiLaneDevice(), operator=(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: