diff Common/Inc/data_exchange.h @ 702:6d7c812fc173

Added digital o2 sensor to settings and data exchange: Added functionality to pass the o2 signals from a digital sensor (via UART)
author Ideenmodellierer
date Fri, 28 Oct 2022 20:29:37 +0200
parents 52d68cf9994c
children 045ff7800501
line wrap: on
line diff
--- a/Common/Inc/data_exchange.h	Fri Oct 28 19:39:20 2022 +0200
+++ b/Common/Inc/data_exchange.h	Fri Oct 28 20:29:37 2022 +0200
@@ -41,8 +41,14 @@
 #define EXT_INTERFACE_UART_MASK 	(0x0700u)   /* Reserve 3 bits for UART protocol selection */
 #define EXT_INTERFACE_UART_CO2  	(0x0100u)	/* Activate protocol for CO2 sensor */
 #define EXT_INTERFACE_UART_SENTINEL (0x0200u)	/* Activate Sentinel Backup monitor protocol */
+#define EXT_INTERFACE_UART_O2		(0x0400u)	/* Activate digital o2 sensor protocol (DiveO2) */
+
+/* Command subset for CO2 sensor */
 #define EXT_INTERFACE_CO2_CALIB 	(0x0001u)	/* Request calibration of CO2Sensor */
 
+/* Command subset for O2 sensor */
+#define EXT_INTERFACE_O2_INDICATE	(0x0001u)	/* Request LED to blink*/
+
 #define DATA_BUFFER_ADC				(0x01u)
 #define DATA_BUFFER_CO2				(0x02u)