comparison Common/Inc/data_central.h @ 745:b392524753fb

Update Sentinel protocol: The Sentinel protocol is now supported by autodetection. Added Autodetection indicator: In the previous version no indicator showed that an auto detection is running. A new pseudo sensor type has been introduced which now causes the auto detection string to be displayed while the detection is running in the background.
author Ideenmodellierer
date Sun, 19 Feb 2023 21:52:02 +0100
parents 7b0e020513e3
children be25ab2d902c
comparison
equal deleted inserted replaced
744:dd5db6e2c9a4 745:b392524753fb
422 }; 422 };
423 423
424 typedef enum 424 typedef enum
425 { 425 {
426 SENSOR_NONE, 426 SENSOR_NONE,
427 SENSOR_SEARCH,
427 SENSOR_OPTIC, 428 SENSOR_OPTIC,
428 SENSOR_ANALOG, 429 SENSOR_ANALOG,
429 SENSOR_DIGO2, 430 SENSOR_DIGO2,
431 SENSOR_SENTINEL,
432 SENSOR_TYPE_O2_END,
430 SENSOR_CO2, 433 SENSOR_CO2,
431 SENSOR_END 434 SENSOR_END
432 } externalInterfaceSensorType; 435 } externalInterfaceSensorType;
433 436
437 #define DVO2_FATAL_INTENSITY_LOW (0x00000001)
438 #define DVO2_FATAL_AMBIENT_HIGH (0x00000002)
439 #define DVO2_FATAL_REFINT_LOW (0x00000004)
440 #define DVO2_FATAL_REFAMB_HIGH (0x00000008)
441 #define DVO2_FATAL_TEMPERATURE (0x00000010)
442
443 #define DVO2_FATAL_ERROR (DVO2_FATAL_INTENSITY_LOW | DVO2_FATAL_AMBIENT_HIGH | DVO2_FATAL_REFINT_LOW | DVO2_FATAL_REFAMB_HIGH | DVO2_FATAL_TEMPERATURE)
434 444
435 uint32_t time_elapsed_ms(uint32_t ticksstart,uint32_t ticksnow); 445 uint32_t time_elapsed_ms(uint32_t ticksstart,uint32_t ticksnow);
436 446
437 void set_stateUsedToSim(void); 447 void set_stateUsedToSim(void);
438 void set_stateUsedToReal(void); 448 void set_stateUsedToReal(void);