comparison Common/Inc/data_central.h @ 1078:082825daccb5 Icon_Integration tip

Added control views for HUD: The HUD implementation may now be activated by the compile switch ENABLE_HUD_SUPPORT. The HUD will become visible onces detected in the CvOpt overview menu. The first implementation is for testing only => The LEDs may be operated by a number field. Positiv values activate the red, negativ the green LEDs. Depending on the value blink sequences will be scheduled. At the moment no dive specific data is mapped to the LED operation (like e.g. warnings).
author Ideenmodellierer
date Mon, 02 Mar 2026 17:30:38 +0100
parents 3c73180fde1d
children
comparison
equal deleted inserted replaced
1077:bd8ab302ef4a 1078:082825daccb5
46 46
47 #define EXT_INTERFACE_BUZZER_ON_TIME_MS (2000u) /* max time the buzzer should be active without break (continuous Operation) */ 47 #define EXT_INTERFACE_BUZZER_ON_TIME_MS (2000u) /* max time the buzzer should be active without break (continuous Operation) */
48 #define EXT_INTERFACE_BUZZER_PING_TIME_MS (1000u) /* max time the buzzer should be active for single ping */ 48 #define EXT_INTERFACE_BUZZER_PING_TIME_MS (1000u) /* max time the buzzer should be active for single ping */
49 #define EXT_INTERFACE_BUZZER_STABLE_TIME_MS (500u) /* min time a state (ON / OFF) should be stable before it may be changed */ 49 #define EXT_INTERFACE_BUZZER_STABLE_TIME_MS (500u) /* min time a state (ON / OFF) should be stable before it may be changed */
50 50
51 #define EXT_INTERFACE_HUD_LED_MAX (16u) /* max number of supported LED for HUD operation */
52
51 53
52 /* Helper structs ------------------------------------------------------------*/ 54 /* Helper structs ------------------------------------------------------------*/
53 55
54 //struct SGas 56 //struct SGas
55 //contains gasinfos of single gas for deco calculation 57 //contains gasinfos of single gas for deco calculation
213 * contains data calculated from actual data after receiption from Small CPU 215 * contains data calculated from actual data after receiption from Small CPU
214 */ 216 */
215 typedef struct 217 typedef struct
216 { 218 {
217 /* from Small CPU */ 219 /* from Small CPU */
218 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 */ 220 uint8_t extIf_sensor_data[EXT_INTERFACE_SENSOR_CNT][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 */
219 uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT]; 221 uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT];
220 222
221 int32_t dive_time_seconds; 223 int32_t dive_time_seconds;
222 int32_t dive_time_seconds_without_surface_time; 224 int32_t dive_time_seconds_without_surface_time;
223 uint32_t surface_time_seconds; 225 uint32_t surface_time_seconds;
290 /* GNSS data */ 292 /* GNSS data */
291 SGnssInfo gnssData; 293 SGnssInfo gnssData;
292 /* last GF_Surf when shallow area was entered */ 294 /* last GF_Surf when shallow area was entered */
293 uint8_t gf_surf_log; 295 uint8_t gf_surf_log;
294 296
297 /* HUD control data */
298 uint8_t HUD_led_sequence[EXT_INTERFACE_HUD_LED_MAX];
299 uint8_t HUD_led_brightness;
295 } SLifeData; 300 } SLifeData;
296 301
297 302
298 typedef struct 303 typedef struct
299 { 304 {
514 SENSOR_TYPE_O2_END, 519 SENSOR_TYPE_O2_END,
515 SENSOR_CO2, 520 SENSOR_CO2,
516 SENSOR_CO2M, 521 SENSOR_CO2M,
517 SENSOR_GNSS, 522 SENSOR_GNSS,
518 SENSOR_GNSSM, 523 SENSOR_GNSSM,
524 SENSOR_HUD,
519 SENSOR_MUX, 525 SENSOR_MUX,
520 SENSOR_END 526 SENSOR_END
521 } externalInterfaceSensorType; 527 } externalInterfaceSensorType;
522 528
523 #define DVO2_FATAL_INTENSITY_LOW (0x00000001) 529 #define DVO2_FATAL_INTENSITY_LOW (0x00000001)