Abstract base class for I2C device implementations in the HardFOC system.
This header-only file defines the abstract base class for I2C device communication that provides a consistent API across different I2C controller implementations. Concrete implementations for various microcontrollers inherit from this class. Each BaseI2c instance represents a single I2C device with a pre-configured address.
- Author
- Nebiyu Tadesse
- Date
- 2025
- Copyright
- HardFOC
- Note
- This is a header-only abstract base class following the same pattern as BaseCan.
-
Users should program against this interface, not specific implementations.
-
Each BaseI2c instance represents a specific I2C device, not the I2C bus itself.