Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1069:e0ba2b29dc1f | 1070:4499227a2db8 |
|---|---|
| 55 #define CO2_ALARM_LEVEL_PPM (5000u) /* starting by this level CO2 has a negative impact on health (long exposure) */ | 55 #define CO2_ALARM_LEVEL_PPM (5000u) /* starting by this level CO2 has a negative impact on health (long exposure) */ |
| 56 | 56 |
| 57 #define GNSS_ALIVE_STATE_ALIVE (0x01u) /* Communication to module active */ | 57 #define GNSS_ALIVE_STATE_ALIVE (0x01u) /* Communication to module active */ |
| 58 #define GNSS_ALIVE_STATE_TIME (0x02u) /* Time information valid */ | 58 #define GNSS_ALIVE_STATE_TIME (0x02u) /* Time information valid */ |
| 59 #define GNSS_ALIVE_BACKUP_POS (0x04u) /* Backup position not older than x hours */ | 59 #define GNSS_ALIVE_BACKUP_POS (0x04u) /* Backup position not older than x hours */ |
| 60 | |
| 61 #define PRESSURE_BOTTLE_CNT (0x2u) /* Number of bottle information (max 255 bar) */ | |
| 60 | 62 |
| 61 enum MODE | 63 enum MODE |
| 62 { | 64 { |
| 63 MODE_SURFACE = 0, | 65 MODE_SURFACE = 0, |
| 64 MODE_DIVE = 1, | 66 MODE_DIVE = 1, |
| 194 uint16_t externalInterface_CmdAnswer; | 196 uint16_t externalInterface_CmdAnswer; |
| 195 uint8_t alignmentdummy; | 197 uint8_t alignmentdummy; |
| 196 uint8_t externalInterface_SensorID; /* Used to identify how to read the sensor data array */ | 198 uint8_t externalInterface_SensorID; /* Used to identify how to read the sensor data array */ |
| 197 uint8_t sensor_data[EXTIF_SENSOR_INFO_SIZE]; /* sensor specific data array. Content may vary from sensor type to sensor type */ | 199 uint8_t sensor_data[EXTIF_SENSOR_INFO_SIZE]; /* sensor specific data array. Content may vary from sensor type to sensor type */ |
| 198 uint8_t sensor_map[EXT_INTERFACE_SENSOR_CNT]; | 200 uint8_t sensor_map[EXT_INTERFACE_SENSOR_CNT]; |
| 199 uint8_t SPARE_OldWireless[5]; /* 64 - 12 for extADC - 6 for CO2 - 34 for sensor (+dummmy) - sensor map*/ | 201 uint8_t pressure_bottle[PRESSURE_BOTTLE_CNT]; |
| 202 uint8_t SPARE_OldWireless[3]; /* 64 - 12 for extADC - 6 for CO2 - 34 for sensor (+dummmy) - sensor map - pressure*/ | |
| 200 // PIC data | 203 // PIC data |
| 201 uint8_t button_setting[4]; /* see dependency to SlaveData->buttonPICdata */ | 204 uint8_t button_setting[4]; /* see dependency to SlaveData->buttonPICdata */ |
| 202 uint8_t SPARE1; | 205 uint8_t SPARE1; |
| 203 //debug | 206 //debug |
| 204 uint32_t pressure_uTick; | 207 uint32_t pressure_uTick; |
