diff Common/Inc/data_central.h @ 745:b392524753fb

Update Sentinel protocol: The Sentinel protocol is now supported by autodetection. Added Autodetection indicator: In the previous version no indicator showed that an auto detection is running. A new pseudo sensor type has been introduced which now causes the auto detection string to be displayed while the detection is running in the background.
author Ideenmodellierer
date Sun, 19 Feb 2023 21:52:02 +0100
parents 7b0e020513e3
children be25ab2d902c
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Sun Feb 19 21:51:19 2023 +0100
+++ b/Common/Inc/data_central.h	Sun Feb 19 21:52:02 2023 +0100
@@ -424,13 +424,23 @@
 typedef enum
 {
 	 SENSOR_NONE,
+	 SENSOR_SEARCH,
 	 SENSOR_OPTIC,
 	 SENSOR_ANALOG,
 	 SENSOR_DIGO2,
+	 SENSOR_SENTINEL,
+	 SENSOR_TYPE_O2_END,
 	 SENSOR_CO2,
 	 SENSOR_END
 } externalInterfaceSensorType;
 
+#define DVO2_FATAL_INTENSITY_LOW	(0x00000001)
+#define DVO2_FATAL_AMBIENT_HIGH		(0x00000002)
+#define DVO2_FATAL_REFINT_LOW		(0x00000004)
+#define DVO2_FATAL_REFAMB_HIGH		(0x00000008)
+#define DVO2_FATAL_TEMPERATURE		(0x00000010)
+
+#define DVO2_FATAL_ERROR	(DVO2_FATAL_INTENSITY_LOW | DVO2_FATAL_AMBIENT_HIGH | DVO2_FATAL_REFINT_LOW | DVO2_FATAL_REFAMB_HIGH | DVO2_FATAL_TEMPERATURE)
 
 uint32_t time_elapsed_ms(uint32_t ticksstart,uint32_t ticksnow);