comparison 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
comparison
equal deleted inserted replaced
779:0b5f45448eb6 780:e40790a67165
171 * contains data calculated from actual data after receiption from Small CPU 171 * contains data calculated from actual data after receiption from Small CPU
172 */ 172 */
173 typedef struct 173 typedef struct
174 { 174 {
175 /* from Small CPU */ 175 /* from Small CPU */
176 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 */ 176 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 */
177 uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT]; 177 uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT];
178 178
179 int32_t dive_time_seconds; 179 int32_t dive_time_seconds;
180 int32_t dive_time_seconds_without_surface_time; 180 int32_t dive_time_seconds_without_surface_time;
181 uint32_t surface_time_seconds; 181 uint32_t surface_time_seconds;
432 SENSOR_ANALOG, 432 SENSOR_ANALOG,
433 SENSOR_DIGO2, 433 SENSOR_DIGO2,
434 SENSOR_SENTINEL, 434 SENSOR_SENTINEL,
435 SENSOR_TYPE_O2_END, 435 SENSOR_TYPE_O2_END,
436 SENSOR_CO2, 436 SENSOR_CO2,
437 SENSOR_MUX,
437 SENSOR_END 438 SENSOR_END
438 } externalInterfaceSensorType; 439 } externalInterfaceSensorType;
439 440
440 #define DVO2_FATAL_INTENSITY_LOW (0x00000001) 441 #define DVO2_FATAL_INTENSITY_LOW (0x00000001)
441 #define DVO2_FATAL_AMBIENT_HIGH (0x00000002) 442 #define DVO2_FATAL_AMBIENT_HIGH (0x00000002)