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

Minimal abstract I2C interface consumed by MCP23017Driver. More...

#include <stdint.h>

Go to the source code of this file.

Classes

class  I2CInterface
 Abstract I2C bus interface. More...
 

Detailed Description

Minimal abstract I2C interface consumed by MCP23017Driver.

Concrete implementations:

  • WireI2C — wraps Arduino Wire (drivers/WireI2C.h)
  • MockI2C — records writes for host-side unit tests (test/test_xpoint.cpp)

Supply your own subclass for non-Arduino platforms or hardware mocking.