FastLED 3.10.8
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 263 of file multi_lane_device.cpp.hpp.

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

References FL_DBG, fl::FL_NO_EXCEPT, 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: