comparison 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
comparison
equal deleted inserted replaced
713:1fbcca5bdf5d 714:045ff7800501
195 float battery_charge; 195 float battery_charge;
196 uint16_t ambient_light_level; 196 uint16_t ambient_light_level;
197 SDataWireless wireless_data[4]; 197 SDataWireless wireless_data[4];
198 uint8_t buttonPICdata[4]; 198 uint8_t buttonPICdata[4];
199 SCO2Sensor CO2_data; 199 SCO2Sensor CO2_data;
200 uint8_t extIf_sensor_Id;
201 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 */
202 uint8_t extIf_sensor_data[32];
200 203
201 204
202 /* by create DiveSettings() and by setActualGas() 205 /* by create DiveSettings() and by setActualGas()
203 * is send to Small CPU2 for nitrogen calculation 206 * is send to Small CPU2 for nitrogen calculation
204 * includes setpoint information 207 * includes setpoint information