diff Common/Inc/data_central.h @ 780:e40790a67165

Discovery<=>SmallCPU inferface update: The sensor data struct is extended to store the data of up to three (three visible O2 sensors). To avoid unnecessary payload on the SPI only the last update sensor data item is transfered. The sender receiver uses the sensor ID which is provided in parallel to identify the correct storage location.
author Ideenmodellierer
date Tue, 23 May 2023 21:50:19 +0200
parents 45b8f3c2acce
children 4abfb8a2a435
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Tue May 23 21:45:34 2023 +0200
+++ b/Common/Inc/data_central.h	Tue May 23 21:50:19 2023 +0200
@@ -173,7 +173,7 @@
 typedef struct
 {
 	/* from Small CPU */
-	uint8_t extIf_sensor_data[32]; /* The external sensor may contain a 64 bit ID. It has been placed at the beginning of the structure to avoid problems in alignment */
+	uint8_t extIf_sensor_data[3][32]; /* The external sensor may contain a 64 bit ID. It has been placed at the beginning of the structure to avoid problems in alignment */
 	uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT];
 
 	int32_t dive_time_seconds;
@@ -434,6 +434,7 @@
 	 SENSOR_SENTINEL,
 	 SENSOR_TYPE_O2_END,
 	 SENSOR_CO2,
+	 SENSOR_MUX,
 	 SENSOR_END
 } externalInterfaceSensorType;