Mercurial > public > ostc4
annotate Common/Inc/settings.h @ 787:aeb72882f30a
Dev Bugfx Empty buffer indication and stability improvments:
The mux prototype used ASCII coding for channel selection while the current realization used real number (0...4) for addressing the mux. The UART read function uses the '0' to indicate an empty buffer element. The mux now loops back '0' used by channel selection causing the read function to process the data. As result data interrups are visible at the display. To avoid this another character has been defined indicate empty buffer locations.
Beside this the functionality has been improved with regard to access speed and better recovery in case of transition failure.
author | Ideenmodellierer |
---|---|
date | Sun, 04 Jun 2023 21:59:26 +0200 |
parents | 45b8f3c2acce |
children | 4abfb8a2a435 |
rev | line source |
---|---|
38 | 1 /////////////////////////////////////////////////////////////////////////////// |
2 /// -*- coding: UTF-8 -*- | |
3 /// | |
4 /// \file Common/Inc/settings.h | |
5 /// \brief | |
6 /// \author Heinrichs Weikamp | |
7 /// \date 2018 | |
8 /// | |
9 /// $Id$ | |
10 /////////////////////////////////////////////////////////////////////////////// | |
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh | |
12 /// | |
13 /// This program is free software: you can redistribute it and/or modify | |
14 /// it under the terms of the GNU General Public License as published by | |
15 /// the Free Software Foundation, either version 3 of the License, or | |
16 /// (at your option) any later version. | |
17 /// | |
18 /// This program is distributed in the hope that it will be useful, | |
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 /// GNU General Public License for more details. | |
22 /// | |
23 /// You should have received a copy of the GNU General Public License | |
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 ////////////////////////////////////////////////////////////////////////////// | |
26 | |
27 #ifndef SETTINGS_H | |
28 #define SETTINGS_H | |
29 | |
30 // From Common/Inc: | |
31 #include "FirmwareData.h" | |
32 | |
33 //#include "data_central.h" | |
34 | |
92
be35821a4974
Stable to test. button sensitiveness fix. + global_constants.
Dmitry Romanov <kitt@bk.ru>
parents:
38
diff
changeset
|
35 #include "global_constants.h" |
38 | 36 // From Common/Drivers/ |
37 #include "stm32f4xx_hal.h" | |
710 | 38 #include "stm32f4xx_hal_rtc.h" |
38 | 39 |
691 | 40 #include "configuration.h" |
41 | |
38 | 42 #include <stdint.h> |
43 | |
92
be35821a4974
Stable to test. button sensitiveness fix. + global_constants.
Dmitry Romanov <kitt@bk.ru>
parents:
38
diff
changeset
|
44 |
38 | 45 #define NUM_GASES 5 |
46 #define NUM_OFFSET_DILUENT 5 | |
47 #define SPECIAL_GAS_ID 0 | |
48 | |
49 #define ERROR_ 0xFF | |
50 | |
51 #define CCRMODE_FixedSetpoint 0 | |
52 #define CCRMODE_Sensors 1 | |
662 | 53 #define CCRMODE_Simulation 2 |
38 | 54 |
55 #define DIVEMODE_OC 0 | |
56 #define DIVEMODE_CCR 1 | |
57 #define DIVEMODE_Gauge 2 | |
58 #define DIVEMODE_Apnea 3 | |
662 | 59 #define DIVEMODE_PSCR 4 |
38 | 60 |
61 #define GF_MODE 1 | |
62 #define VPM_MODE 2 | |
63 | |
64 #define VPM_FROM_FORTRAN 0 | |
65 #define VPM_BACHELORWORK 1 | |
66 | |
67 #define BUEHLMANN_OSTC4 0 | |
68 #define BUEHLMANN_hwOS 1 | |
69 | |
70 #define MMDDYY 0 | |
71 #define DDMMYY 1 | |
72 #define YYMMDD 2 | |
73 | |
337
38367bb982b8
Set Max value for pressure offset to 50mBar (20mBar before)
ideenmodellierer
parents:
210
diff
changeset
|
74 #define PRESSURE_OFFSET_LIMIT_MBAR 50 |
38367bb982b8
Set Max value for pressure offset to 50mBar (20mBar before)
ideenmodellierer
parents:
210
diff
changeset
|
75 |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
76 #define MAX_COMPASS_COMP (2u) |
640 | 77 #define MAX_VIEWPORT_MODE (0x7F) |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
78 |
676 | 79 #define MAX_SCRUBBER_TIME (999u) |
758
b6d8a6fbf4fd
- Colours for scrubber display when time remaining falls below a threshold value
heinrichsweikamp
parents:
741
diff
changeset
|
80 #define MIN_SCRUBBER_TIME -99 |
652 | 81 #define MIN_PPO2_SP_CBAR (40u) |
650 | 82 |
662 | 83 #define PSCR_MAX_O2_DROP (15u) |
84 #define PSCR_MIN_LUNG_RATIO (5u) | |
85 #define PSCR_MAX_LUNG_RATIO (20u) | |
86 | |
691 | 87 #define UART_MAX_PROTOCOL (2u) |
88 | |
776
45b8f3c2acce
Add support for a configurable compass declination in a range of -99 to 99 degrees.
heinrichsweikamp
parents:
765
diff
changeset
|
89 #define FUTURE_SPARE_SIZE (3u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ |
662 | 90 |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
91 typedef enum |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
92 { |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
93 O2_SENSOR_SOURCE_OPTIC = 0, |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
94 O2_SENSOR_SOURCE_ANALOG, |
702
6d7c812fc173
Added digital o2 sensor to settings and data exchange:
Ideenmodellierer
parents:
691
diff
changeset
|
95 O2_SENSOR_SOURCE_DIGITAL, |
6d7c812fc173
Added digital o2 sensor to settings and data exchange:
Ideenmodellierer
parents:
691
diff
changeset
|
96 O2_SENSOR_SOURCE_ANADIG, |
691 | 97 #ifdef ENABLE_SENTINEL_MODE |
98 O2_SENSOR_SOURCE_SENTINEL, | |
99 #endif | |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
100 O2_SENSOR_SOURCE_MAX |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
101 } SensorSource; |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
102 #define MAX_O2_SENSOR_SOURCE (2u) |
546 | 103 |
654
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
104 typedef enum |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
105 { |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
106 SCRUB_TIMER_OFF = 0, |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
107 SCRUB_TIMER_MINUTES, |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
108 SCRUB_TIMER_PERCENT, |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
109 SCRUB_TIMER_END |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
110 } ScrubTimerMode_e; |
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
111 |
38 | 112 /* 2015 Jan 30, hw, deco and travel added for MenuEditGas |
113 * can be used for buehlmann, vpm, etc. later but be carefull | |
114 * with current implemenation */ | |
115 typedef struct{ | |
116 uint8_t active:1; | |
117 uint8_t first:1; | |
118 uint8_t deco:1; | |
119 uint8_t travel:1; | |
526
88c626d01ee5
Added new option to gas configuration: "Off":
Ideenmodellierer
parents:
505
diff
changeset
|
120 uint8_t off:1; |
88c626d01ee5
Added new option to gas configuration: "Off":
Ideenmodellierer
parents:
505
diff
changeset
|
121 uint8_t spare:3; |
38 | 122 } gasubit8_t; |
123 | |
124 typedef union{ | |
125 gasubit8_t ub; | |
126 uint8_t uw; | |
127 } gasbit8_Type; | |
128 | |
129 typedef struct{ | |
130 uint8_t standard:4; | |
131 uint8_t alternative:4; | |
132 } ubit2x4_t; | |
133 | |
134 typedef union{ | |
135 ubit2x4_t ub; | |
136 uint8_t uw; | |
137 } split2x4_Type; | |
138 | |
139 typedef union{ | |
140 uint8_t u8[4]; | |
141 uint32_t u32; | |
142 } general32to8_Type; | |
143 | |
144 typedef struct | |
145 { | |
146 uint8_t oxygen_percentage; | |
147 uint8_t helium_percentage; | |
148 gasbit8_Type note; | |
149 uint8_t depth_meter; | |
150 uint8_t depth_meter_travel; | |
151 uint8_t bottle_size_liter; | |
152 // uint8_t bottle_wireless_status; | |
153 uint16_t bottle_wireless_id; | |
154 } SGasLine; | |
155 | |
156 typedef struct | |
157 { | |
158 uint8_t setpoint_cbar; | |
159 uint8_t depth_meter; | |
160 gasbit8_Type note; | |
161 } SSetpointLine; | |
162 | |
654
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
163 |
710 | 164 typedef struct |
165 { | |
166 uint16_t TimerMax; | |
758
b6d8a6fbf4fd
- Colours for scrubber display when time remaining falls below a threshold value
heinrichsweikamp
parents:
741
diff
changeset
|
167 int16_t TimerCur; |
710 | 168 RTC_DateTypeDef lastDive; |
169 } SScrubberData; | |
170 | |
654
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
171 |
38 | 172 /* SSettings |
173 * gas[0] and setpoint[0] are the special ones configurable during the dive | |
174 */ | |
175 typedef struct | |
176 { | |
177 uint32_t header; | |
178 uint8_t warning_blink_dsec; | |
179 uint8_t lastDiveLogId; | |
180 uint32_t logFlashNextSampleStartAddress; | |
181 SGasLine gas[1 + (2*NUM_GASES)]; | |
182 SSetpointLine setpoint[1 + NUM_GASES]; | |
183 uint8_t CCR_Mode; | |
184 uint8_t dive_mode; | |
185 split2x4_Type deco_type; | |
186 uint8_t ppO2_max_deco; | |
187 uint8_t ppO2_max_std; | |
188 uint8_t ppO2_min; | |
189 uint8_t CNS_max; | |
190 uint8_t ascent_MeterPerMinute_max; | |
191 uint8_t ascent_MeterPerMinute_showGraph; | |
192 uint8_t future_TTS; | |
193 uint8_t GF_high; | |
194 uint8_t GF_low; | |
195 uint8_t aGF_high; | |
196 uint8_t aGF_low; | |
197 split2x4_Type VPM_conservatism; | |
198 uint8_t safetystopDuration; | |
199 uint8_t AtemMinutenVolumenLiter; | |
200 uint8_t ReserveFractionDenominator; | |
201 uint8_t salinity; | |
202 uint8_t last_stop_depth_meter; | |
203 uint8_t stop_increment_depth_meter; | |
204 uint8_t brightness; | |
205 uint8_t date_format; | |
206 uint8_t selected_language; | |
207 char customtext[60]; | |
208 uint16_t timeoutSurfacemode; | |
209 uint8_t timeoutMenuSurface; | |
210 uint8_t timeoutMenuDive; | |
211 uint8_t timeoutMenuEdit; | |
212 uint8_t timeoutInfo; | |
213 uint8_t timeoutInfoCompass; | |
214 uint8_t design; | |
215 uint16_t timeoutDiveReachedZeroDepth; | |
216 uint16_t divetimeToCreateLogbook; | |
217 uint8_t serialHigh; | |
218 uint8_t serialLow; | |
219 // SUFirmware firmwareVersion16to32bit; | |
220 uint32_t backup_localtime_rtc_tr; | |
221 uint32_t backup_localtime_rtc_dr; | |
222 uint16_t totalDiveCounter; | |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
223 uint16_t personalDiveCount; |
38 | 224 uint8_t showDebugInfo; |
225 uint8_t ButtonResponsiveness[4];// changed content in 0xFFFF0016 | |
226 uint8_t nonMetricalSystem; | |
227 uint8_t fallbackToFixedSetpoint; | |
228 uint8_t bluetoothActive; /* will be set to zero on each startup at the moment */ | |
229 uint8_t safetystopDepth; | |
230 uint32_t updateSettingsAllowedFromHeader; | |
662 | 231 uint8_t pscr_lung_ratio; /* redefined in 0xFFFF0020 */ |
232 uint8_t pscr_o2_drop; /* redefined in 0xFFFF0020 */ | |
233 uint8_t co2_sensor_active; /* redefined in 0xFFFF0021 */ | |
691 | 234 uint8_t ext_uart_protocol; /* redefined in 0xFFFF0022 */ |
710 | 235 |
236 uint8_t scubberActiveId; /* redefined in 0xFFFF0023 */ | |
237 SScrubberData scrubberData[2]; | |
728
5143e927219f
Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents:
711
diff
changeset
|
238 uint8_t ext_sensor_map[5]; |
741
6a35e2e97bfb
Added button lock after wakeup in surface mode:
Ideenmodellierer
parents:
728
diff
changeset
|
239 uint8_t buttonLockActive; /* redefined in 0xFFFF0025 */ |
776
45b8f3c2acce
Add support for a configurable compass declination in a range of -99 to 99 degrees.
heinrichsweikamp
parents:
765
diff
changeset
|
240 int8_t compassDeclinationDeg; /* redefined in 0xFFFF0026 */ |
662 | 241 uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/ |
38 | 242 // new in 0xFFFF0006 |
243 uint8_t ppo2sensors_deactivated; | |
244 uint8_t tX_colorscheme; | |
245 uint8_t tX_userselectedLeftLowerCornerPrimary; | |
246 uint8_t tX_userselectedLeftLowerCornerTimeout; | |
247 uint8_t tX_customViewPrimary; | |
248 uint8_t tX_customViewTimeout; | |
249 uint8_t timeoutEnterButtonSelectDive; | |
250 uint16_t logbookOffset; | |
251 uint8_t alwaysShowPPO2; | |
252 uint8_t extraDisplay; | |
253 uint16_t display_toogle_desc; | |
254 int8_t offsetPressure_mbar; | |
255 int8_t offsetTemperature_centigrad; | |
256 uint8_t gasConsumption_travel_l_min; | |
257 uint8_t gasConsumption_bottom_l_min; | |
258 uint8_t gasConsumption_deco_l_min; | |
259 uint8_t debugModeOnStart; | |
260 uint8_t IAmStolenPleaseKillMe; | |
261 int16_t compassBearing; | |
262 uint8_t lastKnownBatteryPercentage; | |
263 uint8_t buttonBalance[3]; // 0 = right, 1 = center, 2 = left | |
264 uint8_t firmwareVersion[4]; | |
265 uint16_t timeoutSurfacemodeWithSensors; | |
266 // new in 0xFFFF0016 | |
267 uint8_t VPM_model; | |
268 uint8_t GF_model; | |
269 // new in 0xFFFF0017 | |
270 uint8_t FactoryButtonBase; | |
271 uint8_t FactoryButtonBalance[3]; | |
112
fdf0272e9213
Added new nvm parameter"FlipDisplay" indicating the screen orientation
Ideenmodellierer
parents:
38
diff
changeset
|
272 /* new in 0xFFFF0018 */ |
fdf0272e9213
Added new nvm parameter"FlipDisplay" indicating the screen orientation
Ideenmodellierer
parents:
38
diff
changeset
|
273 uint8_t FlipDisplay; |
210
b2a9e9b02df0
New feature: make selected customviews persistent
Jan Mulder <jlmulder@xs4all.nl>
parents:
138
diff
changeset
|
274 /* new in 0xFFFF0019 */ |
b2a9e9b02df0
New feature: make selected customviews persistent
Jan Mulder <jlmulder@xs4all.nl>
parents:
138
diff
changeset
|
275 uint32_t cv_configuration; |
368
50ea68c7a153
Added menu item for motion detection. There are several possibility to use motion detection for user action input. To select of the a new menu entry has been added to the Sys2 =>Custom View Menu (Variables in german)
ideenmodellierer
parents:
210
diff
changeset
|
276 /* new in 0xFFFF001A */ |
50ea68c7a153
Added menu item for motion detection. There are several possibility to use motion detection for user action input. To select of the a new menu entry has been added to the Sys2 =>Custom View Menu (Variables in german)
ideenmodellierer
parents:
210
diff
changeset
|
277 uint8_t MotionDetection; |
498
4811f3dfaa52
Added dew parameter to enable selection of customer BigFont screens to be displayed
Ideenmodellierer
parents:
372
diff
changeset
|
278 /* new in 0xFFFF001B */ |
4811f3dfaa52
Added dew parameter to enable selection of customer BigFont screens to be displayed
Ideenmodellierer
parents:
372
diff
changeset
|
279 uint32_t cv_config_BigScreen; |
539
d784f281833a
Added inertia simulation for compass heading:
Ideenmodellierer
parents:
526
diff
changeset
|
280 /* new in 0xFFFF001C */ |
d784f281833a
Added inertia simulation for compass heading:
Ideenmodellierer
parents:
526
diff
changeset
|
281 uint8_t compassInertia; |
542
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
539
diff
changeset
|
282 uint8_t tX_customViewPrimaryBF; |
546 | 283 /* new in 0xFFFF001D */ |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
567
diff
changeset
|
284 uint8_t viewPortMode; /* 7-Reserve| 6..5 - Focus spot size | 4-Focusframe | 3-Reserve | 2..0-BacklightBoost */ |
546 | 285 uint16_t viewRoll; |
286 uint16_t viewPitch; | |
287 uint16_t viewYaw; | |
560
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
288 /* new in 0xFFFF001E */ |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
289 uint8_t ppo2sensors_source; |
5d80bb8d22cb
Added O2 sensor source and calibration parameters to setting structure
Ideenmodellierer
parents:
550
diff
changeset
|
290 float ppo2sensors_calibCoeff[3]; |
567 | 291 uint8_t amPMTime; |
650 | 292 /* new in 0xFFFF001F */ |
293 uint8_t autoSetpoint; | |
710 | 294 uint16_t scrubTimerMax_Obsolete; /* have been replaced with new scrubber data format */ |
295 uint16_t scrubTimerCur_Obsolete; /* have been replaced with new scrubber data format */ | |
654
890440ab993a
Introduced new menu tab for addition CCR options:
Ideenmodellierer
parents:
652
diff
changeset
|
296 uint8_t scrubTimerMode; |
38 | 297 } SSettings; |
298 | |
299 typedef struct | |
300 { | |
301 // 8 bytes | |
302 uint16_t primarySerial; | |
303 uint8_t primaryLicence; | |
304 uint8_t revision8bit; | |
305 uint8_t production_year; | |
306 uint8_t production_month; | |
307 uint8_t production_day; | |
308 uint8_t production_bluetooth_name_set; | |
309 | |
310 // 44 bytes | |
311 char production_info[44]; | |
312 | |
313 // 8 bytes | |
314 uint16_t secondarySerial; | |
315 uint8_t secondaryLicence; | |
316 uint8_t secondaryReason8bit; | |
317 uint8_t secondary_year; | |
318 uint8_t secondary_month; | |
319 uint8_t secondary_day; | |
320 uint8_t secondary_bluetooth_name_set; | |
321 | |
322 // 4 bytes | |
323 char secondary_info[4]; | |
324 } SHardwareData; | |
325 | |
326 uint8_t writeData(uint8_t *); | |
327 uint8_t readData(uint8_t what,uint8_t *); | |
328 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data); | |
329 | |
330 uint8_t getPPO2Max(void); | |
331 uint8_t getPPO2Min(void); | |
332 uint8_t getDiveMode(void); | |
333 uint8_t getCCRMode(void); | |
334 uint8_t getDecoType(void); | |
335 uint8_t getFutureTTS(void); | |
336 | |
337 SSettings* settingsGetPointer(void); | |
338 const SSettings* settingsGetPointerStandard(void); | |
339 void set_settings_to_Standard(void); | |
340 void mod_settings_for_first_start_with_empty_ext_flash(void); | |
341 const SFirmwareData* firmwareDataGetPointer(void); | |
342 const SHardwareData* hardwareDataGetPointer(void); | |
343 uint8_t firmwareVersion_16bit_high(void); | |
344 uint8_t firmwareVersion_16bit_low(void); | |
345 void hardwareBatchCode(uint8_t *high, uint8_t *low); | |
346 | |
347 uint8_t RTEminimum_required_high(void); | |
348 uint8_t RTEminimum_required_low(void); | |
349 uint8_t FONTminimum_required_high(void); | |
350 uint8_t FONTminimum_required_low(void); | |
351 | |
352 void setActualRTEversion(uint8_t high, uint8_t low); | |
353 void getActualRTEandFONTversion(uint8_t *RTEhigh, uint8_t *RTElow, uint8_t *FONThigh, uint8_t *FONTlow); | |
354 | |
355 void set_new_settings_missing_in_ext_flash(void); | |
356 uint8_t check_and_correct_settings(void); | |
357 uint8_t newFirmwareVersionCheckViaSettings(void); | |
765
da8126d5ea9f
After a firmware update, use the factory settings for button sensitivity if these exist, the default settings otherwise.
heinrichsweikamp
parents:
758
diff
changeset
|
358 void set_settings_button_to_factory_with_individual_buttonBalance(void); |
38 | 359 uint8_t getLicence(void); |
360 void firmwareGetDate(RTC_DateTypeDef *SdateOutput); | |
361 | |
362 void settingsHelperButtonSens_original_translate_to_hwOS_values(const uint32_t inputValueRaw, uint8_t *outArray4Values); | |
363 | |
364 uint8_t buttonBalanceTranslatorHexToArray(uint8_t hexValue, uint8_t* outputArray); | |
365 uint8_t buttonBalanceTranslateArrayOutHex(const uint8_t* inputArray); | |
366 void getButtonFactorDefaults(uint8_t* basePercentage, uint8_t* buttonBalanceArray); | |
367 void settingsWriteFactoryDefaults(uint8_t inputValueRaw, uint8_t *inputBalanceArray); | |
368 | |
369 void settingsHelperButtonSens_keepPercentageValues(uint32_t inputValueRaw, uint8_t *outArray4Values); | |
370 uint8_t settingsHelperButtonSens_translate_percentage_to_hwOS_values(uint8_t inputValuePercentage); | |
371 uint8_t settingsHelperButtonSens_translate_hwOS_values_to_percentage(uint8_t inputValuePIC); | |
372 | |
662 | 373 void reset_SettingWarning(); |
374 uint8_t isSettingsWarning(); | |
375 | |
38 | 376 #endif // SETTINGS_H |