FastLED 3.9.15
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
66 << "), must be 1-8");
67 }
68
69 FL_DBG("MultiLaneDevice: Created with " << num_lanes << " lane(s)");
70}
fl::unique_ptr< Impl > pImpl
#define FL_WARN(X)
Definition log.h:276
#define FL_DBG
Definition log.h:388
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NOEXCEPT
Definition unique_ptr.h:261

References fl::spi::MultiLaneDevice::Config::data_pins, FL_DBG, FL_WARN, fl::make_unique(), pImpl, and fl::vector_basic::size().

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

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