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

Function sct_cap_addr

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

Source from the content-addressed store, hash-verified

200inline volatile fl::u32& sct_ev_state(fl::u32 n) FL_NOEXCEPT { return reg(kSctBase, kOffEV0_STATE + 8u * n); }
201inline volatile fl::u32& sct_ev_ctrl(fl::u32 n) FL_NOEXCEPT { return reg(kSctBase, kOffEV0_CTRL + 8u * n); }
202inline fl::u32* sct_cap_addr(fl::u32 n) FL_NOEXCEPT {
203 return reinterpret_cast<fl::u32*>(kSctBase + kOffMATCH0 + 4u * n); // ok reinterpret cast — DMA src address
204}
205inline volatile fl::u32& dma(fl::u32 offset) FL_NOEXCEPT { return reg(kDmaBase, offset); }
206
207// Assign or unassign the user's GPIO pin to SCT input 0 (SCT0_GPIO_IN_A_I)

Callers 1

beginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected