Mercurial > public > ostc4
comparison Common/Inc/settings.h @ 654:890440ab993a
Introduced new menu tab for addition CCR options:
The Xtra menu tab was only used in dive mode before. The tab is now enabled in surface mode and provide access to scrubber timer functionality. To enables this infrastructure (structure, multilanguage strings etc.) have been added to the sourcecode.
author | Ideenmodellierer |
---|---|
date | Sun, 25 Apr 2021 20:41:19 +0200 |
parents | f6212495f34f |
children | 1b995079c045 |
comparison
equal
deleted
inserted
replaced
653:269e57ac4e56 | 654:890440ab993a |
---|---|
79 O2_SENSOR_SOURCE_OPTIC = 0, | 79 O2_SENSOR_SOURCE_OPTIC = 0, |
80 O2_SENSOR_SOURCE_ANALOG, | 80 O2_SENSOR_SOURCE_ANALOG, |
81 O2_SENSOR_SOURCE_MAX | 81 O2_SENSOR_SOURCE_MAX |
82 } SensorSource; | 82 } SensorSource; |
83 #define MAX_O2_SENSOR_SOURCE (2u) | 83 #define MAX_O2_SENSOR_SOURCE (2u) |
84 | |
85 typedef enum | |
86 { | |
87 SCRUB_TIMER_OFF = 0, | |
88 SCRUB_TIMER_MINUTES, | |
89 SCRUB_TIMER_PERCENT, | |
90 SCRUB_TIMER_END | |
91 } ScrubTimerMode_e; | |
84 | 92 |
85 /* 2015 Jan 30, hw, deco and travel added for MenuEditGas | 93 /* 2015 Jan 30, hw, deco and travel added for MenuEditGas |
86 * can be used for buehlmann, vpm, etc. later but be carefull | 94 * can be used for buehlmann, vpm, etc. later but be carefull |
87 * with current implemenation */ | 95 * with current implemenation */ |
88 typedef struct{ | 96 typedef struct{ |
130 { | 138 { |
131 uint8_t setpoint_cbar; | 139 uint8_t setpoint_cbar; |
132 uint8_t depth_meter; | 140 uint8_t depth_meter; |
133 gasbit8_Type note; | 141 gasbit8_Type note; |
134 } SSetpointLine; | 142 } SSetpointLine; |
143 | |
144 | |
135 | 145 |
136 /* SSettings | 146 /* SSettings |
137 * gas[0] and setpoint[0] are the special ones configurable during the dive | 147 * gas[0] and setpoint[0] are the special ones configurable during the dive |
138 */ | 148 */ |
139 typedef struct | 149 typedef struct |
251 uint8_t amPMTime; | 261 uint8_t amPMTime; |
252 /* new in 0xFFFF001F */ | 262 /* new in 0xFFFF001F */ |
253 uint8_t autoSetpoint; | 263 uint8_t autoSetpoint; |
254 uint16_t scrubTimerMax; | 264 uint16_t scrubTimerMax; |
255 uint16_t scrubTimerCur; | 265 uint16_t scrubTimerCur; |
266 uint8_t scrubTimerMode; | |
256 } SSettings; | 267 } SSettings; |
257 | 268 |
258 typedef struct | 269 typedef struct |
259 { | 270 { |
260 // 8 bytes | 271 // 8 bytes |