Mercurial > public > hwos_code
annotate src/tft_outputs.inc @ 503:4542d03f748a
NEW: Last Dive customviews in surface mode with divetime, depth and interval
author | heinrichsweikamp |
---|---|
date | Sun, 11 Jun 2017 17:11:40 +0200 |
parents | c0ee33f1f399 |
children | cf68fe0c3002 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
3 ; File tft_outputs.inc | |
4 ; | |
5 ; | |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | |
7 ;============================================================================= | |
8 ; HISTORY | |
9 ; 2011-08-07 : [mH] moving from OSTC code | |
10 | |
11 ; Macros | |
12 extern TFT_color_code1 | |
13 TFT_color_code macro color_code_temp | |
14 movlw color_code_temp | |
15 call TFT_color_code1 | |
16 endm | |
17 | |
18 ; Surface mode | |
503
4542d03f748a
NEW: Last Dive customviews in surface mode with divetime, depth and interval
heinrichsweikamp
parents:
482
diff
changeset
|
19 extern TFT_surface_lastdive |
234
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
205
diff
changeset
|
20 extern TFT_show_OC_startgas_surface ; Show first gas and "OSTC2-like" active gases |
0 | 21 extern TFT_serial |
22 extern TFT_clock | |
23 extern TFT_date | |
24 extern TFT_desaturation_time | |
25 extern TFT_nofly_time | |
26 extern TFT_interval | |
27 extern TFT_gaslist_surfmode | |
28 extern TFT_dillist_surfmode | |
29 extern TFT_splist_surfmode ; Show Setpoint list | |
30 extern TFT_temp_surfmode | |
31 extern TFT_update_batt_voltage | |
32 extern TFT_display_decotype_surface | |
33 extern TFT_display_decotype_surface1 ; Used from logbook! | |
34 extern TFT_update_surf_press | |
188
ebc28381f17d
NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents:
187
diff
changeset
|
35 extern TFT_surface_sensor ; Update HUD data in surface mode |
0 | 36 ; extern TFT_clear_customview_surfacemode |
37 extern TFT_menu_hud ; Update HUD data in menu (including mV) | |
187
669b5d00706d
CHANGE: Longer timeout (4 min) for calibration menu
heinrichsweikamp
parents:
145
diff
changeset
|
38 extern TFT_menu_calibrate ; Update mV data in menu |
0 | 39 extern TFT_custom_text ; The custom text |
40 extern TFT_surface_tissues ; Show Tissue diagram in surface mode | |
256
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
41 ; extern TFT_surface_compass_mask ; Compass heading mask |
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
42 ; extern TFT_surface_compass_heading ; Compass heading value |
41 | 43 extern TFT_surface_decosettings ; Show all deco settings |
76 | 44 extern TFT_cat_serial ; Add serial to current string |
45 extern TFT_cat_firmware ; Add firmware version to current string | |
256
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
46 ; extern TFT_compass_show_gain ; Show the current compass gain |
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
47 ; extern TFT_show_timeout_testmode ; Show the timeout during calibration |
0 | 48 ; Menu |
49 extern TFT_LogOffset_Logtitle | |
50 | 50 extern TFT_show_color_schemes ; Yes, update the color schemes |
0 | 51 |
52 ; Debug and useless stuff | |
145
e3ac5b2021bc
NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents:
131
diff
changeset
|
53 ; extern TFT_update_raw_data |
e3ac5b2021bc
NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents:
131
diff
changeset
|
54 ; extern TFT_update_raw_data2 |
256
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
55 ; extern TFT_compass_fast |
0 | 56 |
57 ; Dive mode | |
58 extern TFT_display_cns | |
59 extern TFT_divemins | |
60 extern TFT_depth | |
61 extern TFT_temp_divemode | |
62 extern TFT_max_pressure | |
63 extern TFT_active_gas_divemode | |
64 extern TFT_divemode_mask | |
65 extern TFT_display_ndl_mask | |
66 extern TFT_show_TTS_divemode | |
67 extern TFT_display_ndl | |
68 extern TFT_display_deko_mask | |
69 extern TFT_divemode_warning | |
70 extern TFT_divemode_warning_clear | |
315
4f83470dcece
VSIbar #3: remaining changes for the split style bar
Janos Kovacs <kovjanos@gmail.com>
parents:
292
diff
changeset
|
71 extern TFT_velocity_clear |
0 | 72 extern TFT_display_velocity |
73 extern TFT_display_deko | |
333
14b466f66a7f
Extend the Ceiling custom-view with ppO2 and current GF
Janos Kovacs <kovjanos@gmail.com>
parents:
315
diff
changeset
|
74 extern TFT_mask_ppo2 |
0 | 75 extern TFT_display_ppo2 |
333
14b466f66a7f
Extend the Ceiling custom-view with ppO2 and current GF
Janos Kovacs <kovjanos@gmail.com>
parents:
315
diff
changeset
|
76 extern TFT_display_ppo2_val |
0 | 77 extern TFT_update_batt_percent_divemode |
78 extern TFT_display_apnoe_descent | |
79 extern TFT_apnoe_clear_surface | |
80 extern TFT_display_apnoe_surface | |
81 extern TFT_display_apnoe_last_max | |
82 extern TFT_ftts | |
83 extern TFT_clear_warning_text | |
84 extern TFT_clear_warning_text_2nd_row | |
85 extern TFT_warning_gf | |
192 | 86 extern TFT_update_ppo2_sensors ; Update Sensor data |
0 | 87 extern TFT_hud_mask ; The HUD mask |
88 extern TFT_mask_avr_stopwatch ; Show mask for average depth and stopwatch | |
89 extern TFT_update_avr_stopwatch ; Update average depth and stopwatch | |
90 extern TFT_decoplan ; Decoplan | |
91 extern TFT_clear_divemode_menu ; Clear the divemode menu | |
315
4f83470dcece
VSIbar #3: remaining changes for the split style bar
Janos Kovacs <kovjanos@gmail.com>
parents:
292
diff
changeset
|
92 extern TFT_draw_gassep_line ; Draw the gas separator grid line in spec mode only |
0 | 93 extern TFT_divemode_menu_cursor ; the divemode cursor |
471
9edb1359ce43
NEW: New Customview 11 in dive mode shows ppO2, EAD/END and CNS
heinrichsweikamp
parents:
413
diff
changeset
|
94 extern TFT_battinfo_tissues_clock_mask ; Setup Mask |
9edb1359ce43
NEW: New Customview 11 in dive mode shows ppO2, EAD/END and CNS
heinrichsweikamp
parents:
413
diff
changeset
|
95 extern TFT_battinfo_tissues_clock ; Show EAD/END, Tissues and clock |
0 | 96 extern TFT_gf_mask ; Setup Mask |
333
14b466f66a7f
Extend the Ceiling custom-view with ppO2 and current GF
Janos Kovacs <kovjanos@gmail.com>
parents:
315
diff
changeset
|
97 extern TFT_gf_mask_cGF ; Setup Mask - current GF only |
0 | 98 extern TFT_gf_info ; Show GF informations |
99 extern TFT_warning_agf ; Show a warning if aGF is selected | |
256
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
100 ; extern TFT_dive_compass_mask ; Compass mask |
5b4ef0b9090d
place compass display code into compass_ops.asm
heinrichsweikamp
parents:
234
diff
changeset
|
101 ; extern TFT_dive_compass_heading ; Compass heading |
53
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
50
diff
changeset
|
102 extern TFT_dyn_gaslist ; Show the dyn gaslist |
55 | 103 extern TFT_divetimeout ; Show timeout counter |
102
37275e0fa7f5
NEW: Show End-of-Dive time together with clock during deco
heinrichsweikamp
parents:
99
diff
changeset
|
104 extern TFT_hud_voltages ; Show HUD details |
104
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
105 extern TFT_show_safety_stop ; Show the safety stop |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
106 extern TFT_clear_decoarea ; Cleanup deco area on screen |
123 | 107 extern TFT_ceiling_mask ; The ceiling mask |
108 extern TFT_ceiling ; Ceiling | |
131 | 109 extern TFT_clear_safety_stop ; Clear safety stop |
145
e3ac5b2021bc
NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents:
131
diff
changeset
|
110 extern TFT_warning_fallback ; Show fallback warning |
413
12e85930d95c
NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
heinrichsweikamp
parents:
353
diff
changeset
|
111 extern TFT_sensor_check_mask ; Show ppO2 of O2 and Diluent mask |
12e85930d95c
NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
heinrichsweikamp
parents:
353
diff
changeset
|
112 extern TFT_sensor_check ; Show ppO2 of O2 and Diluent |
471
9edb1359ce43
NEW: New Customview 11 in dive mode shows ppO2, EAD/END and CNS
heinrichsweikamp
parents:
413
diff
changeset
|
113 extern TFT_ppo2_ead_end_cns_mask ; Show ppO2, END/EAD and CNS mask |
9edb1359ce43
NEW: New Customview 11 in dive mode shows ppO2, EAD/END and CNS
heinrichsweikamp
parents:
413
diff
changeset
|
114 extern TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS |
480
ad8acade5567
NEW: PSCR mode (Passive semi-closed rebreather)
heinrichsweikamp
parents:
471
diff
changeset
|
115 extern compute_pscr_ppo2 ; Compute ppO2 for PSCR mode |
482
c0ee33f1f399
New customview #12 for PSCR mode shows ppO2, O2 drop and lung ratio
heinrichsweikamp
parents:
480
diff
changeset
|
116 extern TFT_pscr_info_mask ; Show ppO2, drop and lung ratio mask |
c0ee33f1f399
New customview #12 for PSCR mode shows ppO2, O2 drop and lung ratio
heinrichsweikamp
parents:
480
diff
changeset
|
117 extern TFT_pscr_info ; Show ppO2, drop and lung ratio |
413
12e85930d95c
NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
heinrichsweikamp
parents:
353
diff
changeset
|
118 |
0 | 119 |
120 ; Misc | |
292 | 121 extern TFT_standard_color |
122 extern TFT_disabled_color | |
123 extern TFT_attention_color | |
124 extern TFT_warnings_color | |
125 extern TFT_divemask_color | |
126 extern adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar] | |
127 extern adjust_depth_with_salinity_log ; computes salinity setting (FROM WREG!) into lo:hi [mbar] | |
128 extern TFT_convert_date_short | |
129 extern TFT_convert_signed_16bit | |
130 extern TFT_convert_date | |
131 extern TFT_debug_output | |
132 extern TFT_show_time_date_menu | |
133 extern convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | |
134 extern convert_celsius_to_fahrenheit ; convert value in lo:hi from celsius to fahrenheit |