diff Common/Inc/data_exchange.h @ 1070:4499227a2db8 Icon_Integration

Added compile option for o2/diluent pressure display: Some external devices (like the RedBare rebreather) provide pressure sensor information o2 and diluent bottles. A data channel from RTE to main CPU has been defined and a visualization has been added to the lower left corner (llc). Pressure will be displayed in the gas list as well => for o2 display the definition of a 100% o2 gas is needed. Diluent will be assigned to the first gas. The ADVANCED_GAS compile switch needs to be activated for this feature
author Ideenmodellierer
date Thu, 19 Feb 2026 13:17:25 +0100
parents c317130aaafc
children
line wrap: on
line diff
--- a/Common/Inc/data_exchange.h	Tue Feb 17 20:46:45 2026 +0100
+++ b/Common/Inc/data_exchange.h	Thu Feb 19 13:17:25 2026 +0100
@@ -58,6 +58,8 @@
 #define GNSS_ALIVE_STATE_TIME		(0x02u)		/* Time information valid */
 #define GNSS_ALIVE_BACKUP_POS		(0x04u)		/* Backup position not older than x hours */
 
+#define PRESSURE_BOTTLE_CNT			(0x2u)		/* Number of bottle information (max 255 bar) */
+
 enum MODE
 {
 	MODE_SURFACE	= 0,
@@ -196,7 +198,8 @@
 		uint8_t externalInterface_SensorID;						/* Used to identify how to read the sensor data array */
 		uint8_t sensor_data[EXTIF_SENSOR_INFO_SIZE];			/* sensor specific data array. Content may vary from sensor type to sensor type */
 		uint8_t sensor_map[EXT_INTERFACE_SENSOR_CNT];
-		uint8_t SPARE_OldWireless[5]; 							/* 64 - 12 for extADC - 6 for CO2 - 34 for sensor (+dummmy) - sensor map*/
+		uint8_t pressure_bottle[PRESSURE_BOTTLE_CNT];
+		uint8_t SPARE_OldWireless[3]; 							/* 64 - 12 for extADC - 6 for CO2 - 34 for sensor (+dummmy) - sensor map - pressure*/
 		// PIC data
 		uint8_t button_setting[4]; /* see dependency to SlaveData->buttonPICdata */
 		uint8_t SPARE1;