Abstract base class for SPI device implementations in the HardFOC system.
This header-only file defines the abstract base class for SPI device communication that provides a consistent API across different SPI controller implementations. Concrete implementations for various microcontrollers inherit from this class to provide high-speed serial communication and transfer management. Each BaseSpi instance represents a single SPI device with pre-configured settings.
- 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 BaseSpi instance represents a specific SPI device, not the SPI bus itself.