XPoint 0.1.0
Hardware-agnostic crosspoint matrix routing library
Loading...
Searching...
No Matches
ShiftRegisterDriver.h File Reference

Virtual (host-side) shift-register driver for unit testing. More...

#include "XPointDriver.h"
#include <stdint.h>

Go to the source code of this file.

Classes

class  ShiftRegisterDriver
 Host-only virtual shift-register driver — no hardware dependency. More...
 

Detailed Description

Virtual (host-side) shift-register driver for unit testing.

Maintains a byte-shadow array mirroring what a real 74HC595 chain would hold. No hardware is touched; used by the host test suite. Individual bytes are inspectable via byteAt() to verify bit-packing logic.

Bit packing: output index idx maps to byte idx/8, bit idx%8 (LSB = bit 0). The mapper function must return indices in [0, nOut).