|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <board.h>
Public Member Functions | |
| virtual | ~Board ()=default |
| virtual Result< void > | init ()=0 |
| virtual const char * | getName () const =0 |
| virtual const DeviceInfo & | getDeviceInfo () const =0 |
| virtual const BoardConfig & | getConfig () const =0 |
| virtual const Pins & | getPins () const =0 |
| const BoardCapabilities & | capabilities () const |
| Return the capability set declared by this board. | |
| virtual hal::IDisplay & | getDisplay ()=0 |
| Return the generic display implementation selected by this BSP. | |
| virtual hal::IRtc & | getRtc ()=0 |
| Return the RTC implementation selected by this BSP. | |
| virtual hal::IBattery & | getBattery ()=0 |
| Return the battery implementation selected by this BSP. | |
| virtual hal::IInput & | getInput ()=0 |
| Return the normalized input implementation selected by this BSP. | |
| virtual hal::IBluetooth & | getBluetooth ()=0 |
| Return the BLE transport selected by this BSP. | |
| virtual hal::ICompanionSource & | getCompanionSource ()=0 |
| Return the companion-data provider selected by this BSP. | |
| virtual hal::IWifiRadio & | getWifi ()=0 |
| Return the Wi-Fi radio selected by this BSP. | |
| virtual hal::IPowerManagement & | getPowerManagement ()=0 |
| Return the platform power-management implementation selected by this BSP. | |
| virtual hal::IConsole & | getConsole ()=0 |
| Return the platform debug/control console selected by this BSP. | |
| virtual hal::IHttpServer & | getHttpServer ()=0 |
| Return the board's local HTTP server adapter used by captive apps. | |
| virtual hal::IDnsServer & | getDnsServer ()=0 |
| Return the board's captive DNS responder adapter. | |
| virtual hal::IHttpClient & | getHttpClient ()=0 |
| Return platform HTTP transport for portable sync and provisioning services. | |
| virtual hal::INtpTimeSource & | getNtpTimeSource ()=0 |
| Return the platform NTP synchronization adapter. | |
| virtual hal::IPlatformDiagnostics & | getDiagnostics ()=0 |
| Return reset, memory, and CPU readings through the platform diagnostics HAL. | |
| virtual uint32_t | getUptimeMs () const =0 |
| virtual void | delayMs (uint32_t ms)=0 |
| virtual void | restart ()=0 |
Static Public Member Functions | |
| static Board & | current () |
| static Board * | currentOrNull () |
Composition contract for one selected board support package.
A BSP owns concrete driver instances and exposes them through generic HAL references. Firmware services depend on this contract instead of naming a specific watch or panel, allowing another board composition to replace the current one without changing application/service code. Returned references are borrowed and remain valid for the lifetime of the board object.
|
virtualdefault |
|
inline |
Return the capability set declared by this board.
|
static |
Return the build-selected board before initialization. Kconfig chooses the composition at compile time, avoiding a runtime factory and keeping invalid board/firmware combinations unrepresentable.
|
static |
Return the selected board when one is installed, or null when host tests deliberately build without an embedded BSP provider.
|
pure virtual |
Delay the caller task; do not use this for UI-loop waits on long I/O.
|
pure virtual |
Return the battery implementation selected by this BSP.
|
pure virtual |
Return the BLE transport selected by this BSP.
|
pure virtual |
Return the companion-data provider selected by this BSP.
|
pure virtual |
Return immutable capabilities and geometry used by generic policy.
|
pure virtual |
Return the platform debug/control console selected by this BSP.
|
pure virtual |
Return static manufacturer/platform/product identity for diagnostics.
|
pure virtual |
Return reset, memory, and CPU readings through the platform diagnostics HAL.
|
pure virtual |
Return the generic display implementation selected by this BSP.
|
pure virtual |
Return the board's captive DNS responder adapter.
|
pure virtual |
Return platform HTTP transport for portable sync and provisioning services.
|
pure virtual |
Return the board's local HTTP server adapter used by captive apps.
|
pure virtual |
Return the normalized input implementation selected by this BSP.
|
pure virtual |
Return the stable user-facing product label.
|
pure virtual |
Return the platform NTP synchronization adapter.
|
pure virtual |
Return the logical pin contract used by pinctrl and peripheral setup.
|
pure virtual |
Return the platform power-management implementation selected by this BSP.
|
pure virtual |
Return the RTC implementation selected by this BSP.
|
pure virtual |
Return monotonic milliseconds; values wrap according to uint32_t uptime.
|
pure virtual |
Return the Wi-Fi radio selected by this BSP.
|
pure virtual |
Configure pinctrl, buses, and board-owned resources before service init.
|
pure virtual |
Request a platform restart, normally used for reset or OTA handoff.