Mercurial > public > hwos_code
comparison src/option_table.asm @ 582:b455b31ce022
work on 2.97 stable
author | heinrichsweikamp |
---|---|
date | Mon, 26 Feb 2018 16:40:28 +0100 |
parents | 1ab93aca7fa9 |
children | ca4556fb60b9 |
comparison
equal
deleted
inserted
replaced
581:f5de1ff88814 | 582:b455b31ce022 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File option_table.asm REFACTORED VERSION V2.95 | 3 ; File option_table.asm REFACTORED VERSION V2.98 |
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 ; NEW ## deco engine | 48 OPTION_UINT8p5 MACRO lbl, min, max, default, unit, eeprom, register |
49 OPTION_UINT8p5 MACRO lbl, min, max, default, unit, eeprom, register | 49 global lbl |
50 global lbl | 50 lbl: db 0, default ; Type0 = INT8 |
51 lbl: db 0, default ; Type0 = INT8 | 51 db .5, min |
52 db .5, min | 52 db max, eeprom |
53 db max, eeprom | 53 dw unit |
54 dw unit | 54 dw register |
55 dw register | 55 ENDM |
56 ENDM | 56 |
57 | 57 OPTION_UINT8p10 MACRO lbl, min, max, default, unit, eeprom, register |
58 OPTION_UINT8p10 MACRO lbl, min, max, default, unit, eeprom, register | 58 global lbl |
59 global lbl | 59 lbl: db 0, default ; Type0 = INT8 |
60 lbl: db 0, default ; Type0 = INT8 | 60 db .10, min |
61 db .10, min | 61 db max, eeprom |
62 db max, eeprom | 62 dw unit |
63 dw unit | 63 dw register |
64 dw register | 64 ENDM |
65 ENDM | 65 |
66 | 66 OPTION_ENUM8 MACRO lbl, max, default, tValue, eeprom, register |
67 OPTION_ENUM8 MACRO lbl, max, default, tValue, eeprom, register | 67 global lbl |
68 global lbl | 68 extern tValue |
69 extern tValue | 69 lbl: db 1, default ; Type1 = ENUM |
70 lbl: db 1, default ; Type1 = ENUM | 70 db LOW(tValue), HIGH(tValue) |
71 db LOW(tValue), HIGH(tValue) | 71 db max, eeprom |
72 db max, eeprom | 72 dw 0 ; No unit |
73 dw 0 ; No unit | 73 dw register |
74 dw register | 74 ENDM |
75 ENDM | 75 |
76 | 76 OPTION_BOOL MACRO lbl, default, eeprom, register |
77 OPTION_BOOL MACRO lbl, default, eeprom, register | 77 OPTION_ENUM8 lbl, 2, default, tNo, eeprom, register |
78 OPTION_ENUM8 lbl, 2, default, tNo, eeprom, register | 78 ENDM |
79 ENDM | 79 |
80 | 80 |
81 | 81 OPTION_STRING MACRO lbl, length, defText, eeprom, register |
82 OPTION_STRING MACRO lbl, length, defText, eeprom, register | 82 global lbl |
83 global lbl | 83 lbl: db 2, LOW(defText) ; Type2 = STRING |
84 lbl: db 2, LOW(defText) ; Type2 = STRING | 84 db HIGH(defText), 0 |
85 db HIGH(defText), 0 | 85 db length, eeprom |
86 db length, eeprom | 86 dw 0 ; No unit |
87 dw 0 ; No unit | 87 dw register |
88 dw register | 88 ENDM |
89 ENDM | 89 |
90 | 90 |
91 | 91 ;============================================================================= |
92 ;============================================================================= | 92 extern tPercent, tMeters, tMinutes, tGasDisabled, tbar |
93 extern tPercent, tMeters, tMinutes, tGasDisabled, tbar | 93 extern char_I_deco_gas_change, char_I_setpoint_change, char_I_setpoint_cbar, char_I_dil_change |
94 extern char_I_deco_gas_change, char_I_setpoint_change, char_I_setpoint_cbar | 94 extern char_I_dive_interval, char_I_bottom_time, char_I_bottom_depth |
95 extern char_I_dive_interval, char_I_bottom_time, char_I_bottom_depth | 95 extern char_I_deco_model |
96 extern char_I_deco_model | 96 extern char_I_extra_time |
97 extern char_I_extra_time | 97 extern tDefName, tblank |
98 extern tDefName, tblank | 98 extern char_I_bottom_usage, char_I_deco_usage, tLitersMinute |
99 extern char_I_bottom_usage, char_I_deco_usage, tLitersMinute | 99 extern char_I_PSCR_drop, char_I_PSCR_lungratio |
100 | 100 extern char_I_tank_size, char_I_tank_pres_fill, tLiter, tbar10 |
101 ; NEW ## deco engine | 101 extern char_I_cc_max_frac_o2 |
102 extern char_I_PSCR_drop, char_I_PSCR_lungratio | 102 extern char_I_altitude_wait |
103 | 103 extern char_I_ppO2_max, char_I_ppO2_min, char_I_ppO2_max_deco, char_I_ppO2_min_loop |
104 ; NEW ## bailout gas needs | 104 extern char_I_ascent_speed, tMeterMinute |
105 extern char_I_tank_size, char_I_tank_pres_fill, tLiter, tbar10 | 105 extern char_I_gas_change_time, tmin |
106 | 106 |
107 ; NEW ## CCR max ppO2 limiter | 107 ; Option table |
108 extern char_I_cc_max_frac_o2 | 108 ; OPTION_UINT8 Label, min, max, default, text-string, EEPROM location, RAM location |
109 | 109 |
110 ; NEW ## no fly altitude | 110 #DEFINE notext .0 ; no text-string associated |
111 extern char_I_altitude_wait | 111 #DEFINE volatile -1 ; do not store to EEPROM |
112 | 112 |
113 ; NEW ## V2.94 | 113 global option_table_begin |
114 extern char_I_ppO2_max, char_I_ppO2_min, char_I_ppO2_max_deco, char_I_ppO2_min_loop | |
115 | |
116 ; NEW ## V2.94 / V2.95 | |
117 extern char_I_ascent_speed, tMeterMinute | |
118 | |
119 ; NEW ## V2.95 | |
120 extern char_I_gas_change_time, tmin | |
121 | |
122 ; Option table | |
123 ; OPTION_UINT8 Label, min, max, default, text-string, EEPROM location (-1 for RAM only), RAM location | |
124 global option_table_begin | |
125 option_table_begin: | 114 option_table_begin: |
126 ;============================================================================= | 115 ;============================================================================= |
127 ; Manage Decoplaner & Dive parameters | 116 ; Manage Decoplaner & Dive parameters |
128 OPTION_UINT8p10 odiveInterval, .0, .240, .0, tMinutes, -1, char_I_dive_interval | 117 OPTION_UINT8p10 odiveInterval, .0, .240, .0, tMinutes, volatile, char_I_dive_interval |
129 OPTION_UINT8p2 obottomTime, .1, .60, .5, tMinutes, -1, char_I_bottom_time | 118 OPTION_UINT8p2 obottomTime, .1, .60, .5, tMinutes, volatile, char_I_bottom_time |
130 OPTION_UINT8p3 obottomDepth, .12,.120, .21, tMeters, -1, char_I_bottom_depth | 119 OPTION_UINT8p3 obottomDepth, .12, .120, .21, tMeters, volatile, char_I_bottom_depth |
131 OPTION_ENUM8 oDiveMode, 5, 0, tDvOC, .8, opt_dive_mode ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR | 120 OPTION_ENUM8 oDiveMode, .5, .0, tDvOC, .8, opt_dive_mode ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR |
132 OPTION_ENUM8 oDecoMode, 2, 1, tZHL16, .9, char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF | 121 OPTION_ENUM8 oDecoMode, .2, .1, tZHL16, .9, char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF |
133 OPTION_UINT8p10 oPPO2Max, .120, ppo2_warning_high, .160, 0, .10, char_I_ppO2_max | 122 ; .10 ; in use, see below |
134 OPTION_UINT8 oLastDeco, .3, .6, .3, tMeters, .11, opt_last_stop | 123 OPTION_UINT8 oLastDeco, .3, .6, .3, tMeters, .11, opt_last_stop |
135 OPTION_UINT8 oGF_low, .10, .100, .30, tPercent, .12, opt_GF_low | 124 OPTION_UINT8 oGF_low, .10, .100, .30, tPercent, .12, opt_GF_low |
136 OPTION_UINT8 oGF_high, .45, .110, .85, tPercent, .13, opt_GF_high | 125 OPTION_UINT8 oGF_high, .45, .110, .85, tPercent, .13, opt_GF_high |
137 OPTION_UINT8p5 osatmultgf, .100, .140, .100,tPercent, .14, opt_sat_multiplier_gf ; For GF Mode | 126 OPTION_UINT8p5 osatmultgf, .100, .140, .100, tPercent, .14, opt_sat_multiplier_gf ; for GF mode |
138 OPTION_UINT8p5 odesatmultgf, .60, .100, .100,tPercent, .15, opt_desat_multiplier_gf ; For GF Mode | 127 OPTION_UINT8p5 odesatmultgf, .60, .100, .100, tPercent, .15, opt_desat_multiplier_gf ; for GF mode |
139 OPTION_UINT8p10 oPPO2Min, .16, ppo2_warning_low, .19, 0, .16, char_I_ppO2_min | 128 ; .16 ; in use, see below |
140 OPTION_UINT8 oaGF_low, .10, .100, .30, tPercent, .17, opt_aGF_low | 129 OPTION_UINT8 oaGF_low, .10, .100, .30, tPercent, .17, opt_aGF_low |
141 OPTION_UINT8 oaGF_high, .45, .110, .85, tPercent, .18, opt_aGF_high | 130 OPTION_UINT8 oaGF_high, .45, .110, .85, tPercent, .18, opt_aGF_high |
142 OPTION_BOOL oEnable_aGF, 0, .19, opt_enable_aGF ; =1: aGF can be selected underwater | 131 OPTION_BOOL oEnable_aGF, .0, .19, opt_enable_aGF ; =1: aGF can be selected underwater |
143 OPTION_UINT8 oCompassGain, 0, 7, 6, tMinutes, .20, opt_compass_gain ; 0-7 (230LSB/Gauss to 1370LSB/Gauss) | 132 OPTION_UINT8 oCompassGain, .0, .7, .6, tMinutes, .20, opt_compass_gain ; 0-7 (230LSB/Gauss to 1370LSB/Gauss) |
144 OPTION_ENUM8 oSamplingRate, 2, 0, tSetSeconds, .21, opt_sampling_rate ; =1: 10s, =0: 2s | 133 OPTION_ENUM8 oSamplingRate, .2, .0, tSetSeconds, .21, opt_sampling_rate ; =1: 10s, =0: 2s |
145 | 134 |
146 ;============================================================================= | 135 ;============================================================================= |
147 ; Managing Settings | 136 ; Managing Settings |
148 OPTION_UINT8 oExtraTime, 0, .9, 0,tMinutes, .22, char_I_extra_time ; Future TTS | 137 OPTION_UINT8 oExtraTime, .0, .9, .0, tMinutes, .22, char_I_extra_time ; Future TTS |
149 OPTION_ENUM8 oBrightness, 3, 0, tEco, .23, opt_brightness ; =0: Eco, =1:Medium, =2:Full | 138 OPTION_ENUM8 oBrightness, .3, .0, tEco, .23, opt_brightness ; =0: Eco, =1:Medium, =2:Full |
150 OPTION_UINT8 oDiveSalinity, 0, 4, 0, tPercent, .24, opt_salinity ; 0-4% | 139 OPTION_UINT8 oDiveSalinity, .0, .4, .0, tPercent, .24, opt_salinity ; 0-4% |
151 OPTION_ENUM8 oCCRMode, 3, 0, tCCRModeFixedSP, .25, opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP | 140 OPTION_ENUM8 oCCRMode, .3, .0, tCCRModeFixedSP,.25, opt_ccr_mode ; =0: Fixed SP, =1: Sensor, =2: Auto SP |
152 | 141 |
153 IFNDEF french_italian | 142 IFNDEF french_italian |
154 OPTION_ENUM8 oLanguage, 2, 0, tEnglish, .26, opt_language ; 0=EN, 1=DE | 143 OPTION_ENUM8 oLanguage, .2, .0, tEnglish, .26, opt_language ; 0=EN, 1=DE |
155 ELSE | 144 ELSE |
156 OPTION_ENUM8 oLanguage, 2, 0, tFrench, .26, opt_language ; 0=FR, 1=IT | 145 OPTION_ENUM8 oLanguage, .2, .0, tFrench, .26, opt_language ; 0=FR, 1=IT |
157 ENDIF | 146 ENDIF |
158 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 |
159 OPTION_ENUM8 oUnits, 2, 0, tMetric, .28, opt_units ; 0=Meters, 1=Feets | 148 OPTION_ENUM8 oUnits, .2, .0, tMetric, .28, opt_units ; 0=Meter, 1=Feet |
160 | 149 |
161 ;============================================================================= | 150 ;============================================================================= |
162 ; Compass calibration data | 151 ; Compass calibration data |
163 OPTION_UINT8 oCalx0, 0,.255,.0, 0, .29, compass_CX_f+0 | 152 OPTION_UINT8 oCalx0, .0, .255, .0, notext, .29, compass_CX_f+0 |
164 OPTION_UINT8 oCalx1, 0,.255,.0, 0, .30, compass_CX_f+1 | 153 OPTION_UINT8 oCalx1, .0, .255, .0, notext, .30, compass_CX_f+1 |
165 OPTION_UINT8 oCaly0, 0,.255,.0, 0, .31, compass_CY_f+0 | 154 OPTION_UINT8 oCaly0, .0, .255, .0, notext, .31, compass_CY_f+0 |
166 OPTION_UINT8 oCaly1, 0,.255,.0, 0, .32, compass_CY_f+1 | 155 OPTION_UINT8 oCaly1, .0, .255, .0, notext, .32, compass_CY_f+1 |
167 OPTION_UINT8 oCalz0, 0,.255,.0, 0, .33, compass_CZ_f+0 | 156 OPTION_UINT8 oCalz0, .0, .255, .0, notext, .33, compass_CZ_f+0 |
168 OPTION_UINT8 oCalz1, 0,.255,.0, 0, .34, compass_CZ_f+1 | 157 OPTION_UINT8 oCalz1, .0, .255, .0, notext, .34, compass_CZ_f+1 |
169 | 158 |
170 ;============================================================================= | 159 ;============================================================================= |
171 ; Gas list | 160 ; Gas list |
172 OPTION_ENUM8 oGas1, 3, 1, tGasDisabled, .35, opt_gas_type+0; 0=Disabled, 1=First, 2=Travel, 3=Deco | 161 OPTION_ENUM8 oGas1, .3, .1, tGasDisabled, .35, opt_gas_type+0 ; 0=Disabled, 1=First, 2=Travel, 3=Deco |
173 OPTION_ENUM8 oGas2, 3, 0, tGasDisabled, .36, opt_gas_type+1 | 162 OPTION_ENUM8 oGas2, .3, .0, tGasDisabled, .36, opt_gas_type+1 |
174 OPTION_ENUM8 oGas3, 3, 0, tGasDisabled, .37, opt_gas_type+2 | 163 OPTION_ENUM8 oGas3, .3, .0, tGasDisabled, .37, opt_gas_type+2 |
175 OPTION_ENUM8 oGas4, 3, 0, tGasDisabled, .38, opt_gas_type+3 | 164 OPTION_ENUM8 oGas4, .3, .0, tGasDisabled, .38, opt_gas_type+3 |
176 OPTION_ENUM8 oGas5, 3, 0, tGasDisabled, .39, opt_gas_type+4 | 165 OPTION_ENUM8 oGas5, .3, .0, tGasDisabled, .39, opt_gas_type+4 |
177 OPTION_UINT8 oGas1O2, .7 ,.100, .21, tPercent, .40, opt_gas_O2_ratio+0 | 166 OPTION_UINT8 oGas1O2, gaslist_min_o2, .100, .21, tPercent, .40, opt_gas_O2_ratio+0 |
178 OPTION_UINT8 oGas1He, .1, .100, .0, tPercent, .41, opt_gas_He_ratio+0 | 167 OPTION_UINT8 oGas1He, .0, gaslist_max_He, .0, tPercent, .41, opt_gas_He_ratio+0 |
179 OPTION_UINT8 oGas2O2, .7 ,.100, .21, tPercent, .42, opt_gas_O2_ratio+1 | 168 OPTION_UINT8 oGas2O2, gaslist_min_o2, .100, .21, tPercent, .42, opt_gas_O2_ratio+1 |
180 OPTION_UINT8 oGas2He, .1, .100, .0, tPercent, .43, opt_gas_He_ratio+1 | 169 OPTION_UINT8 oGas2He, .0, gaslist_max_He, .0, tPercent, .43, opt_gas_He_ratio+1 |
181 OPTION_UINT8 oGas3O2, .7 ,.100, .21, tPercent, .44, opt_gas_O2_ratio+2 | 170 OPTION_UINT8 oGas3O2, gaslist_min_o2, .100, .21, tPercent, .44, opt_gas_O2_ratio+2 |
182 OPTION_UINT8 oGas3He, .1, .100, .0, tPercent, .45, opt_gas_He_ratio+2 | 171 OPTION_UINT8 oGas3He, .0, gaslist_max_He, .0, tPercent, .45, opt_gas_He_ratio+2 |
183 OPTION_UINT8 oGas4O2, .7 ,.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 |
184 OPTION_UINT8 oGas4He, .1, .100, .0, tPercent, .47, opt_gas_He_ratio+3 | 173 OPTION_UINT8 oGas4He, .0, gaslist_max_He, .0, tPercent, .47, opt_gas_He_ratio+3 |
185 OPTION_UINT8 oGas5O2, .7 ,.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 |
186 OPTION_UINT8 oGas5He, .1, .100, .0, tPercent, .49, opt_gas_He_ratio+4 | 175 OPTION_UINT8 oGas5He, .0, gaslist_max_He, .0, tPercent, .49, opt_gas_He_ratio+4 |
187 OPTION_UINT8 oGas1Depth, .0, .99, .0, tMeters, .50, opt_OC_bail_gas_change+0 | 176 OPTION_UINT8 oGas1Depth, .0, gaslist_max_change_depth, .0, tMeters, .50, opt_OC_bail_gas_change+0 |
188 OPTION_UINT8 oGas2Depth, .0, .99, .0, tMeters, .51, opt_OC_bail_gas_change+1 | 177 OPTION_UINT8 oGas2Depth, .0, gaslist_max_change_depth, .0, tMeters, .51, opt_OC_bail_gas_change+1 |
189 OPTION_UINT8 oGas3Depth, .0, .99, .0, tMeters, .52, opt_OC_bail_gas_change+2 | 178 OPTION_UINT8 oGas3Depth, .0, gaslist_max_change_depth, .0, tMeters, .52, opt_OC_bail_gas_change+2 |
190 OPTION_UINT8 oGas4Depth, .0, .99, .0, tMeters, .53, opt_OC_bail_gas_change+3 | 179 OPTION_UINT8 oGas4Depth, .0, gaslist_max_change_depth, .0, tMeters, .53, opt_OC_bail_gas_change+3 |
191 OPTION_UINT8 oGas5Depth, .0, .99, .0, tMeters, .54, opt_OC_bail_gas_change+4 | 180 OPTION_UINT8 oGas5Depth, .0, gaslist_max_change_depth, .0, tMeters, .54, opt_OC_bail_gas_change+4 |
192 OPTION_UINT8 oDil1O2, .7 ,.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 |
193 OPTION_UINT8 oDil1He, .1, .100, .0, tPercent, .56, opt_dil_He_ratio+0 | 182 OPTION_UINT8 oDil1He, .0, gaslist_max_He, .0, tPercent, .56, opt_dil_He_ratio+0 |
194 OPTION_UINT8 oDil2O2, .7 ,.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 |
195 OPTION_UINT8 oDil2He, .1, .100, .0, tPercent, .58, opt_dil_He_ratio+1 | 184 OPTION_UINT8 oDil2He, .0, gaslist_max_He, .0, tPercent, .58, opt_dil_He_ratio+1 |
196 OPTION_UINT8 oDil3O2, .7 ,.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 |
197 OPTION_UINT8 oDil3He, .1, .100, .0, tPercent, .60, opt_dil_He_ratio+2 | 186 OPTION_UINT8 oDil3He, .0, gaslist_max_He, .0, tPercent, .60, opt_dil_He_ratio+2 |
198 OPTION_UINT8 oDil4O2, .7 ,.100, .21, tPercent, .61, opt_dil_O2_ratio+3 | 187 OPTION_UINT8 oDil4O2, gaslist_min_o2, .100, .21, tPercent, .61, opt_dil_O2_ratio+3 |
199 OPTION_UINT8 oDil4He, .1, .100, .0, tPercent, .62, opt_dil_He_ratio+3 | 188 OPTION_UINT8 oDil4He, .0, gaslist_max_He, .0, tPercent, .62, opt_dil_He_ratio+3 |
200 OPTION_UINT8 oDil5O2, .7 ,.100, .21, tPercent, .63, opt_dil_O2_ratio+4 | 189 OPTION_UINT8 oDil5O2, gaslist_min_o2, .100, .21, tPercent, .63, opt_dil_O2_ratio+4 |
201 OPTION_UINT8 oDil5He, .1, .100, .0, tPercent, .64, opt_dil_He_ratio+4 | 190 OPTION_UINT8 oDil5He, .0, gaslist_max_He, .0, tPercent, .64, opt_dil_He_ratio+4 |
202 OPTION_UINT8 oSetPoint1, .20, .160, .70, tbar, .65, char_I_setpoint_cbar+0 | 191 OPTION_UINT8 oSetPoint1, gaslist_sp_min, gaslist_sp_max, .70, tbar, .65, char_I_setpoint_cbar+0 |
203 OPTION_UINT8 oSetPoint2, .20, .160, .90, tbar, .66, char_I_setpoint_cbar+1 | 192 OPTION_UINT8 oSetPoint2, gaslist_sp_min, gaslist_sp_max, .90, tbar, .66, char_I_setpoint_cbar+1 |
204 OPTION_UINT8 oSetPoint3, .20, .160, .100, tbar, .67, char_I_setpoint_cbar+2 | 193 OPTION_UINT8 oSetPoint3, gaslist_sp_min, gaslist_sp_max, .100, tbar, .67, char_I_setpoint_cbar+2 |
205 OPTION_UINT8 oSetPoint4, .20, .160, .120, tbar, .68, char_I_setpoint_cbar+3 | 194 OPTION_UINT8 oSetPoint4, gaslist_sp_min, gaslist_sp_max, .120, tbar, .68, char_I_setpoint_cbar+3 |
206 OPTION_UINT8 oSetPoint5, .20, .160, .140, tbar, .69, char_I_setpoint_cbar+4 | 195 OPTION_UINT8 oSetPoint5, gaslist_sp_min, gaslist_sp_max, .140, tbar, .69, char_I_setpoint_cbar+4 |
207 OPTION_UINT8 oSP1Depth, .0, .100, .0, tMeters, .70, char_I_setpoint_change+0 | 196 OPTION_UINT8 oSP1Depth, .0, .100, .0, tMeters, .70, char_I_setpoint_change+0 |
208 OPTION_UINT8 oSP2Depth, .0, .100, .0, tMeters, .71, char_I_setpoint_change+1 | 197 OPTION_UINT8 oSP2Depth, .0, .100, .0, tMeters, .71, char_I_setpoint_change+1 |
209 OPTION_UINT8 oSP3Depth, .0, .100, .0, tMeters, .72, char_I_setpoint_change+2 | 198 OPTION_UINT8 oSP3Depth, .0, .100, .0, tMeters, .72, char_I_setpoint_change+2 |
210 OPTION_UINT8 oSP4Depth, .0, .100, .0, tMeters, .73, char_I_setpoint_change+3 | 199 OPTION_UINT8 oSP4Depth, .0, .100, .0, tMeters, .73, char_I_setpoint_change+3 |
211 OPTION_UINT8 oSP5Depth, .0, .100, .0, tMeters, .74, char_I_setpoint_change+4 | 200 OPTION_UINT8 oSP5Depth, .0, .100, .0, tMeters, .74, char_I_setpoint_change+4 |
212 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 |
213 OPTION_ENUM8 oDil2, 2, 0, tDilDisabled, .76, opt_dil_type+1 | 202 OPTION_ENUM8 oDil2, .2, .0, tDilDisabled, .76, opt_dil_type+1 |
214 OPTION_ENUM8 oDil3, 2, 0, tDilDisabled, .77, opt_dil_type+2 | 203 OPTION_ENUM8 oDil3, .2, .0, tDilDisabled, .77, opt_dil_type+2 |
215 OPTION_ENUM8 oDil4, 2, 0, tDilDisabled, .78, opt_dil_type+3 | 204 OPTION_ENUM8 oDil4, .2, .0, tDilDisabled, .78, opt_dil_type+3 |
216 OPTION_ENUM8 oDil5, 2, 0, tDilDisabled, .79, opt_dil_type+4 | 205 OPTION_ENUM8 oDil5, .2, .0, tDilDisabled, .79, opt_dil_type+4 |
217 OPTION_UINT8 oDil1Depth, .0, .99, .0, tMeters, .80, char_I_dil_change+0 | 206 OPTION_UINT8 oDil1Depth, .0, .99, .0, tMeters, .80, char_I_dil_change+0 |
218 OPTION_UINT8 oDil2Depth, .0, .99, .0, tMeters, .81, char_I_dil_change+1 | 207 OPTION_UINT8 oDil2Depth, .0, .99, .0, tMeters, .81, char_I_dil_change+1 |
219 OPTION_UINT8 oDil3Depth, .0, .99, .0, tMeters, .82, char_I_dil_change+2 | 208 OPTION_UINT8 oDil3Depth, .0, .99, .0, tMeters, .82, char_I_dil_change+2 |
220 OPTION_UINT8 oDil4Depth, .0, .99, .0, tMeters, .83, char_I_dil_change+3 | 209 OPTION_UINT8 oDil4Depth, .0, .99, .0, tMeters, .83, char_I_dil_change+3 |
221 OPTION_UINT8 oDil5Depth, .0, .99, .0, tMeters, .84, char_I_dil_change+4 | 210 OPTION_UINT8 oDil5Depth, .0, .99, .0, tMeters, .84, char_I_dil_change+4 |
222 | 211 |
223 ;============================================================================= | 212 ;============================================================================= |
224 ; opt_name from 85 to 145 | 213 ; opt_name from 85 to 145 |
225 OPTION_STRING oName, opt_name_length, tDefName, .85, opt_name | 214 OPTION_STRING oName, opt_name_length, tDefName, .85, opt_name |
226 | 215 |
227 ;============================================================================= | 216 ;============================================================================= |
228 ; Misc | 217 ; Misc |
229 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 |
230 OPTION_UINT8 oPressureAdjust, .0,.255, .0, -1, .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.) |
231 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 |
232 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!) |
233 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 |
234 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 |
235 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 |
236 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 |
237 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 |
238 OPTION_BOOL oMODwarning, 0, .156, opt_modwarning ; =1: red depth blinking warning | 227 OPTION_BOOL oMODwarning, .0, .156, opt_modwarning ; =1: red depth blinking warning |
239 OPTION_BOOL oVSItextv2, 0, .157, opt_vsitextv2 ; =1: use the dynamic (depends on depth) ascend rate limits | 228 OPTION_BOOL oVSItextv2, .0, .157, opt_vsitextv2 ; =1: use the dynamic (depends on depth) ascend rate limits |
240 OPTION_BOOL oVSIgraph, 0, .158, opt_vsigraph ; =1: draw the graphical VSI bar | 229 OPTION_BOOL oVSIgraph, .0, .158, opt_vsigraph ; =1: draw the graphical VSI bar |
241 OPTION_BOOL oShowppO2, 0, .159, opt_showppo2 ; =1:always show the ppO2 value in the warning position | 230 OPTION_BOOL oShowppO2, .0, .159, opt_showppo2 ; =1:always show the ppO2 value in the warning position |
242 OPTION_UINT8 oTemperatureAdjust, .0,.255, .0, -1, .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.) |
243 OPTION_UINT8 oSafetyStopLength, .60,.240, .180, -1, .161, opt_safety_stop_length ; [s] | 232 OPTION_UINT8 oSafetyStopLength, .60, .240, .180, notext, .161, opt_safety_stop_length ; [s] |
244 OPTION_UINT8 oSafetyStopStart, .21,.61, .51, -1, .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 |
245 OPTION_UINT8 oSafetyStopEnd, .19,.39, .29, -1, .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 |
246 OPTION_UINT8 oSafetyStopReset, .81,.151, .101, -1, .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 |
247 OPTION_UINT8 oDiveTimeout, .1,.20, divemode_timeout_default, 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 |
248 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 [%] |
249 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] |
250 OPTION_UINT8p10 oPPO2MaxDeco,.120, ppo2_warning_high_deco,.160,0,.171, char_I_ppO2_max_deco ; ppO2 max for deco gases | 239 ; .171 ; in use, see below |
251 OPTION_UINT8p10 oPPO2MinCC, ppo2_warning_low_cc_min, ppo2_warning_low_cc_max, ppo2_warning_low_cc, 0, .172, char_I_ppO2_min_loop ; ppO2 min for Loop | 240 ; .172 ; in use, see below |
252 OPTION_UINT8 oTankSize1, .1, .40, .11, tLiter, .173, char_I_tank_size+0 ; size of OC gas tank 1 | 241 OPTION_UINT8 oTankSize1, .1, .40, .11, tLiter, .173, char_I_tank_size+0 ; size of OC gas tank 1 |
253 OPTION_UINT8 oTankSize2, .1, .40, .11, tLiter, .174, char_I_tank_size+1 ; size of OC gas tank 2 | 242 OPTION_UINT8 oTankSize2, .1, .40, .11, tLiter, .174, char_I_tank_size+1 ; size of OC gas tank 2 |
254 OPTION_UINT8 oTankSize3, .1, .40, .11, tLiter, .175, char_I_tank_size+2 ; size of OC gas tank 3 | 243 OPTION_UINT8 oTankSize3, .1, .40, .11, tLiter, .175, char_I_tank_size+2 ; size of OC gas tank 3 |
255 OPTION_UINT8 oTankSize4, .1, .40, .11, tLiter, .176, char_I_tank_size+3 ; size of OC gas tank 4 | 244 OPTION_UINT8 oTankSize4, .1, .40, .11, tLiter, .176, char_I_tank_size+3 ; size of OC gas tank 4 |
256 OPTION_UINT8 oTankSize5, .1, .40, .11, tLiter, .177, char_I_tank_size+4 ; size of OC gas tank 5 | 245 OPTION_UINT8 oTankSize5, .1, .40, .11, tLiter, .177, char_I_tank_size+4 ; size of OC gas tank 5 |
257 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, .5, .29, .20, tbar10, .178, char_I_tank_pres_fill+0 ; fill press of OC gas tank 1 |
258 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, .5, .29, .20, tbar10, .179, char_I_tank_pres_fill+1 ; fill press of OC gas tank 2 |
259 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, .5, .29, .20, tbar10, .180, char_I_tank_pres_fill+2 ; fill press of OC gas tank 3 |
260 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, .5, .29, .20, tbar10, .181, char_I_tank_pres_fill+3 ; fill press of OC gas tank 4 |
261 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, .5, .29, .20, tbar10, .182, char_I_tank_pres_fill+4 ; fill press of OC gas tank 5 |
262 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 |
263 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 |
264 OPTION_BOOL oCalcAscGas, 0, .185, opt_calc_asc_gasvolume ; calculate OC gas volume needs for ascent | 253 OPTION_BOOL oCalcAscGas, .0, .185, opt_calc_asc_gasvolume ; calculate OC gas volume needs for ascent |
265 OPTION_BOOL oSimAGF, 0, -1, opt_sim_use_aGF ; use GF (no) or aGF (yes) for deco calculation | 254 OPTION_BOOL oSimAGF, .0, volatile, opt_sim_use_aGF ; use GF (no) or aGF (yes) for deco calculation |
266 OPTION_ENUM8 oAltMode, 4, 0, tAltModeFly, .186, char_I_altitude_wait ; 0=no-fly, 1=1000m, 2=2000m, 3=3000m | 255 OPTION_ENUM8 oAltMode, .4, .0, tAltModeFly, .186, char_I_altitude_wait ; 0=no-fly, 1=1000m, 2=2000m, 3=3000m |
267 OPTION_BOOL oEnable_IBCD, 0, .187, opt_enable_IBCD ; =1: IBCD warning activated | 256 OPTION_BOOL oEnable_IBCD, .0, .187, opt_enable_IBCD ; =1: IBCD warning activated |
268 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! | 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! |
269 OPTION_UINT8 oGasChangeTime,.0, .3, .1, tmin ,.189, char_I_gas_change_time ; (extra) time at a stop to change the gas | 258 OPTION_UINT8 oGasChangeTime, .0, .3, .1, tmin, .189, char_I_gas_change_time ; (extra) time at a stop to change the gas |
270 OPTION_UINT8p5 osatmult, .100, .140, .110,tPercent,.190, opt_sat_multiplier_non_gf ; For NON-GF Mode | 259 OPTION_UINT8p5 osatmult, .100, .140, .110, tPercent, .190, opt_sat_multiplier_non_gf ; for NON-GF Mode |
271 OPTION_UINT8p5 odesatmult, .60, .100, .90,tPercent,.191, opt_desat_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 |
272 | 261 |
262 ; 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 | |
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 | |
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 | |
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 | |
267 | |
273 ;============================================================================= | 268 ;============================================================================= |
274 ; Set Time/Set Date (RAM only) | 269 ; Set Time/Set Date (RAM only) |
275 OPTION_UINT8 oSetHours, .0, .23, .0, 0, -1, hours | 270 OPTION_UINT8 oSetHours, .0, .23, .0, .0, volatile, hours |
276 OPTION_UINT8 oSetMinutes, .0, .59, .0, 0, -1, mins | 271 OPTION_UINT8 oSetMinutes, .0, .59, .0, .0, volatile, mins |
277 OPTION_UINT8 oSetDay, .1, .31, .0, 0, -1, day | 272 OPTION_UINT8 oSetDay, .1, .31, .0, .0, volatile, day |
278 OPTION_UINT8 oSetMonth, .1, .12, .0, 0, -1, month | 273 OPTION_UINT8 oSetMonth, .1, .12, .0, .0, volatile, month |
279 OPTION_UINT8 oSetYear, .18,.24, .0, 0, -1, year | 274 OPTION_UINT8 oSetYear, .18, .24, .0, .0, volatile, year |
280 | 275 |
281 global option_table_end | 276 global option_table_end |
282 option_table_end: | 277 option_table_end: |
283 END | 278 |
279 END |