|
XPoint 0.1.0
Hardware-agnostic crosspoint matrix routing library
|
Utility for mapping matrix nodes to 74HC595 shift-register output bits. More...
#include <stdint.h>Go to the source code of this file.
Namespaces | |
| namespace | HC595Helper |
| Utilities for 74HC595 daisy-chain index computation. | |
Functions | |
| uint16_t | HC595Helper::rowMajorIndex (uint8_t row, uint8_t col, uint8_t cols) |
| Compute the row-major bit index for node (row, col). | |
Utility for mapping matrix nodes to 74HC595 shift-register output bits.
Because the driver MapFn signature is a plain function pointer (no closure), column count must be captured as a compile-time constant in the mapper: