annotate src/tft_outputs.inc @ 578:2b8ef780cfa8

work in progress...
author heinrichsweikamp
date Sun, 18 Feb 2018 21:04:54 +0100
parents b7eb98dbd800
children b455b31ce022
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
3 ; File tft_outputs.inc REFACTORED VERSION V2.94
0
heinrichsweikamp
parents:
diff changeset
4 ;
heinrichsweikamp
parents:
diff changeset
5 ;
heinrichsweikamp
parents:
diff changeset
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
7 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
8 ; HISTORY
heinrichsweikamp
parents:
diff changeset
9 ; 2011-08-07 : [mH] moving from OSTC code
heinrichsweikamp
parents:
diff changeset
10
heinrichsweikamp
parents:
diff changeset
11 ; Macros
heinrichsweikamp
parents:
diff changeset
12 extern TFT_color_code1
heinrichsweikamp
parents:
diff changeset
13 TFT_color_code macro color_code_temp
heinrichsweikamp
parents:
diff changeset
14 movlw color_code_temp
heinrichsweikamp
parents:
diff changeset
15 call TFT_color_code1
heinrichsweikamp
parents:
diff changeset
16 endm
heinrichsweikamp
parents:
diff changeset
17
heinrichsweikamp
parents:
diff changeset
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
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
20 extern TFT_show_OC_startgas_surface ; Show first gas and "OSTC2-like" active gases
0
heinrichsweikamp
parents:
diff changeset
21 extern TFT_serial
heinrichsweikamp
parents:
diff changeset
22 extern TFT_clock
heinrichsweikamp
parents:
diff changeset
23 extern TFT_date
heinrichsweikamp
parents:
diff changeset
24 extern TFT_desaturation_time
heinrichsweikamp
parents:
diff changeset
25 extern TFT_nofly_time
heinrichsweikamp
parents:
diff changeset
26 extern TFT_gaslist_surfmode
heinrichsweikamp
parents:
diff changeset
27 extern TFT_dillist_surfmode
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
28 extern TFT_splist_surfmode ; Show Setpoint list
0
heinrichsweikamp
parents:
diff changeset
29 extern TFT_temp_surfmode
heinrichsweikamp
parents:
diff changeset
30 extern TFT_update_batt_voltage
heinrichsweikamp
parents:
diff changeset
31 extern TFT_display_decotype_surface
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
32 extern TFT_display_decotype_surface1 ; Used from logbook!
0
heinrichsweikamp
parents:
diff changeset
33 extern TFT_update_surf_press
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
34 extern TFT_surface_sensor ; Update HUD data in surface mode
535
cf68fe0c3002 NEW: Show a warning for each sensor if the sensor is end-of-life after calibration (Less then 8mV in Air at sea level)
heinrichsweikamp
parents: 503
diff changeset
35 extern TFT_sensor_surface_warning
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
36 extern TFT_menu_calibrate ; Update mV data in menu
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
37 extern TFT_custom_text ; The custom text
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
38 extern TFT_surface_tissues ; Show Tissue diagram in surface mode
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
39 extern TFT_surface_decosettings ; Show all deco settings
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
40 extern TFT_cat_serial ; Add serial to current string
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
41 extern TFT_cat_firmware ; Add firmware version to current string
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
42
0
heinrichsweikamp
parents:
diff changeset
43 ; Menu
heinrichsweikamp
parents:
diff changeset
44 extern TFT_LogOffset_Logtitle
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
45 extern TFT_show_color_schemes ; Yes, update the color schemes
0
heinrichsweikamp
parents:
diff changeset
46
heinrichsweikamp
parents:
diff changeset
47 ; Dive mode
heinrichsweikamp
parents:
diff changeset
48 extern TFT_display_cns
heinrichsweikamp
parents:
diff changeset
49 extern TFT_divemins
heinrichsweikamp
parents:
diff changeset
50 extern TFT_depth
heinrichsweikamp
parents:
diff changeset
51 extern TFT_temp_divemode
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
52 extern TFT_max_depth
0
heinrichsweikamp
parents:
diff changeset
53 extern TFT_active_gas_divemode
heinrichsweikamp
parents:
diff changeset
54 extern TFT_divemode_mask
heinrichsweikamp
parents:
diff changeset
55 extern TFT_display_ndl_mask
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
56 extern TFT_display_tts
0
heinrichsweikamp
parents:
diff changeset
57 extern TFT_display_ndl
heinrichsweikamp
parents:
diff changeset
58 extern TFT_display_deko_mask
heinrichsweikamp
parents:
diff changeset
59 extern TFT_divemode_warning
heinrichsweikamp
parents:
diff changeset
60 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
61 extern TFT_velocity_clear
0
heinrichsweikamp
parents:
diff changeset
62 extern TFT_display_velocity
heinrichsweikamp
parents:
diff changeset
63 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
64 extern TFT_mask_ppo2
0
heinrichsweikamp
parents:
diff changeset
65 extern TFT_display_ppo2
heinrichsweikamp
parents:
diff changeset
66 extern TFT_update_batt_percent_divemode
heinrichsweikamp
parents:
diff changeset
67 extern TFT_display_apnoe_descent
heinrichsweikamp
parents:
diff changeset
68 extern TFT_apnoe_clear_surface
heinrichsweikamp
parents:
diff changeset
69 extern TFT_display_apnoe_surface
heinrichsweikamp
parents:
diff changeset
70 extern TFT_display_apnoe_last_max
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
71 extern TFT_display_ftts
0
heinrichsweikamp
parents:
diff changeset
72 extern TFT_clear_warning_text
heinrichsweikamp
parents:
diff changeset
73 extern TFT_clear_warning_text_2nd_row
heinrichsweikamp
parents:
diff changeset
74 extern TFT_warning_gf
192
efe70488a04b voting logic for external monitoring
heinrichsweikamp
parents: 188
diff changeset
75 extern TFT_update_ppo2_sensors ; Update Sensor data
0
heinrichsweikamp
parents:
diff changeset
76 extern TFT_hud_mask ; The HUD mask
heinrichsweikamp
parents:
diff changeset
77 extern TFT_mask_avr_stopwatch ; Show mask for average depth and stopwatch
heinrichsweikamp
parents:
diff changeset
78 extern TFT_update_avr_stopwatch ; Update average depth and stopwatch
heinrichsweikamp
parents:
diff changeset
79 extern TFT_decoplan ; Decoplan
heinrichsweikamp
parents:
diff changeset
80 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
81 extern TFT_draw_gassep_line ; Draw the gas separator grid line in spec mode only
0
heinrichsweikamp
parents:
diff changeset
82 extern TFT_divemode_menu_cursor ; the divemode cursor
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
83 extern TFT_battinfo_tissues_clock_mask ; Setup Mask
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
84 extern TFT_battinfo_tissues_clock ; Show EAD/END, Tissues and clock
0
heinrichsweikamp
parents:
diff changeset
85 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
86 extern TFT_gf_mask_cGF ; Setup Mask - current GF only
0
heinrichsweikamp
parents:
diff changeset
87 extern TFT_gf_info ; Show GF informations
heinrichsweikamp
parents:
diff changeset
88 extern TFT_warning_agf ; Show a warning if aGF is selected
55
448ba265fdae Change "O2" warning to "ppO2"
heinrichsweikamp
parents: 53
diff changeset
89 extern TFT_divetimeout ; Show timeout counter
104
223579e905c3 Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents: 102
diff changeset
90 extern TFT_show_safety_stop ; Show the safety stop
223579e905c3 Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents: 102
diff changeset
91 extern TFT_clear_decoarea ; Cleanup deco area on screen
123
d076e9c02438 add ceiling display
heinrichsweikamp
parents: 113
diff changeset
92 extern TFT_ceiling_mask ; The ceiling mask
d076e9c02438 add ceiling display
heinrichsweikamp
parents: 113
diff changeset
93 extern TFT_ceiling ; Ceiling
131
35b9da423de6 NEW: Update warnings every second
heinrichsweikamp
parents: 123
diff changeset
94 extern TFT_clear_safety_stop ; Clear safety stop
145
e3ac5b2021bc NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents: 131
diff changeset
95 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
96 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
97 extern TFT_sensor_check ; Show ppO2 of O2 and Diluent
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
98 extern TFT_ppo2_ead_end_cns_mask ; Show ppO2, END/EAD and CNS mask
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
99 extern TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
100 extern TFT_pscr_info_mask ; Show ppO2, drop and lung ratio mask
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
101 extern TFT_pscr_info ; Show ppO2, drop and lung ratio
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
102 extern TFT_gas_needs_mask
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
103 extern TFT_gas_needs
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
104 extern TFT_warning_gas_needs_warn
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
105 extern TFT_warning_gas_needs_att
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
106 extern TFT_warning_sensor_disagree
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
107 extern TFT_warning_IBCD
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
108 extern TFT_CNS_mask
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
109 extern TFT_CNS
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
110 extern TFT_display_eod_cns
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
111 extern TFT_warning_mbubbles
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
112 extern TFT_warning_outside
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
113 extern TFT_display_pure_ppo2
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
114 extern TFT_info_deco
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
115 extern TFT_show_mode_divemode
0
heinrichsweikamp
parents:
diff changeset
116
heinrichsweikamp
parents:
diff changeset
117 ; Misc
292
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
118 extern TFT_standard_color
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
119 extern TFT_disabled_color
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
120 extern TFT_attention_color
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
121 extern TFT_warnings_color
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
122 extern TFT_divemask_color
292
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
123 extern adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar]
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
124 extern adjust_depth_with_salinity_log ; computes salinity setting (FROM WREG!) into lo:hi [mbar]
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
125 extern TFT_convert_date_short
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
126 extern TFT_convert_signed_16bit
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
127 extern TFT_convert_date
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
128 extern TFT_debug_output
ccb93f319e78 ADD (back) Gas Volumes display after decoplanning.
jDG
parents: 256
diff changeset
129 extern TFT_show_time_date_menu
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
130 extern convert_mbar_to_feet ; convert value in lo:hi from mbar to feet
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
131 extern convert_celsius_to_fahrenheit ; convert value in lo:hi from celsius to fahrenheit
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
132
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
133 ; Alt dive mode (aka Blind mode)
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
134 extern TFT_divemins_alternative
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
135 extern TFT_divemode_mask_alternative
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
136 extern TFT_max_depth_alternative
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 535
diff changeset
137 extern TFT_big_deco_alt ; The big deco