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

◆ countIsrChannels()

u8 fl::pwm_state::countIsrChannels ( )

Definition at line 163 of file pin.cpp.hpp.

163 {
164 PwmStateData& st = state();
165 u8 count = 0;
166 for (u8 i = 0; i < MAX_PWM_CHANNELS; i++) {
167 if (st.channels[i].pin >= 0 && st.channels[i].backend == PwmBackend::IsrSoftware) {
168 count++;
169 }
170 }
171 return count;
172}
constexpr u8 MAX_PWM_CHANNELS
Definition pin.cpp.hpp:79
PwmStateData & state()
Definition pin.cpp.hpp:109
unsigned char u8
Definition stdint.h:131
PwmPinState channels[MAX_PWM_CHANNELS]
Definition pin.cpp.hpp:101

References fl::pwm_state::PwmPinState::backend, fl::pwm_state::PwmStateData::channels, IsrSoftware, MAX_PWM_CHANNELS, fl::pwm_state::PwmPinState::pin, and state().

Referenced by maybeShutdownIsr().

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