Mercurial > public > ostc4
diff Common/Inc/settings.h @ 662:1b995079c045 Betatest
PSCR Mode
author | heinrichs weikamp |
---|---|
date | Tue, 14 Dec 2021 15:36:10 +0100 |
parents | 890440ab993a |
children | c855753af9a6 |
line wrap: on
line diff
--- a/Common/Inc/settings.h Mon Nov 01 12:39:34 2021 +0100 +++ b/Common/Inc/settings.h Tue Dec 14 15:36:10 2021 +0100 @@ -47,11 +47,13 @@ #define CCRMODE_FixedSetpoint 0 #define CCRMODE_Sensors 1 +#define CCRMODE_Simulation 2 #define DIVEMODE_OC 0 #define DIVEMODE_CCR 1 #define DIVEMODE_Gauge 2 #define DIVEMODE_Apnea 3 +#define DIVEMODE_PSCR 4 #define GF_MODE 1 #define VPM_MODE 2 @@ -74,6 +76,12 @@ #define MAX_SCRUBBER_TIME (500u) #define MIN_PPO2_SP_CBAR (40u) +#define PSCR_MAX_O2_DROP (15u) +#define PSCR_MIN_LUNG_RATIO (5u) +#define PSCR_MAX_LUNG_RATIO (20u) + +#define FUTURE_SPARE_SIZE (29u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ + typedef enum { O2_SENSOR_SOURCE_OPTIC = 0, @@ -202,13 +210,10 @@ uint8_t bluetoothActive; /* will be set to zero on each startup at the moment */ uint8_t safetystopDepth; uint32_t updateSettingsAllowedFromHeader; - uint8_t scooterControl; - uint8_t scooterDrag; - uint8_t scooterLoad; - uint8_t scooterNumberOfBatteries; - uint16_t scooterBattSize; - uint8_t scooterSPARE1[7]; - uint8_t scooterSPARE2[19]; + uint8_t pscr_lung_ratio; /* redefined in 0xFFFF0020 */ + uint8_t pscr_o2_drop; /* redefined in 0xFFFF0020 */ + uint8_t co2_sensor_active; /* redefined in 0xFFFF0021 */ + uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/ // new in 0xFFFF0006 uint8_t ppo2sensors_deactivated; uint8_t tX_colorscheme; @@ -340,4 +345,7 @@ uint8_t settingsHelperButtonSens_translate_percentage_to_hwOS_values(uint8_t inputValuePercentage); uint8_t settingsHelperButtonSens_translate_hwOS_values_to_percentage(uint8_t inputValuePIC); +void reset_SettingWarning(); +uint8_t isSettingsWarning(); + #endif // SETTINGS_H