Mercurial > public > hwos_code
annotate src/option_table.asm @ 245:416723c8ccd8
use single-byte hardware flag (again)
author | heinrichsweikamp |
---|---|
date | Wed, 04 Mar 2015 19:01:57 +0100 |
parents | 6c4ad243cb44 |
children | 653a3ab08062 |
rev | line source |
---|---|
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
1 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
2 ; |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
3 ; File option_table.asm |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
4 ; |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
5 ; Thje option table |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
6 ; |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
8 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
9 ; HISTORY |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
10 ; 2014-08-03 : mH creation |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
11 ; |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
12 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
13 #include "ostc3.inc" ; Mandatory header |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
14 #include "eeprom_rs232.inc" |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
15 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
16 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
17 ; Options Tables |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
18 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
19 option_table CODE 0x00700 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
20 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
21 OPTION_UINT8 MACRO lbl, min, max, default, unit, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
22 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
23 lbl: db 0, default ; Type0 = INT8 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
24 db 1, min |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
25 db max, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
26 dw unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
27 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
28 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
29 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
30 OPTION_UINT8p2 MACRO lbl, min, max, default, unit, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
31 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
32 lbl: db 0, default ; Type0 = INT8 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
33 db 2, min |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
34 db max, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
35 dw unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
36 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
37 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
38 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
39 OPTION_UINT8p3 MACRO lbl, min, max, default, unit, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
40 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
41 lbl: db 0, default ; Type0 = INT8 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
42 db 3, min |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
43 db max, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
44 dw unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
45 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
46 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
47 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
48 OPTION_UINT8p10 MACRO lbl, min, max, default, unit, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
49 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
50 lbl: db 0, default ; Type0 = INT8 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
51 db .10, min |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
52 db max, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
53 dw unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
54 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
55 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
56 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
57 OPTION_ENUM8 MACRO lbl, max, default, tValue, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
58 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
59 extern tValue |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
60 lbl: db 1, default ; Type1 = ENUM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
61 db LOW(tValue), HIGH(tValue) |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
62 db max, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
63 dw 0 ; No unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
64 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
65 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
66 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
67 OPTION_BOOL MACRO lbl, default, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
68 OPTION_ENUM8 lbl, 2, default, tNo, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
69 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
70 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
71 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
72 OPTION_STRING MACRO lbl, length, defText, eeprom, register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
73 global lbl |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
74 lbl: db 2, LOW(defText) ; Type2 = STRING |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
75 db HIGH(defText), 0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
76 db length, eeprom |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
77 dw 0 ; No unit |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
78 dw register |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
79 ENDM |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
80 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
81 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
82 ;============================================================================= |
144 | 83 extern tPercent, tMeters, tMinutes, tGasDisabled, tbar |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
84 extern char_I_deco_gas_change, char_I_setpoint_change, char_I_setpoint_cbar, char_I_dil_change |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
85 extern char_I_dive_interval, char_I_bottom_time, char_I_bottom_depth |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
86 extern char_I_deco_model, char_I_saturation_multiplier, char_I_desaturation_multiplier |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
87 extern char_I_extra_time |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
88 extern tDefName |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
89 ; Option table |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
90 ; OPTION_UINT8 Label, min, max, default, text-string, EEPROM location (-1 for RAM only), RAM location |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
91 global option_table_begin |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
92 option_table_begin: |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
93 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
94 ; Manage Decoplaner & Dive parameters |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
95 OPTION_UINT8p10 odiveInterval, .0, .240, .0, tMinutes, -1, char_I_dive_interval |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
96 OPTION_UINT8p2 obottomTime, .1, .60, .5, tMinutes, -1, char_I_bottom_time |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
97 OPTION_UINT8p3 obottomDepth, .12,.120, .21, tMeters, -1, char_I_bottom_depth |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
98 OPTION_ENUM8 oDiveMode, 4, 0, tDvOC, .8, opt_dive_mode ; 0=OC, 1=CC, 2=Gauge, 3=Apnea |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
99 OPTION_ENUM8 oDecoMode, 2, 1, tZHL16, .9, char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
100 OPTION_UINT8p10 oPPO2Max, .120, ppo2_warning_high, .160, 0, .10, opt_ppO2_max |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
101 OPTION_UINT8 oLastDeco, .3, .6, .3, tMeters, .11, opt_last_stop |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
102 OPTION_UINT8 oGF_low, .10, .100, .30, tPercent, .12, opt_GF_low |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
103 OPTION_UINT8 oGF_high, .60, .110, .85, tPercent, .13, opt_GF_high |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
104 OPTION_UINT8p10 osatmult, .100, .140, .110,tPercent, .14, char_I_saturation_multiplier |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
105 OPTION_UINT8p10 odesatmult, .60, .100, .90,tPercent, .15, char_I_desaturation_multiplier |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
106 OPTION_UINT8p10 oPPO2Min, .16, ppo2_warning_low, .19, 0, .16, opt_ppO2_min |
239
6c4ad243cb44
CNANGE: aGF pair has same range then normal GF pair
heinrichsweikamp
parents:
220
diff
changeset
|
107 OPTION_UINT8 oaGF_low, .10, .100, .30, tPercent, .17, opt_aGF_low |
6c4ad243cb44
CNANGE: aGF pair has same range then normal GF pair
heinrichsweikamp
parents:
220
diff
changeset
|
108 OPTION_UINT8 oaGF_high, .60, .110, .85, tPercent, .18, opt_aGF_high |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
109 OPTION_BOOL oEnable_aGF, 0, .19, opt_enable_aGF ; =1: aGF can be selected underwater |
144 | 110 OPTION_UINT8 oCompassGain, 0, 7, 6, tMinutes, .20, opt_compass_gain ; 0-7 (230LSB/Gauss to 1370LSB/Gauss) |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
111 OPTION_ENUM8 oSamplingRate, 2, 0, tSampling2s, .21, opt_sampling_rate ; =1: 10s, =0: 2s |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
112 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
113 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
114 ; Managing Settings |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
115 OPTION_UINT8 oExtraTime, 0, .9, 0,tMinutes, .22, char_I_extra_time ; Future TTS |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
116 OPTION_ENUM8 oBrightness, 3, 0, tEco, .23, opt_brightness ; =0: Eco, =1:Medium, =2:Full |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
117 OPTION_UINT8 oDiveSalinity, 0, 4, 0, tPercent, .24, opt_salinity ; 0-4% |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
118 OPTION_ENUM8 oCCRMode, 2, 0, tCCRModeFixedSP, .25, opt_ccr_mode ; =0: Fixed SP, =1: Sensor |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
119 OPTION_ENUM8 oLanguage, 4, 0, tEnglish, .26, opt_language ; 0=EN, 1=DE, 2=FR, 3=SP |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
120 OPTION_ENUM8 oDateFormat, 3, 1, tDateformat,.27, opt_dateformat ; =0:MMDDYY, =1:DDMMYY, =2:YYMMDD |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
121 OPTION_ENUM8 oUnits, 2, 0, tMetric, .28, opt_units ; 0=Meters, 1=Feets |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
122 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
123 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
124 ; Compass calibration data |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
125 OPTION_UINT8 oCalx0, 0,.255,.0, 0, .29, compass_CX_f+0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
126 OPTION_UINT8 oCalx1, 0,.255,.0, 0, .30, compass_CX_f+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
127 OPTION_UINT8 oCaly0, 0,.255,.0, 0, .31, compass_CY_f+0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
128 OPTION_UINT8 oCaly1, 0,.255,.0, 0, .32, compass_CY_f+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
129 OPTION_UINT8 oCalz0, 0,.255,.0, 0, .33, compass_CZ_f+0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
130 OPTION_UINT8 oCalz1, 0,.255,.0, 0, .34, compass_CZ_f+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
131 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
132 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
133 ; Gas list |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
134 OPTION_ENUM8 oGas1, 3, 1, tGasDisabled, .35, opt_gas_type+0; 0=Disabled, 1=First, 2=Travel, 3=Deco |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
135 OPTION_ENUM8 oGas2, 3, 0, tGasDisabled, .36, opt_gas_type+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
136 OPTION_ENUM8 oGas3, 3, 0, tGasDisabled, .37, opt_gas_type+2 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
137 OPTION_ENUM8 oGas4, 3, 0, tGasDisabled, .38, opt_gas_type+3 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
138 OPTION_ENUM8 oGas5, 3, 0, tGasDisabled, .39, opt_gas_type+4 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
139 OPTION_UINT8 oGas1O2, .7 ,.100, .21, tPercent, .40, opt_gas_O2_ratio+0 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
140 OPTION_UINT8 oGas1He, .1, .100, .0, tPercent, .41, opt_gas_He_ratio+0 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
141 OPTION_UINT8 oGas2O2, .7 ,.100, .21, tPercent, .42, opt_gas_O2_ratio+1 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
142 OPTION_UINT8 oGas2He, .1, .100, .0, tPercent, .43, opt_gas_He_ratio+1 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
143 OPTION_UINT8 oGas3O2, .7 ,.100, .21, tPercent, .44, opt_gas_O2_ratio+2 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
144 OPTION_UINT8 oGas3He, .1, .100, .0, tPercent, .45, opt_gas_He_ratio+2 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
145 OPTION_UINT8 oGas4O2, .7 ,.100, .21, tPercent, .46, opt_gas_O2_ratio+3 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
146 OPTION_UINT8 oGas4He, .1, .100, .0, tPercent, .47, opt_gas_He_ratio+3 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
147 OPTION_UINT8 oGas5O2, .7 ,.100, .21, tPercent, .48, opt_gas_O2_ratio+4 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
148 OPTION_UINT8 oGas5He, .1, .100, .0, tPercent, .49, opt_gas_He_ratio+4 |
154
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
149 OPTION_UINT8 oGas1Depth, .0, .99, .0, tMeters, .50, opt_OC_bail_gas_change+0 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
150 OPTION_UINT8 oGas2Depth, .0, .99, .0, tMeters, .51, opt_OC_bail_gas_change+1 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
151 OPTION_UINT8 oGas3Depth, .0, .99, .0, tMeters, .52, opt_OC_bail_gas_change+2 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
152 OPTION_UINT8 oGas4Depth, .0, .99, .0, tMeters, .53, opt_OC_bail_gas_change+3 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
153 OPTION_UINT8 oGas5Depth, .0, .99, .0, tMeters, .54, opt_OC_bail_gas_change+4 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
154 OPTION_UINT8 oDil1O2, .7 ,.100, .21, tPercent, .55, opt_dil_O2_ratio+0 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
155 OPTION_UINT8 oDil1He, .1, .100, .0, tPercent, .56, opt_dil_He_ratio+0 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
156 OPTION_UINT8 oDil2O2, .7 ,.100, .21, tPercent, .57, opt_dil_O2_ratio+1 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
157 OPTION_UINT8 oDil2He, .1, .100, .0, tPercent, .58, opt_dil_He_ratio+1 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
158 OPTION_UINT8 oDil3O2, .7 ,.100, .21, tPercent, .59, opt_dil_O2_ratio+2 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
159 OPTION_UINT8 oDil3He, .1, .100, .0, tPercent, .60, opt_dil_He_ratio+2 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
160 OPTION_UINT8 oDil4O2, .7 ,.100, .21, tPercent, .61, opt_dil_O2_ratio+3 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
161 OPTION_UINT8 oDil4He, .1, .100, .0, tPercent, .62, opt_dil_He_ratio+3 |
185
f515712d8cd6
BUGFIX: Check min and max values after PC configuration properly
heinrichsweikamp
parents:
183
diff
changeset
|
162 OPTION_UINT8 oDil5O2, .7 ,.100, .21, tPercent, .63, opt_dil_O2_ratio+4 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
163 OPTION_UINT8 oDil5He, .1, .100, .0, tPercent, .64, opt_dil_He_ratio+4 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
164 OPTION_UINT8 oSetPoint1, .20, .160, .70, tbar, .65, char_I_setpoint_cbar+0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
165 OPTION_UINT8 oSetPoint2, .20, .160, .90, tbar, .66, char_I_setpoint_cbar+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
166 OPTION_UINT8 oSetPoint3, .20, .160, .100, tbar, .67, char_I_setpoint_cbar+2 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
167 OPTION_UINT8 oSetPoint4, .20, .160, .120, tbar, .68, char_I_setpoint_cbar+3 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
168 OPTION_UINT8 oSetPoint5, .20, .160, .140, tbar, .69, char_I_setpoint_cbar+4 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
169 OPTION_UINT8 oSP1Depth, .0, .100, .0, tMeters, .70, char_I_setpoint_change+0 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
170 OPTION_UINT8 oSP2Depth, .0, .100, .0, tMeters, .71, char_I_setpoint_change+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
171 OPTION_UINT8 oSP3Depth, .0, .100, .0, tMeters, .72, char_I_setpoint_change+2 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
172 OPTION_UINT8 oSP4Depth, .0, .100, .0, tMeters, .73, char_I_setpoint_change+3 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
173 OPTION_UINT8 oSP5Depth, .0, .100, .0, tMeters, .74, char_I_setpoint_change+4 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
174 OPTION_ENUM8 oDil1, 2, 1, tDilDisabled, .75, opt_dil_type+0 ; 0=Disabled, 1=First, 2=Normal |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
175 OPTION_ENUM8 oDil2, 2, 0, tDilDisabled, .76, opt_dil_type+1 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
176 OPTION_ENUM8 oDil3, 2, 0, tDilDisabled, .77, opt_dil_type+2 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
177 OPTION_ENUM8 oDil4, 2, 0, tDilDisabled, .78, opt_dil_type+3 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
178 OPTION_ENUM8 oDil5, 2, 0, tDilDisabled, .79, opt_dil_type+4 |
154
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
179 OPTION_UINT8 oDil1Depth, .0, .99, .0, tMeters, .80, char_I_dil_change+0 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
180 OPTION_UINT8 oDil2Depth, .0, .99, .0, tMeters, .81, char_I_dil_change+1 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
181 OPTION_UINT8 oDil3Depth, .0, .99, .0, tMeters, .82, char_I_dil_change+2 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
182 OPTION_UINT8 oDil4Depth, .0, .99, .0, tMeters, .83, char_I_dil_change+3 |
afa31c815f24
NEW: Show ppO2 for change depth during gas setup
heinrichsweikamp
parents:
146
diff
changeset
|
183 OPTION_UINT8 oDil5Depth, .0, .99, .0, tMeters, .84, char_I_dil_change+4 |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
184 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
185 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
186 ; opt_name from 85 to 145 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
187 OPTION_STRING oName, opt_name_length, tDefName, .85, opt_name |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
188 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
189 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
190 ; Misc |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
191 OPTION_ENUM8 oColorSetDive, 4, 0, tColorSetName0, .146, opt_dive_color_scheme ; Color scheme divemode |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
192 OPTION_UINT8 oPressureAdjust, .0,.255, .0, -1, .147, opt_pressure_adjust ; SIGNED int (-20/+20mbar max.) |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
193 OPTION_BOOL oSafetyStop, 0, .148, opt_enable_safetystop ; =1: A safety stop is shown |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
194 OPTION_UINT8 oCalGasO2, .21,.100, .21, tPercent, .149, opt_calibration_O2_ratio ; Calibration gas %O2 |
146 | 195 OPTION_BOOL oSensorFallback,1, .150, opt_sensor_fallback ; =1: Fallback to SP1 when sensor is lost |
155
5f71e31bd5b3
CHANGE: Re-arranged Settings Menu, add 180? rotate to menu
heinrichsweikamp
parents:
154
diff
changeset
|
196 OPTION_BOOL oFlipScreen, 0, .151, opt_flip_screen ; =1: Flip the screen |
220
effd7259f5a5
make button sensitivity configurable (cR hardware)
heinrichsweikamp
parents:
185
diff
changeset
|
197 OPTION_UINT8p10 ocR_button_left,.20, .100, .40, tPercent, .152, opt_cR_button_left ; left button sensitivity |
effd7259f5a5
make button sensitivity configurable (cR hardware)
heinrichsweikamp
parents:
185
diff
changeset
|
198 OPTION_UINT8p10 ocR_button_right,.20, .100, .40, tPercent, .153, opt_cR_button_right ; right button sensitivity |
143
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
199 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
200 ;============================================================================= |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
201 ; Set Time/Set Date (RAM only) |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
202 OPTION_UINT8 oSetHours, .0, .23, .0, 0, -1, hours |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
203 OPTION_UINT8 oSetMinutes, .0, .59, .0, 0, -1, mins |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
204 OPTION_UINT8 oSetDay, .1, .31, .0, 0, -1, day |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
205 OPTION_UINT8 oSetMonth, .1, .12, .0, 0, -1, month |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
206 OPTION_UINT8 oSetYear, .13,.20, .0, 0, -1, year |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
207 |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
208 global option_table_end |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
209 option_table_end: |
be997abd1f73
seperate option table, place in address <0x10000
heinrichsweikamp
parents:
diff
changeset
|
210 END |