![]() |
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 | 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. | |
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 1089 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 1103 of file SimWheelTypes.hpp.
|
inlinevirtual |
Get the maximum FPS supported by the underlying hardware.
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1138 of file SimWheelTypes.hpp.
|
inlinevirtual |
Get the stack size required by this user interface.
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1151 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify a change in the current bite point.
| bitePoint | Last known bite point. |
Reimplemented in PCF8574RevLights.
Definition at line 1202 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify device is in discovery mode.
Definition at line 1214 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify device is connected.
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1208 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify low battery.
Reimplemented in PCF8574RevLights.
Definition at line 1222 of file SimWheelTypes.hpp.
|
inlinevirtual |
Notify that user settings have been saved to flash memory.
Reimplemented in PCF8574RevLights.
Definition at line 1228 of file SimWheelTypes.hpp.
|
inlinevirtual |
Called just once after initialization.
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1157 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 PCF8574RevLights, and SimpleShiftLight.
Definition at line 1181 of file SimWheelTypes.hpp.
|
inlinevirtual |
Draw a single frame.
| elapsedMs | Elapsed milliseconds since last call. |
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1194 of file SimWheelTypes.hpp.
|
inlinevirtual |
Cut power to the UI hardware.
Reimplemented in PCF8574RevLights, and SimpleShiftLight.
Definition at line 1237 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresECUTelemetry = false |
Set to true to receive and use ECU telemetry data.
Definition at line 1118 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresGaugeTelemetry = false |
Set to true to receive and use telemetry data for gauges.
Definition at line 1122 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresPowertrainTelemetry = false |
Set to true to receive and use powertrain telemetry data.
Definition at line 1116 of file SimWheelTypes.hpp.
| bool AbstractUserInterface::requiresRaceControlTelemetry = false |
Set to true to receive and use race control telemetry data.
Definition at line 1120 of file SimWheelTypes.hpp.