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

◆ end()

void fl::spi::MultiLaneDevice::end ( )

Shutdown hardware and release resources.

Note
Waits for pending transmissions to complete

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

264 {
265 if (!pImpl || !pImpl->initialized) {
266 return;
267 }
268
269 // Wait for pending operations
270 waitComplete();
271
272 // Release hardware backend
273 pImpl->releaseBackend();
274
275 // Clear lane buffers
276 for (auto& lane : pImpl->lanes) {
277 lane.clear();
278 }
279
280 FL_DBG("MultiLaneDevice: Shutdown complete");
281}
bool waitComplete(u32 timeout_ms=(fl::numeric_limits< u32 >::max)())
Wait for pending transmission to complete.
Lane & lane(size_t lane_id)
Get access to a specific lane.
fl::unique_ptr< Impl > pImpl
#define FL_DBG
Definition log.h:388

References FL_DBG, lane(), pImpl, and waitComplete().

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

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