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

Function writeLutInputMux

src/platforms/arm/lpc/clockless_arm_lpc_plu.h:141–146  ·  view source on GitHub ↗

LUTn_INP_MUX[m] write helper. sel: 0..5 -> primary input PLU_IN0..PLU_IN5 6..N -> LUT[sel-6] output (UM11065 §12.6.1 mux encoding)

Source from the content-addressed store, hash-verified

139// sel: 0..5 -> primary input PLU_IN0..PLU_IN5
140// 6..N -> LUT[sel-6] output (UM11065 §12.6.1 mux encoding)
141static inline void writeLutInputMux(fl::u8 lut, fl::u8 input_idx,
142 fl::u8 sel) FL_NOEXCEPT {
143 // Stride is 5 u32 per LUT (one per input).
144 fl::u32 off = kOffLutInpMux0 + (fl::u32(lut) * 5UL + input_idx) * 4UL;
145 *reg32(kPluBase, off) = sel;
146}
147
148// OUTPUTm_MUX write helper. Selects which LUT drives PLU_OUTm.
149static inline void writeOutputMux(fl::u8 out_idx, fl::u8 lut_sel) FL_NOEXCEPT {

Callers 1

initPluGraphFunction · 0.85

Calls 2

reg32Function · 0.85
u32Enum · 0.50

Tested by

no test coverage detected