Mercurial > public > hwos_code
comparison src/option_table.asm @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
author | heinrichsweikamp |
---|---|
date | Thu, 22 Nov 2018 19:47:26 +0100 |
parents | b455b31ce022 |
children | d866684249bd |
comparison
equal
deleted
inserted
replaced
603:00b24fb4324d | 604:ca4556fb60b9 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File option_table.asm REFACTORED VERSION V2.98 | 3 ; File option_table.asm REFACTORED VERSION V2.99e |
4 ; | 4 ; |
5 ; The option table | 5 ; The Option Table |
6 ; | 6 ; |
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
9 ; HISTORY | 9 ; HISTORY |
10 ; 2014-08-03 : mH creation | 10 ; 2014-08-03 : mH creation |
11 ; | 11 ; |
12 | 12 |
13 #include "hwos.inc" ; Mandatory header | 13 #include "hwos.inc" ; Mandatory Header |
14 #include "eeprom_rs232.inc" | 14 #include "eeprom_rs232.inc" |
15 | 15 |
16 ;============================================================================= | 16 ;============================================================================= |
17 ; Options Tables | 17 ; Options Tables |
18 | 18 |
19 option_table CODE 0x00700 | 19 option_table CODE 0x00700 |
20 | 20 |
21 OPTION_UINT8 MACRO lbl, min, max, default, unit, eeprom, register | 21 OPTION_UINT8 MACRO lbl, min, max, default, unit, eeprom, register |
22 global lbl | 22 global lbl |
23 lbl: db 0, default ; Type0 = INT8 | 23 lbl: db 0, default ; type0 = INT8 |
24 db 1, min | 24 db 1, min |
25 db max, eeprom | 25 db max, eeprom |
26 dw unit | 26 dw unit |
27 dw register | 27 dw register |
28 ENDM | 28 ENDM |
29 | 29 |
30 OPTION_UINT8p2 MACRO lbl, min, max, default, unit, eeprom, register | 30 OPTION_UINT8p2 MACRO lbl, min, max, default, unit, eeprom, register |
31 global lbl | 31 global lbl |
32 lbl: db 0, default ; Type0 = INT8 | 32 lbl: db 0, default ; type0 = INT8 |
33 db 2, min | 33 db 2, min |
34 db max, eeprom | 34 db max, eeprom |
35 dw unit | 35 dw unit |
36 dw register | 36 dw register |
37 ENDM | 37 ENDM |
38 | 38 |
39 OPTION_UINT8p3 MACRO lbl, min, max, default, unit, eeprom, register | 39 OPTION_UINT8p3 MACRO lbl, min, max, default, unit, eeprom, register |
40 global lbl | 40 global lbl |
41 lbl: db 0, default ; Type0 = INT8 | 41 lbl: db 0, default ; type0 = INT8 |
42 db 3, min | 42 db 3, min |
43 db max, eeprom | 43 db max, eeprom |
44 dw unit | 44 dw unit |
45 dw register | 45 dw register |
46 ENDM | 46 ENDM |
47 | 47 |
48 OPTION_UINT8p5 MACRO lbl, min, max, default, unit, eeprom, register | 48 OPTION_UINT8p5 MACRO lbl, min, max, default, unit, eeprom, register |
49 global lbl | 49 global lbl |
50 lbl: db 0, default ; Type0 = INT8 | 50 lbl: db 0, default ; type0 = INT8 |
51 db .5, min | 51 db .5, min |
52 db max, eeprom | 52 db max, eeprom |
53 dw unit | 53 dw unit |
54 dw register | 54 dw register |
55 ENDM | 55 ENDM |
56 | 56 |
57 OPTION_UINT8p10 MACRO lbl, min, max, default, unit, eeprom, register | 57 OPTION_UINT8p10 MACRO lbl, min, max, default, unit, eeprom, register |
58 global lbl | 58 global lbl |
59 lbl: db 0, default ; Type0 = INT8 | 59 lbl: db 0, default ; type0 = INT8 |
60 db .10, min | 60 db .10, min |
61 db max, eeprom | 61 db max, eeprom |
62 dw unit | 62 dw unit |
63 dw register | 63 dw register |
64 ENDM | 64 ENDM |
65 | 65 |
66 OPTION_ENUM8 MACRO lbl, max, default, tValue, eeprom, register | 66 OPTION_ENUM8 MACRO lbl, max, default, tValue, eeprom, register |
67 global lbl | 67 global lbl |
68 extern tValue | 68 extern tValue |
69 lbl: db 1, default ; Type1 = ENUM | 69 lbl: db 1, default ; type1 = ENUM |
70 db LOW(tValue), HIGH(tValue) | 70 db LOW(tValue), HIGH(tValue) |
71 db max, eeprom | 71 db max, eeprom |
72 dw 0 ; No unit | 72 dw 0 ; no unit |
73 dw register | 73 dw register |
74 ENDM | 74 ENDM |
75 | 75 |
76 OPTION_BOOL MACRO lbl, default, eeprom, register | 76 OPTION_BOOL MACRO lbl, default, eeprom, register |
77 OPTION_ENUM8 lbl, 2, default, tNo, eeprom, register | 77 OPTION_ENUM8 lbl, 2, default, tNo, eeprom, register |
78 ENDM | 78 ENDM |
79 | 79 |
80 | 80 |
81 OPTION_STRING MACRO lbl, length, defText, eeprom, register | 81 OPTION_STRING MACRO lbl, length, defText, eeprom, register |
82 global lbl | 82 global lbl |
83 lbl: db 2, LOW(defText) ; Type2 = STRING | 83 lbl: db 2, LOW(defText) ; type2 = STRING |
84 db HIGH(defText), 0 | 84 db HIGH(defText), 0 |
85 db length, eeprom | 85 db length, eeprom |
86 dw 0 ; No unit | 86 dw 0 ; no unit |
87 dw register | 87 dw register |
88 ENDM | 88 ENDM |
89 | 89 |
90 | 90 |
91 ;============================================================================= | 91 ;============================================================================= |
92 extern tPercent, tMeters, tMinutes, tGasDisabled, tbar | 92 extern tPercent, tMeters, tMinutes, tGasDisabled, tbar, tNo, tTrModeOff, tTrPresNone, tDefName, tblank, tLogTunitC |
93 extern char_I_deco_gas_change, char_I_setpoint_change, char_I_setpoint_cbar, char_I_dil_change | 93 extern char_I_setpoint_change, char_I_setpoint_cbar |
94 extern char_I_dive_interval, char_I_bottom_time, char_I_bottom_depth | 94 extern char_I_dive_interval, char_I_bottom_time, char_I_bottom_depth |
95 extern char_I_deco_model | 95 extern char_I_deco_model |
96 extern char_I_extra_time | 96 extern char_I_extra_time |
97 extern tDefName, tblank | |
98 extern char_I_bottom_usage, char_I_deco_usage, tLitersMinute | 97 extern char_I_bottom_usage, char_I_deco_usage, tLitersMinute |
99 extern char_I_PSCR_drop, char_I_PSCR_lungratio | 98 extern char_I_PSCR_drop, char_I_PSCR_lungratio |
100 extern char_I_tank_size, char_I_tank_pres_fill, tLiter, tbar10 | 99 extern char_I_tank_size, char_I_tank_pres_fill, tLiter, tbar10 |
101 extern char_I_cc_max_frac_o2 | 100 extern char_I_cc_max_frac_o2 |
102 extern char_I_altitude_wait | 101 extern char_I_altitude_wait |
103 extern char_I_ppO2_max, char_I_ppO2_min, char_I_ppO2_max_deco, char_I_ppO2_min_loop | 102 extern char_I_ppO2_max, char_I_ppO2_min, char_I_ppO2_max_deco, char_I_ppO2_min_loop |
104 extern char_I_ascent_speed, tMeterMinute | 103 extern char_I_ascent_speed, tMeterMinute |
105 extern char_I_gas_change_time, tmin | 104 extern char_I_gas_change_time |
106 | 105 extern char_I_max_pres_diff |
107 ; Option table | 106 |
108 ; OPTION_UINT8 Label, min, max, default, text-string, EEPROM location, RAM location | 107 |
108 ; Option Table - Format: | |
109 ; ---------------------- | |
110 ; OPTION_UINT8 Label, min, max, default, unit text, EEPROM location, RAM location | |
111 ; OPTION_ENUM8 Label, number of enums default, unit text, EEPROM location, RAM location ; number of enums = 2, 3, ..., default starts with 0 | |
112 ; OPTION_BOOL Label, default, EEPROM location, RAM location | |
109 | 113 |
110 #DEFINE notext .0 ; no text-string associated | 114 #DEFINE notext .0 ; no text-string associated |
111 #DEFINE volatile -1 ; do not store to EEPROM | 115 #DEFINE volatile -1 ; do not store to EEPROM |
112 | 116 |
117 | |
113 global option_table_begin | 118 global option_table_begin |
114 option_table_begin: | 119 option_table_begin: |
115 ;============================================================================= | 120 ;============================================================================= |
116 ; Manage Decoplaner & Dive parameters | 121 ; Manage Decoplaner & Dive parameters |
117 OPTION_UINT8p10 odiveInterval, .0, .240, .0, tMinutes, volatile, char_I_dive_interval | 122 OPTION_UINT8p10 odiveInterval, .0, .240, .0, tMinutes, volatile, char_I_dive_interval |
118 OPTION_UINT8p2 obottomTime, .1, .60, .5, tMinutes, volatile, char_I_bottom_time | 123 OPTION_UINT8p2 obottomTime, .2, .60, .10, tMinutes, volatile, char_I_bottom_time |
119 OPTION_UINT8p3 obottomDepth, .12, .120, .21, tMeters, volatile, char_I_bottom_depth | 124 OPTION_UINT8p3 obottomDepth, .12, .120, .21, tMeters, volatile, char_I_bottom_depth |
120 OPTION_ENUM8 oDiveMode, .5, .0, tDvOC, .8, opt_dive_mode ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR | 125 OPTION_ENUM8 oDiveMode, .5, .0, tDvOC, .8, opt_dive_mode ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR |
121 OPTION_ENUM8 oDecoMode, .2, .1, tZHL16, .9, char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF | 126 OPTION_ENUM8 oDecoMode, .2, .1, tZHL16, .9, char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF |
122 ; .10 ; in use, see below | 127 ; .10 ; in use, see below |
123 OPTION_UINT8 oLastDeco, .3, .6, .3, tMeters, .11, opt_last_stop | 128 OPTION_UINT8 oLastDeco, .3, .6, .3, tMeters, .11, opt_last_stop |
124 OPTION_UINT8 oGF_low, .10, .100, .30, tPercent, .12, opt_GF_low | 129 OPTION_UINT8 oGF_low, .10, .100, .30, tPercent, .12, opt_GF_low |
125 OPTION_UINT8 oGF_high, .45, .110, .85, tPercent, .13, opt_GF_high | 130 OPTION_UINT8 oGF_high, .45, .110, .85, tPercent, .13, opt_GF_high |
136 ; Managing Settings | 141 ; Managing Settings |
137 OPTION_UINT8 oExtraTime, .0, .9, .0, tMinutes, .22, char_I_extra_time ; Future TTS | 142 OPTION_UINT8 oExtraTime, .0, .9, .0, tMinutes, .22, char_I_extra_time ; Future TTS |
138 OPTION_ENUM8 oBrightness, .3, .0, tEco, .23, opt_brightness ; =0: Eco, =1:Medium, =2:Full | 143 OPTION_ENUM8 oBrightness, .3, .0, tEco, .23, opt_brightness ; =0: Eco, =1:Medium, =2:Full |
139 OPTION_UINT8 oDiveSalinity, .0, .4, .0, tPercent, .24, opt_salinity ; 0-4% | 144 OPTION_UINT8 oDiveSalinity, .0, .4, .0, tPercent, .24, opt_salinity ; 0-4% |
140 OPTION_ENUM8 oCCRMode, .3, .0, tCCRModeFixedSP,.25, opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 145 OPTION_ENUM8 oCCRMode, .3, .0, tCCRModeFixedSP,.25, opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
141 | 146 OPTION_ENUM8 oLanguage, .2, .0, tLang1, .26, opt_language ; language selection |
142 IFNDEF french_italian | |
143 OPTION_ENUM8 oLanguage, .2, .0, tEnglish, .26, opt_language ; 0=EN, 1=DE | |
144 ELSE | |
145 OPTION_ENUM8 oLanguage, .2, .0, tFrench, .26, opt_language ; 0=FR, 1=IT | |
146 ENDIF | |
147 OPTION_ENUM8 oDateFormat, .3, .1, tDateformat, .27, opt_dateformat ; =0:MMDDYY, =1:DDMMYY, =2:YYMMDD | 147 OPTION_ENUM8 oDateFormat, .3, .1, tDateformat, .27, opt_dateformat ; =0:MMDDYY, =1:DDMMYY, =2:YYMMDD |
148 OPTION_ENUM8 oUnits, .2, .0, tMetric, .28, opt_units ; 0=Meter, 1=Feet | 148 OPTION_ENUM8 oUnits, .2, .0, tMetric, .28, opt_units ; 0=Meter, 1=Feet |
149 | 149 |
150 ;============================================================================= | 150 ;============================================================================= |
151 ; Compass calibration data | 151 ; Compass calibration data |
171 OPTION_UINT8 oGas3He, .0, gaslist_max_He, .0, tPercent, .45, opt_gas_He_ratio+2 | 171 OPTION_UINT8 oGas3He, .0, gaslist_max_He, .0, tPercent, .45, opt_gas_He_ratio+2 |
172 OPTION_UINT8 oGas4O2, gaslist_min_o2, .100, .21, tPercent, .46, opt_gas_O2_ratio+3 | 172 OPTION_UINT8 oGas4O2, gaslist_min_o2, .100, .21, tPercent, .46, opt_gas_O2_ratio+3 |
173 OPTION_UINT8 oGas4He, .0, gaslist_max_He, .0, tPercent, .47, opt_gas_He_ratio+3 | 173 OPTION_UINT8 oGas4He, .0, gaslist_max_He, .0, tPercent, .47, opt_gas_He_ratio+3 |
174 OPTION_UINT8 oGas5O2, gaslist_min_o2, .100, .21, tPercent, .48, opt_gas_O2_ratio+4 | 174 OPTION_UINT8 oGas5O2, gaslist_min_o2, .100, .21, tPercent, .48, opt_gas_O2_ratio+4 |
175 OPTION_UINT8 oGas5He, .0, gaslist_max_He, .0, tPercent, .49, opt_gas_He_ratio+4 | 175 OPTION_UINT8 oGas5He, .0, gaslist_max_He, .0, tPercent, .49, opt_gas_He_ratio+4 |
176 OPTION_UINT8 oGas1Depth, .0, gaslist_max_change_depth, .0, tMeters, .50, opt_OC_bail_gas_change+0 | 176 OPTION_UINT8 oGas1Depth, .0, gaslist_max_change_depth, .56, tMeters, .50, opt_gas_change+0 |
177 OPTION_UINT8 oGas2Depth, .0, gaslist_max_change_depth, .0, tMeters, .51, opt_OC_bail_gas_change+1 | 177 OPTION_UINT8 oGas2Depth, .0, gaslist_max_change_depth, .56, tMeters, .51, opt_gas_change+1 |
178 OPTION_UINT8 oGas3Depth, .0, gaslist_max_change_depth, .0, tMeters, .52, opt_OC_bail_gas_change+2 | 178 OPTION_UINT8 oGas3Depth, .0, gaslist_max_change_depth, .56, tMeters, .52, opt_gas_change+2 |
179 OPTION_UINT8 oGas4Depth, .0, gaslist_max_change_depth, .0, tMeters, .53, opt_OC_bail_gas_change+3 | 179 OPTION_UINT8 oGas4Depth, .0, gaslist_max_change_depth, .56, tMeters, .53, opt_gas_change+3 |
180 OPTION_UINT8 oGas5Depth, .0, gaslist_max_change_depth, .0, tMeters, .54, opt_OC_bail_gas_change+4 | 180 OPTION_UINT8 oGas5Depth, .0, gaslist_max_change_depth, .56, tMeters, .54, opt_gas_change+4 |
181 OPTION_UINT8 oDil1O2, gaslist_min_o2, .100, .21, tPercent, .55, opt_dil_O2_ratio+0 | 181 OPTION_UINT8 oDil1O2, gaslist_min_o2, .100, .21, tPercent, .55, opt_dil_O2_ratio+0 |
182 OPTION_UINT8 oDil1He, .0, gaslist_max_He, .0, tPercent, .56, opt_dil_He_ratio+0 | 182 OPTION_UINT8 oDil1He, .0, gaslist_max_He, .0, tPercent, .56, opt_dil_He_ratio+0 |
183 OPTION_UINT8 oDil2O2, gaslist_min_o2, .100, .21, tPercent, .57, opt_dil_O2_ratio+1 | 183 OPTION_UINT8 oDil2O2, gaslist_min_o2, .100, .21, tPercent, .57, opt_dil_O2_ratio+1 |
184 OPTION_UINT8 oDil2He, .0, gaslist_max_He, .0, tPercent, .58, opt_dil_He_ratio+1 | 184 OPTION_UINT8 oDil2He, .0, gaslist_max_He, .0, tPercent, .58, opt_dil_He_ratio+1 |
185 OPTION_UINT8 oDil3O2, gaslist_min_o2, .100, .21, tPercent, .59, opt_dil_O2_ratio+2 | 185 OPTION_UINT8 oDil3O2, gaslist_min_o2, .100, .21, tPercent, .59, opt_dil_O2_ratio+2 |
201 OPTION_ENUM8 oDil1, .2, .1, tDilDisabled, .75, opt_dil_type+0 ; 0=Disabled, 1=First, 2=Normal | 201 OPTION_ENUM8 oDil1, .2, .1, tDilDisabled, .75, opt_dil_type+0 ; 0=Disabled, 1=First, 2=Normal |
202 OPTION_ENUM8 oDil2, .2, .0, tDilDisabled, .76, opt_dil_type+1 | 202 OPTION_ENUM8 oDil2, .2, .0, tDilDisabled, .76, opt_dil_type+1 |
203 OPTION_ENUM8 oDil3, .2, .0, tDilDisabled, .77, opt_dil_type+2 | 203 OPTION_ENUM8 oDil3, .2, .0, tDilDisabled, .77, opt_dil_type+2 |
204 OPTION_ENUM8 oDil4, .2, .0, tDilDisabled, .78, opt_dil_type+3 | 204 OPTION_ENUM8 oDil4, .2, .0, tDilDisabled, .78, opt_dil_type+3 |
205 OPTION_ENUM8 oDil5, .2, .0, tDilDisabled, .79, opt_dil_type+4 | 205 OPTION_ENUM8 oDil5, .2, .0, tDilDisabled, .79, opt_dil_type+4 |
206 OPTION_UINT8 oDil1Depth, .0, .99, .0, tMeters, .80, char_I_dil_change+0 | 206 OPTION_UINT8 oDil1Depth, .0, gaslist_max_change_depth, .56, tMeters, .80, opt_dil_change+0 |
207 OPTION_UINT8 oDil2Depth, .0, .99, .0, tMeters, .81, char_I_dil_change+1 | 207 OPTION_UINT8 oDil2Depth, .0, gaslist_max_change_depth, .56, tMeters, .81, opt_dil_change+1 |
208 OPTION_UINT8 oDil3Depth, .0, .99, .0, tMeters, .82, char_I_dil_change+2 | 208 OPTION_UINT8 oDil3Depth, .0, gaslist_max_change_depth, .56, tMeters, .82, opt_dil_change+2 |
209 OPTION_UINT8 oDil4Depth, .0, .99, .0, tMeters, .83, char_I_dil_change+3 | 209 OPTION_UINT8 oDil4Depth, .0, gaslist_max_change_depth, .56, tMeters, .83, opt_dil_change+3 |
210 OPTION_UINT8 oDil5Depth, .0, .99, .0, tMeters, .84, char_I_dil_change+4 | 210 OPTION_UINT8 oDil5Depth, .0, gaslist_max_change_depth, .56, tMeters, .84, opt_dil_change+4 |
211 | 211 |
212 ;============================================================================= | 212 ;============================================================================= |
213 ; opt_name from 85 to 145 | 213 ; opt_name from 85 to 145 |
214 OPTION_STRING oName, opt_name_length, tDefName, .85, opt_name | 214 OPTION_STRING oName, opt_name_length, tDefName, .85, opt_name |
215 | 215 |
216 ;============================================================================= | 216 ;============================================================================= |
217 ; Misc | 217 ; Misc |
218 OPTION_ENUM8 oColorSetDive, .4, .0, tColorSetName0, .146, opt_dive_color_scheme ; Color scheme divemode | 218 OPTION_ENUM8 oColorSetDive, .4, .0, tColorSetName0, .146, opt_dive_color_scheme ; color scheme divemode |
219 OPTION_UINT8 oPressureAdjust, .0, .255, .0, notext, .147, opt_pressure_adjust ; SIGNED int (-20/+20mbar max.) | 219 OPTION_UINT8 oPressureAdjust, .0, .255, .0, notext, .147, opt_pressure_adjust ; SIGNED int (-20/+20mbar max.) |
220 OPTION_BOOL oSafetyStop, .0, .148, opt_enable_safetystop ; =1: A safety stop is shown | 220 OPTION_BOOL oSafetyStop, .0, .148, opt_enable_safetystop ; =1: A safety stop is shown |
221 OPTION_UINT8 oCalGasO2, .21, .100, .21, tPercent, .149, opt_calibration_O2_ratio ; Calibration gas %O2 (Do not move in EEPROM, must stay at .149!) | 221 OPTION_UINT8 oCalGasO2, .21, .100, .21, tPercent, .149, opt_calibration_O2_ratio ; calibration gas %O2 (Do not move in EEPROM, must stay at .149!) |
222 OPTION_BOOL oFlipScreen, .0, .151, opt_flip_screen ; =1: Flip the screen | 222 OPTION_BOOL oFlipScreen, .0, .151, opt_flip_screen ; =1: Flip the screen |
223 OPTION_UINT8p10 ocR_button_left, .20, .80, .40, tPercent, .152, opt_cR_button_left ; left button sensitivity | 223 OPTION_UINT8p10 ocR_button_left, .20, .80, .40, tPercent, .152, opt_cR_button_left ; left button sensitivity |
224 OPTION_UINT8p10 ocR_button_right, .20, .80, .40, tPercent, .153, opt_cR_button_right ; right button sensitivity | 224 OPTION_UINT8p10 ocR_button_right, .20, .80, .40, tPercent, .153, opt_cR_button_right ; right button sensitivity |
225 OPTION_UINT8 obottom_usage, .5, .50, .20, tLitersMinute, .154, char_I_bottom_usage ; l/min | 225 OPTION_UINT8 obottom_usage, .5, .50, .20, tLitersMinute, .154, char_I_bottom_usage ; l/min |
226 OPTION_UINT8 odeco_usage, .5, .50, .20, tLitersMinute, .155, char_I_deco_usage ; l/min | 226 OPTION_UINT8 odeco_usage, .5, .50, .20, tLitersMinute, .155, char_I_deco_usage ; l/min |
231 OPTION_UINT8 oTemperatureAdjust, .0, .255, .0, notext, .160, opt_temperature_adjust ; SIGNED int (-2.0/+2.0 °C max.) | 231 OPTION_UINT8 oTemperatureAdjust, .0, .255, .0, notext, .160, opt_temperature_adjust ; SIGNED int (-2.0/+2.0 °C max.) |
232 OPTION_UINT8 oSafetyStopLength, .60, .240, .180, notext, .161, opt_safety_stop_length ; [s] | 232 OPTION_UINT8 oSafetyStopLength, .60, .240, .180, notext, .161, opt_safety_stop_length ; [s] |
233 OPTION_UINT8 oSafetyStopStart, .21, .61, .51, notext, .162, opt_safety_stop_start ; [cbar], default 510mbar, min 210mbar, max 610mbar | 233 OPTION_UINT8 oSafetyStopStart, .21, .61, .51, notext, .162, opt_safety_stop_start ; [cbar], default 510mbar, min 210mbar, max 610mbar |
234 OPTION_UINT8 oSafetyStopEnd, .19, .39, .29, notext, .163, opt_safety_stop_end ; [cbar], default 290mbar, min 190mbar, max 390mbar | 234 OPTION_UINT8 oSafetyStopEnd, .19, .39, .29, notext, .163, opt_safety_stop_end ; [cbar], default 290mbar, min 190mbar, max 390mbar |
235 OPTION_UINT8 oSafetyStopReset, .81, .151, .101, notext, .164, opt_safety_stop_reset ; [cbar], default 1010mbar, min 810mbar, max 1510mbar | 235 OPTION_UINT8 oSafetyStopReset, .81, .151, .101, notext, .164, opt_safety_stop_reset ; [cbar], default 1010mbar, min 810mbar, max 1510mbar |
236 OPTION_UINT8 oDiveTimeout, .1, .20, .5, tMinutes, .168, opt_diveTimeout ; Timeout for divemode in minutes | 236 OPTION_UINT8 oDiveTimeout, .1, .20, .5, tMinutes, .168, opt_diveTimeout ; timeout for divemode in minutes |
237 OPTION_UINT8 oPSCR_drop, .0, .15, .4, tPercent, .169, char_I_PSCR_drop ; PSCR Drop [%] | 237 OPTION_UINT8 oPSCR_drop, .0, .15, .4, tPercent, .169, char_I_PSCR_drop ; pSCR Drop [%] |
238 OPTION_UINT8 oPSCR_lungratio, .5, .20, .10, tPercent, .170, char_I_PSCR_lungratio ; PSCR Lung Ratio [1/x] | 238 OPTION_UINT8 oPSCR_lungratio, .5, .20, .10, tPercent, .170, char_I_PSCR_lungratio ; pSCR Lung Ratio [1/x] |
239 ; .171 ; in use, see below | 239 ; .171 ; in use, see below |
240 ; .172 ; in use, see below | 240 ; .172 ; in use, see below |
241 OPTION_UINT8 oTankSize1, .1, .40, .11, tLiter, .173, char_I_tank_size+0 ; size of OC gas tank 1 | 241 OPTION_UINT8 oTankSize1, min_tank_size, max_tank_size, .11, tLiter, .173, char_I_tank_size+0 ; size of OC gas tank 1, in liters |
242 OPTION_UINT8 oTankSize2, .1, .40, .11, tLiter, .174, char_I_tank_size+1 ; size of OC gas tank 2 | 242 OPTION_UINT8 oTankSize2, min_tank_size, max_tank_size, .11, tLiter, .174, char_I_tank_size+1 ; size of OC gas tank 2, in liters |
243 OPTION_UINT8 oTankSize3, .1, .40, .11, tLiter, .175, char_I_tank_size+2 ; size of OC gas tank 3 | 243 OPTION_UINT8 oTankSize3, min_tank_size, max_tank_size, .11, tLiter, .175, char_I_tank_size+2 ; size of OC gas tank 3, in liters |
244 OPTION_UINT8 oTankSize4, .1, .40, .11, tLiter, .176, char_I_tank_size+3 ; size of OC gas tank 4 | 244 OPTION_UINT8 oTankSize4, min_tank_size, max_tank_size, .11, tLiter, .176, char_I_tank_size+3 ; size of OC gas tank 4, in liters |
245 OPTION_UINT8 oTankSize5, .1, .40, .11, tLiter, .177, char_I_tank_size+4 ; size of OC gas tank 5 | 245 OPTION_UINT8 oTankSize5, min_tank_size, max_tank_size, .11, tLiter, .177, char_I_tank_size+4 ; size of OC gas tank 5, in liters |
246 OPTION_UINT8 oTankFillPres1, .5, .29, .20, tbar10, .178, char_I_tank_pres_fill+0 ; fill press of OC gas tank 1 | 246 OPTION_UINT8 oTankFillPres1, min_fill_press, max_fill_press, .20, tbar10, .178, char_I_tank_pres_fill+0 ; fill press of OC gas tank 1, in multiples of 10 bars |
247 OPTION_UINT8 oTankFillPres2, .5, .29, .20, tbar10, .179, char_I_tank_pres_fill+1 ; fill press of OC gas tank 2 | 247 OPTION_UINT8 oTankFillPres2, min_fill_press, max_fill_press, .20, tbar10, .179, char_I_tank_pres_fill+1 ; fill press of OC gas tank 2, in multiples of 10 bars |
248 OPTION_UINT8 oTankFillPres3, .5, .29, .20, tbar10, .180, char_I_tank_pres_fill+2 ; fill press of OC gas tank 3 | 248 OPTION_UINT8 oTankFillPres3, min_fill_press, max_fill_press, .20, tbar10, .180, char_I_tank_pres_fill+2 ; fill press of OC gas tank 3, in multiples of 10 bars |
249 OPTION_UINT8 oTankFillPres4, .5, .29, .20, tbar10, .181, char_I_tank_pres_fill+3 ; fill press of OC gas tank 4 | 249 OPTION_UINT8 oTankFillPres4, min_fill_press, max_fill_press, .20, tbar10, .181, char_I_tank_pres_fill+3 ; fill press of OC gas tank 4, in multiples of 10 bars |
250 OPTION_UINT8 oTankFillPres5, .5, .29, .20, tbar10, .182, char_I_tank_pres_fill+4 ; fill press of OC gas tank 5 | 250 OPTION_UINT8 oTankFillPres5, min_fill_press, max_fill_press, .20, tbar10, .182, char_I_tank_pres_fill+4 ; fill press of OC gas tank 5, in multiples of 10 bars |
251 OPTION_UINT8 oCCmaxFracO2, .80, .100, .90, tPercent, .183, char_I_cc_max_frac_o2 ; max. O2 % in Loop | 251 OPTION_UINT8 oCCmaxFracO2, .80, .100, .90, tPercent, .183, char_I_cc_max_frac_o2 ; max. O2 % in Loop |
252 OPTION_UINT8 oSimSetpoint, .1, .5, .1, tblank, .184, opt_sim_setpoint_number ; setpoint to use for deco calculation | 252 OPTION_UINT8 oSimSetpoint, .1, .5, .1, tblank, .184, opt_sim_setpoint_number ; setpoint to use for deco calculation |
253 OPTION_BOOL oCalcAscGas, .0, .185, opt_calc_asc_gasvolume ; calculate OC gas volume needs for ascent | 253 IFDEF _cave_mode |
254 OPTION_ENUM8 oCalcAscGas, .3, .0, tNo, .185, opt_calc_asc_gasvolume ; calculate OC gas volume needs for ascent | |
255 ELSE | |
256 OPTION_ENUM8 oCalcAscGas, .2, .0, tNo, .185, opt_calc_asc_gasvolume ; calculate OC gas volume needs for ascent | |
257 ENDIF | |
254 OPTION_BOOL oSimAGF, .0, volatile, opt_sim_use_aGF ; use GF (no) or aGF (yes) for deco calculation | 258 OPTION_BOOL oSimAGF, .0, volatile, opt_sim_use_aGF ; use GF (no) or aGF (yes) for deco calculation |
255 OPTION_ENUM8 oAltMode, .4, .0, tAltModeFly, .186, char_I_altitude_wait ; 0=no-fly, 1=1000m, 2=2000m, 3=3000m | 259 OPTION_ENUM8 oAltMode, .4, .0, tAltModeFly, .186, char_I_altitude_wait ; 0=no-fly, 1=1000m, 2=2000m, 3=3000m |
256 OPTION_BOOL oEnable_IBCD, .0, .187, opt_enable_IBCD ; =1: IBCD warning activated | 260 OPTION_BOOL oEnable_IBCD, .0, .187, opt_enable_IBCD ; =1: IBCD warning activated |
257 OPTION_UINT8 oAscentSpeed, .5, .10, .10, tMeterMinute, .188, char_I_ascent_speed ; ascent speed - Attention: proper operation with other values than the default of 10m/min has not been validated yet! Do not deviate from the default until further notice! | 261 OPTION_UINT8 oAscentSpeed, .5, .10, .10, tMeterMinute, .188, char_I_ascent_speed ; ascent speed |
258 OPTION_UINT8 oGasChangeTime, .0, .3, .1, tmin, .189, char_I_gas_change_time ; (extra) time at a stop to change the gas | 262 OPTION_UINT8 oGasChangeTime, .0, .3, .1, tMinutes, .189, char_I_gas_change_time ; (extra) time at a stop to change the gas |
259 OPTION_UINT8p5 osatmult, .100, .140, .110, tPercent, .190, opt_sat_multiplier_non_gf ; for NON-GF Mode | 263 OPTION_UINT8p5 osatmult, .100, .140, .110, tPercent, .190, opt_sat_multiplier_non_gf ; for NON-GF Mode |
260 OPTION_UINT8p5 odesatmult, .60, .100, .90, tPercent, .191, opt_desat_multiplier_non_gf ; for NON-GF Mode | 264 OPTION_UINT8p5 odesatmult, .60, .100, .90, tPercent, .191, opt_desat_multiplier_non_gf ; for NON-GF Mode |
265 OPTION_UINT8 oTransID1_0, .0, .255, .0, notext, .192, opt_transmitter_id_1+0 ; ID of transmitter for gas 1 (LOW) | |
266 OPTION_UINT8 oTransID1_1, .0, .255, .0, notext, .193, opt_transmitter_id_1+1 ; ID of transmitter for gas 1 (HIGH) | |
267 OPTION_UINT8 oTransID2_0, .0, .255, .0, notext, .194, opt_transmitter_id_2+0 ; ID of transmitter for gas 2 (LOW) | |
268 OPTION_UINT8 oTransID2_1, .0, .255, .0, notext, .195, opt_transmitter_id_2+1 ; ID of transmitter for gas 2 (HIGH) | |
269 OPTION_UINT8 oTransID3_0, .0, .255, .0, notext, .196, opt_transmitter_id_3+0 ; ID of transmitter for gas 3 (LOW) | |
270 OPTION_UINT8 oTransID3_1, .0, .255, .0, notext, .197, opt_transmitter_id_3+1 ; ID of transmitter for gas 3 (HIGH) | |
271 OPTION_UINT8 oTransID4_0, .0, .255, .0, notext, .198, opt_transmitter_id_4+0 ; ID of transmitter for gas 4 (LOW) | |
272 OPTION_UINT8 oTransID4_1, .0, .255, .0, notext, .199, opt_transmitter_id_4+1 ; ID of transmitter for gas 4 (HIGH) | |
273 OPTION_UINT8 oTransID5_0, .0, .255, .0, notext, .200, opt_transmitter_id_5+0 ; ID of transmitter for gas 5 (LOW) | |
274 OPTION_UINT8 oTransID5_1, .0, .255, .0, notext, .201, opt_transmitter_id_5+1 ; ID of transmitter for gas 5 (HIGH) | |
275 OPTION_UINT8 oTransID6_0, .0, .255, .0, notext, .202, opt_transmitter_id_6+0 ; ID of transmitter for dil 1 (LOW) | |
276 OPTION_UINT8 oTransID6_1, .0, .255, .0, notext, .203, opt_transmitter_id_6+1 ; ID of transmitter for dil 1 (HIGH) | |
277 OPTION_UINT8 oTransID7_0, .0, .255, .0, notext, .204, opt_transmitter_id_7+0 ; ID of transmitter for dil 2 (LOW) | |
278 OPTION_UINT8 oTransID7_1, .0, .255, .0, notext, .205, opt_transmitter_id_7+1 ; ID of transmitter for dil 2 (HIGH) | |
279 OPTION_UINT8 oTransID8_0, .0, .255, .0, notext, .206, opt_transmitter_id_8+0 ; ID of transmitter for dil 3 (LOW) | |
280 OPTION_UINT8 oTransID8_1, .0, .255, .0, notext, .207, opt_transmitter_id_8+1 ; ID of transmitter for dil 3 (HIGH) | |
281 OPTION_UINT8 oTransID9_0, .0, .255, .0, notext, .208, opt_transmitter_id_9+0 ; ID of transmitter for dil 4 (LOW) | |
282 OPTION_UINT8 oTransID9_1, .0, .255, .0, notext, .209, opt_transmitter_id_9+1 ; ID of transmitter for dil 4 (HIGH) | |
283 OPTION_UINT8 oTransID10_0, .0, .255, .0, notext, .210, opt_transmitter_id_10+0 ; ID of transmitter for dil 5 (LOW) | |
284 OPTION_UINT8 oTransID10_1, .0, .255, .0, notext, .211, opt_transmitter_id_10+1 ; ID of transmitter for dil 5 (HIGH) | |
285 OPTION_UINT8 oTankSize6, min_tank_size, max_tank_size, .11, tLiter, .212, char_I_tank_size+5 ; size of DIL gas tank 1, in liters | |
286 OPTION_UINT8 oTankSize7, min_tank_size, max_tank_size, .11, tLiter, .213, char_I_tank_size+6 ; size of DIL gas tank 2, in liters | |
287 OPTION_UINT8 oTankSize8, min_tank_size, max_tank_size, .11, tLiter, .214, char_I_tank_size+7 ; size of DIL gas tank 3, in liters | |
288 OPTION_UINT8 oTankSize9, min_tank_size, max_tank_size, .11, tLiter, .215, char_I_tank_size+8 ; size of DIL gas tank 4, in liters | |
289 OPTION_UINT8 oTankSize10, min_tank_size, max_tank_size, .11, tLiter, .216, char_I_tank_size+9 ; size of DIL gas tank 5, in liters | |
290 OPTION_UINT8 oTankFillPres6, min_fill_press, max_fill_press, .20, tbar10, .217, char_I_tank_pres_fill+5 ; fill press of DIL gas tank 1, in multiples of 10 bars | |
291 OPTION_UINT8 oTankFillPres7, min_fill_press, max_fill_press, .20, tbar10, .218, char_I_tank_pres_fill+6 ; fill press of DIL gas tank 2, in multiples of 10 bars | |
292 OPTION_UINT8 oTankFillPres8, min_fill_press, max_fill_press, .20, tbar10, .219, char_I_tank_pres_fill+7 ; fill press of DIL gas tank 3, in multiples of 10 bars | |
293 OPTION_UINT8 oTankFillPres9, min_fill_press, max_fill_press, .20, tbar10, .220, char_I_tank_pres_fill+8 ; fill press of DIL gas tank 4, in multiples of 10 bars | |
294 OPTION_UINT8 oTankFillPres10, min_fill_press, max_fill_press, .20, tbar10, .221, char_I_tank_pres_fill+9 ; fill press of DIL gas tank 5, in multiples of 10 bars | |
295 OPTION_ENUM8 oTrMode, .4, .1, tTrModeOff, .222, opt_TR_mode ; TR functions - mode | |
296 OPTION_ENUM8 oTr1stPres, .15, .1, tTrPresNone, .223, opt_TR_1st_pres ; TR functions - 1st pressure assignment | |
297 OPTION_ENUM8 oTr2ndPres, .15, .0, tTrPresNone, .224, opt_TR_2nd_pres ; TR functions - 2nd pressure assignment | |
298 OPTION_ENUM8 oTrBailPres, .15, .1, tTrPresNone, .225, opt_TR_Bail_pres ; TR functions - bailout pressure assignment | |
299 OPTION_UINT8p5 oTrMaxDeltaPres, max_pres_diff_min,max_pres_diff_max,.5, tbar, .226, char_I_max_pres_diff ; TR functions - maximum delta pressure in independent double mode | |
300 OPTION_BOOL oRealGasFactorUse, .0, .227, opt_ZfactorUse ; =1: figure in compression factor Z when converting gas volume <-> gas pressure [future option, not used yet] | |
301 OPTION_UINT8p5 oRealGasFactorTemp, .0, .30, .15, tLogTunitC, .228, opt_ZfactorTemp ; temperature setpoint for compression factor Z | |
302 OPTION_ENUM8 o2ndDepthDisp, .2, .0, tMaxDepth, .229, opt_2ndDepthDisp ; =1: show average depth instead of max depth | |
303 ; +-----------------------+ | |
304 ; | add new options here! | | |
305 ; +-----------------------+ | |
261 | 306 |
262 ; ppO2 warnings, sorted by ppO2 levels | 307 ; ppO2 warnings, sorted by ppO2 levels |
263 OPTION_UINT8p10 oPPO2Min, ppo2_warning_low_lowest, ppo2_warning_low_highest, ppo2_warning_low_default, notext, .16, char_I_ppO2_min ; ppO2 min on OC | 308 OPTION_UINT8p10 oPPO2Min, ppo2_warning_low_lowest, ppo2_warning_low_highest, ppo2_warning_low_default, notext, .16, char_I_ppO2_min ; ppO2 min on OC and for pure diluent in CCR |
264 OPTION_UINT8p10 oPPO2MinCC, ppo2_warning_loop_lowest, ppo2_warning_loop_highest, ppo2_warning_loop_default, notext, .172, char_I_ppO2_min_loop ; ppO2 min on Loop | 309 OPTION_UINT8p10 oPPO2MinCC, ppo2_warning_loop_lowest, ppo2_warning_loop_highest, ppo2_warning_loop_default, notext, .172, char_I_ppO2_min_loop ; ppO2 min on Loop and for pure diluent in pSCR |
265 OPTION_UINT8p10 oPPO2Max, ppo2_warning_high_lowest, ppo2_warning_high_highest, ppo2_warning_high_default, notext, .10, char_I_ppO2_max ; ppO2 max when not in deco | 310 OPTION_UINT8p10 oPPO2Max, ppo2_warning_high_lowest, ppo2_warning_high_highest, ppo2_warning_high_default, notext, .10, char_I_ppO2_max ; ppO2 max when not in deco |
266 OPTION_UINT8p10 oPPO2MaxDeco, ppo2_warning_deco_lowest, ppo2_warning_deco_highest, ppo2_warning_deco_default, notext, .171, char_I_ppO2_max_deco ; ppO2 max when in deco | 311 OPTION_UINT8p10 oPPO2MaxDeco, ppo2_warning_deco_lowest, ppo2_warning_deco_highest, ppo2_warning_deco_default, notext, .171, char_I_ppO2_max_deco ; ppO2 max when in deco |
312 | |
267 | 313 |
268 ;============================================================================= | 314 ;============================================================================= |
269 ; Set Time/Set Date (RAM only) | 315 ; Set Time/Set Date (RAM only) |
270 OPTION_UINT8 oSetHours, .0, .23, .0, .0, volatile, hours | 316 OPTION_UINT8 oSetHours, .0, .23, .0, .0, volatile, hours |
271 OPTION_UINT8 oSetMinutes, .0, .59, .0, .0, volatile, mins | 317 OPTION_UINT8 oSetMinutes, .0, .59, .0, .0, volatile, mins |