comparison Common/Inc/data_exchange.h @ 756:6de83d8205a0

Added visualization of CO2 during dive: In the previous version CO2 values were available in sufrace mode only. Now the display of Co2 value has been added to the lower left corner view. In addition a Co2 alarm has been added. Early Co2 warning vaues will be displayed in yellow while critical values are shown in red.
author Ideenmodellierer
date Tue, 07 Mar 2023 20:02:05 +0100
parents 5143e927219f
children aa6006975e76
comparison
equal deleted inserted replaced
755:92bf7bf9fb8a 756:6de83d8205a0
51 51
52 #define DATA_BUFFER_ADC (0x01u) 52 #define DATA_BUFFER_ADC (0x01u)
53 #define DATA_BUFFER_CO2 (0x02u) 53 #define DATA_BUFFER_CO2 (0x02u)
54 54
55 #define EXTIF_SENSOR_INFO_SIZE (32u) /* size of data array reserved for extended sensor data from external interface */ 55 #define EXTIF_SENSOR_INFO_SIZE (32u) /* size of data array reserved for extended sensor data from external interface */
56
57 #define CO2_WARNING_LEVEL_PPM (2000u) /* Early warning to indicate unexpected high co2 concentration (yellow) */
58 #define CO2_ALARM_LEVEL_PPM (5000u) /* starting by this level CO2 has a negative impact on health (long exposure) */
56 59
57 enum MODE 60 enum MODE
58 { 61 {
59 MODE_SURFACE = 0, 62 MODE_SURFACE = 0,
60 MODE_DIVE = 1, 63 MODE_DIVE = 1,