FastLED 3.10.10
Loading...
Searching...
No Matches

◆ releaseBackend()

void fl::spi::ParallelDevice::Impl::releaseBackend ( )
inline

Definition at line 62 of file parallel_device.cpp.hpp.

62 {
63 if (!backend) return;
64
65 // Stop ISR if in ISR mode
66 if (is_isr_mode) {
67 // ISR backends have stopISR() method
68 if (backend_width == 1) {
69 static_cast<SpiIsr1*>(backend)->stopISR();
70 } else if (backend_width == 2) {
71 static_cast<SpiIsr2*>(backend)->stopISR();
72 } else if (backend_width == 4) {
73 static_cast<SpiIsr4*>(backend)->stopISR();
74 } else if (backend_width == 8) {
75 static_cast<SpiIsr8*>(backend)->stopISR();
76 } else if (backend_width == 16) {
77 static_cast<SpiIsr16*>(backend)->stopISR();
78 } else if (backend_width == 32) {
79 static_cast<SpiIsr32*>(backend)->stopISR();
80 }
81 }
82
83 // Note: SpiIsr* and SpiBlock* backends don't need delete
84 // (they're typically stack-allocated in this impl)
85 backend = nullptr;
86 initialized = false;
87 }

References backend, backend_width, fl::FL_NO_EXCEPT, initialized, and is_isr_mode.

Referenced by ~Impl().

+ Here is the caller graph for this function: