|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <pins.h>
Public Member Functions | |
| virtual | ~Pins ()=default |
| virtual const I2cPins & | i2c () const =0 |
| virtual const SpiPins & | spi () const =0 |
| virtual const DisplayPins & | display () const =0 |
| virtual const ButtonPins & | buttons () const =0 |
| virtual const BatteryPins & | battery () const =0 |
Board-specific pinctrl description consumed by platform setup code.
Implement this once per BSP and return stable references to immutable signal groups. Grouping by peripheral gives bus/HAL initialization a typed contract; describing pull, direction, and active level here keeps electrical facts out of application logic and prevents a platform driver from guessing board pins.
|
virtualdefault |
Permit destruction through the common pin-map contract.
|
pure virtual |
Return the analog battery-sense assignment.
|
pure virtual |
Return the logical top/bottom button assignments and polarity.
|
pure virtual |
Return the display's chip select and control signal assignments.
|
pure virtual |
Return the I2C clock/data assignment used by board peripherals.
|
pure virtual |
Return the shared SPI signal assignment used by display or storage.