![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Abstract interface for notifications and telemetry display. More...
#include <SimWheelTypes.hpp>
Public Member Functions | |
| AbstractUserInterface (const AbstractUserInterface &)=delete | |
| AbstractUserInterface & | operator= (const AbstractUserInterface &)=delete |
| virtual uint8_t | getMaxFPS () |
| Get the maximum FPS supported by the underlying hardware. | |
| virtual uint16_t | getStackSize () |
| Get the stack size required by this user interface. | |
| virtual void | onStart () |
| Called just once after initialization. | |
| virtual void | onTelemetryData (const TelemetryData *pTelemetryData) |
| Notify new telemetry data. | |
| virtual void | serveSingleFrame (uint32_t elapsedMs) |
| Draw a single frame. | |
| virtual void | onBitePoint (uint8_t bitePoint) |
| Notify a change in the current bite point. | |
| virtual void | onConnected () |
| Notify device is connected. | |
| virtual void | onBLEdiscovering () |
| Notify device is in discovery mode. | |
| virtual void | onLowBattery () |
| Notify low battery. | |
| virtual void | onSaveSettings () |
| Notify that user settings have been saved to flash memory. | |
| virtual void | onUserInput (uint8_t inputNumber) |
| Notify user input. | |
| virtual void | shutdown () |
| Cut power to the UI hardware. | |
Public Attributes | |
| bool | requiresPowertrainTelemetry = false |
| Set to true to receive and use powertrain telemetry data. | |
| bool | requiresECUTelemetry = false |
| Set to true to receive and use ECU telemetry data. | |
| bool | requiresRaceControlTelemetry = false |
| Set to true to receive and use race control telemetry data. | |
| bool | requiresGaugeTelemetry = false |
| Set to true to receive and use telemetry data for gauges. | |
| bool | requiresWheelTelemetry = false |
| Set to true to receive and use wheel telemetry data. | |
Protected Member Functions | |
| uint32_t | frameTimer (uint32_t &timerVariable, uint32_t elapsedTimeMs, uint32_t timeLimitMs) |
| Simple timer. | |
Abstract interface for notifications and telemetry display.
Definition at line 1581 of file SimWheelTypes.hpp.
|
inlinevirtual |
Definition at line 1624 of file SimWheelTypes.hpp.
|
inlineprotected |
Simple timer.
| timerVariable | Timer variable. |
| elapsedTimeMs | Time elapsed since last call in miliseconds. |
| timeLimitMs | Expiration time in miliseconds. |
Definition at line 1595 of file SimWheelTypes.hpp.
|
inlinevirtual |
Get the maximum FPS supported by the underlying hardware.
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1634 of file SimWheelTypes.hpp.
|
inlinevirtual |
Get the stack size required by this user interface.
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1647 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify a change in the current bite point.
| bitePoint | Last known bite point. |
Reimplemented in OledTelemetry128x64, and PCF8574RevLights.
Definition at line 1698 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify device is in discovery mode.
Reimplemented in OledTelemetry128x64.
Definition at line 1710 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify device is connected.
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1704 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify low battery.
Reimplemented in OledTelemetry128x64, and PCF8574RevLights.
Definition at line 1718 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify that user settings have been saved to flash memory.
Reimplemented in OledTelemetry128x64, and PCF8574RevLights.
Definition at line 1724 of file SimWheelTypes.hpp.
|
inlinevirtual |
Called just once after initialization.
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1653 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify new telemetry data.
| pTelemetryData | Pointer to telemetry data. Can be null. Safe to store for later use. |
pTelemetryData is null when no telemetry data has been received in the previous two seconds. May be used to turn the display off.Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1677 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify user input.
| inputNumber | Input number that was pressed |
Reimplemented in OledTelemetry128x64.
Definition at line 1731 of file SimWheelTypes.hpp.
|
inlinevirtual |
Draw a single frame.
| elapsedMs | Elapsed milliseconds since last call. |
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1690 of file SimWheelTypes.hpp.
|
inlinevirtual |
Cut power to the UI hardware.
Reimplemented in OledTelemetry128x64, PCF8574RevLights, and SimpleShiftLight.
Definition at line 1740 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresECUTelemetry = false |
Set to true to receive and use ECU telemetry data.
Definition at line 1610 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresGaugeTelemetry = false |
Set to true to receive and use telemetry data for gauges.
Definition at line 1614 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresPowertrainTelemetry = false |
Set to true to receive and use powertrain telemetry data.
Definition at line 1608 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresRaceControlTelemetry = false |
Set to true to receive and use race control telemetry data.
Definition at line 1612 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresWheelTelemetry = false |
Set to true to receive and use wheel telemetry data.
Definition at line 1616 of file SimWheelTypes.hpp.