Mercurial > public > ostc4
diff Small_CPU/Inc/externalInterface.h @ 1077:bd8ab302ef4a Icon_Integration
Added uart support for HUD:
the protocol implementation for the HUD has been added. It may be activated by the compile switch ENABLE_HUD_SUPPORT. Because the HUD will not mapped to the three classic o2 value display slots, the sensor data structure has been increased to the max number of devices => all devices may now raise device specific data.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 02 Mar 2026 17:22:25 +0100 |
| parents | 1f2067cad41b |
| children |
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h Sun Feb 22 21:23:57 2026 +0100 +++ b/Small_CPU/Inc/externalInterface.h Mon Mar 02 17:22:25 2026 +0100 @@ -82,6 +82,12 @@ DETECTION_SENTINEL, /* check UART channel for connected Sentinel */ DETECTION_SENTINEL2, #endif +#ifdef ENABLE_HUD_SUPPORT + DETECTION_HUD_0, + DETECTION_HUD_1, + DETECTION_HUD_2, + DETECTION_HUD_3, +#endif DETECTION_DONE } externalInterfaceAutoDetect_t; @@ -111,6 +117,8 @@ uint16_t externalInterface_GetCO2SignalStrength(void); void externalInterface_SetBottlePressure(uint8_t bottle, uint8_t bar); uint8_t externalInterface_GetBottlePressure(uint8_t bottle); +void externalInterface_GetHUDSequence(uint8_t* pSequence, uint8_t* brightness); +void externalInterface_SetHUDSequence(uint8_t* pSequence, uint8_t brightness); uint8_t externalInterface_GetSensorData(uint8_t sensorId, uint8_t* pDataStruct); void externalInterface_SetSensorData(uint8_t sensorId, uint8_t* pDataStruct); void externalInface_SetSensorMap(uint8_t* pMap);
