diff Small_CPU/Inc/externalInterface.h @ 798:e9eba334b942

Migrated CO2 protocol implementation to new format: The previous implementation was a monolithic protocol implementation which was not usable together with the multiplexer. The new implementation moves the CO2 implementation into a separate C file and decoubles the upper layer external interface, which is not able to handle DiveO2 and CO2 sensors in parallel without restriction to port assignments.
author Ideenmodellierer
date Mon, 07 Aug 2023 20:29:44 +0200
parents bb37d4f3e50e
children 061174d88af9
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h	Mon Jul 31 20:10:27 2023 +0200
+++ b/Small_CPU/Inc/externalInterface.h	Mon Aug 07 20:29:44 2023 +0200
@@ -41,7 +41,7 @@
 #define MIN_ADC_VOLTAGE_MV	(5.0f)		/* miminal voltage to rate an ADC channel as active */
 
 #define COMMON_SENSOR_STATE_INIT	(0x0u)	/* All individual state definitions shall start with a INIT state = 0 */
-#define COMMON_SENSOR_STATE_INVALID (0xFFu) /* All individual state devinitions shall not use 0xFF for operation control */
+#define COMMON_SENSOR_STATE_INVALID (0xFFu) /* All individual state definitions shall not use 0xFF for operation control */
 
  typedef enum
  {
@@ -56,7 +56,10 @@
 	DETECTION_DIGO2_2,
 	DETECTION_DIGO2_3,
 #ifdef ENABLE_CO2_SUPPORT
-	DETECTION_CO2,			/* check UART channel for connected CO2 sensor */
+	DETECTION_CO2_0,			/* check UART channel for connected CO2 sensor */
+	DETECTION_CO2_1,
+	DETECTION_CO2_2,
+	DETECTION_CO2_3,
 #endif
 #ifdef ENABLE_SENTINEL_MODE
 	DETECTION_SENTINEL,		/* check UART channel for connected Sentinel */