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)
| 139 | // sel: 0..5 -> primary input PLU_IN0..PLU_IN5 |
| 140 | // 6..N -> LUT[sel-6] output (UM11065 §12.6.1 mux encoding) |
| 141 | static 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. |
| 149 | static inline void writeOutputMux(fl::u8 out_idx, fl::u8 lut_sel) FL_NOEXCEPT { |
no test coverage detected