MCPcopy Create free account
hub / github.com/FastLED/FastLED / evCtrlInputCapture

Function evCtrlInputCapture

src/platforms/arm/lpc/rx_sct_capture.cpp.hpp:185–190  ·  view source on GitHub ↗

EV CTRL builder for "input-capture on SCT input N, edge E"

Source from the content-addressed store, hash-verified

183
184// EV CTRL builder for "input-capture on SCT input N, edge E"
185constexpr fl::u32 evCtrlInputCapture(fl::u32 iosel, fl::u32 iocond) {
186 return (0u << 5) // OUTSEL = 0 (input)
187 | ((iosel & 0xFu) << 6) // IOSEL
188 | ((iocond & 0x3u) << 10) // IOCOND (1=Rise, 2=Fall)
189 | (2u << 12); // COMBMODE = IO-only
190}
191constexpr fl::u32 kIoCondRise = 1u;
192constexpr fl::u32 kIoCondFall = 2u;
193

Callers 1

beginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected