diff Common/Inc/data_central.h @ 714:045ff7800501

Added customizable data area for specific sensor data: In future smart sensors will be connected via UART interface. These sensor provide additional data like diagnostics or id numbers which may vary from sensor to sensor. That's why a byte array has been added which stores up to 32 bytes. The layout of this array may be specific to sensor needs. As first example temperature and id number of the DiveO2 sensor are provided.
author Ideenmodellierer
date Sun, 20 Nov 2022 20:42:08 +0100
parents c00a80f26641
children 5143e927219f
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Sun Nov 20 20:37:44 2022 +0100
+++ b/Common/Inc/data_central.h	Sun Nov 20 20:42:08 2022 +0100
@@ -197,6 +197,9 @@
 	SDataWireless wireless_data[4];
 	uint8_t buttonPICdata[4];
 	SCO2Sensor CO2_data;
+	uint8_t extIf_sensor_Id;
+	uint8_t UINT64ALIGNMENT;					/* If your program crash check if you changed something in the life data structure ! The external sensor may contain a 64 bit ID */
+	uint8_t extIf_sensor_data[32];
 
 
 	/* by create DiveSettings() and by setActualGas()