0
|
1 ;=============================================================================
|
|
2 ;
|
634
|
3 ; File tft_outputs.inc * combined next generation V3.09.5
|
0
|
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
|
634
|
11
|
|
12 ;-----------------------------------------------------------------------------
|
604
|
13 ; Surface Mode
|
634
|
14
|
|
15 extern TFT_surfmode_time ; current time
|
|
16 extern TFT_surfmode_date ; current date
|
|
17 extern TFT_surfmode_pres ; print current pressure, unconditional
|
|
18 extern TFT_surfmode_pres_fast ; print current pressure, but only if change > threshold
|
|
19 extern TFT_surfmode_temp ; current temperature (common core with divemode temp)
|
|
20 extern TFT_surfmode_batt ; battery status (also used in sleep mode)
|
|
21 extern TFT_surfmode_decotype ; deco mode (OC, CCR, ...)
|
|
22 extern TFT_surfmode_startgas ; first gas and "OSTC2-like" active gases
|
|
23
|
|
24 IFDEF _rx_functions
|
|
25 extern TFT_surfmode_tankpres ; tank data for surface mode screen
|
|
26 ENDIF
|
|
27
|
|
28
|
|
29 ;-----------------------------------------------------------------------------
|
|
30 ; Surface Mode Custom Views
|
|
31
|
|
32 extern TFT_surf_cv_lastdive ; last dive summery
|
|
33 extern TFT_surf_cv_list_gas ; OC gases list
|
|
34 extern TFT_surf_cv_text ; the custom text
|
|
35 extern TFT_surf_cv_tissues ; tissue diagram (also used by logbook)
|
|
36 extern TFT_surf_cv_settings ; all deco settings
|
|
37
|
|
38 IFDEF _rx_functions
|
|
39 extern TFT_surf_cv_tankdata ; show the tank pressure data in surface customview
|
|
40 ENDIF
|
623
|
41
|
|
42 IFDEF _compass
|
634
|
43 extern TFT_surf_cv_compass_bearing ; "set bearing" dialog
|
623
|
44 ENDIF
|
|
45
|
|
46 IFDEF _ccr_pscr
|
634
|
47 extern TFT_surf_cv_list_dil ; diluents list
|
|
48 extern TFT_surf_cv_list_sp ; setpoint list
|
623
|
49 ENDIF
|
|
50
|
634
|
51
|
|
52 ;-----------------------------------------------------------------------------
|
|
53 ; Surface Mode Messages
|
|
54
|
|
55 extern TFT_surf_mesg_desat ; desaturation time
|
|
56 extern TFT_surf_mesg_nofly ; no-fly/alt time
|
|
57
|
|
58
|
|
59 ;-----------------------------------------------------------------------------
|
|
60 ; Imprints called by Housekeeping
|
|
61
|
|
62 extern TFT_imprint_time_date ; imprint current time and date
|
|
63 extern TFT_imprint_time_date_fast ; imprint last cahced time and date
|
|
64 extern TFT_imprint_color_schemes ; imprint color schemes (animated dive time)
|
|
65
|
623
|
66 IFDEF _external_sensor
|
634
|
67 extern TFT_imprint_menu_mV ; imprint sensor data in menu mode - mv
|
|
68 extern TFT_imprint_surf_ppO2 ; imprint sensor data in surface mode - ppO2
|
|
69 extern TFT_imprint_surf_mV ; imprint sensor data in surface mode - mV
|
|
70 extern TFT_imprint_surf_sensor_eol ; imprint sensor data in surface mode - end of life
|
|
71 ENDIF
|
|
72
|
|
73 IFDEF _rx_functions
|
|
74 extern TFT_imprint_tank_pres ; imprint tank data in tank setup menu
|
623
|
75 ENDIF
|
|
76
|
560
|
77
|
634
|
78 ;-----------------------------------------------------------------------------
|
604
|
79 ; Dive Mode
|
634
|
80
|
|
81 extern TFT_show_divemode_mask ; show static layout
|
|
82 extern TFT_show_ndl_mask ; show NDL layout add-on
|
|
83 extern TFT_show_deco_mask ; show deco layout add-on
|
|
84
|
|
85 extern TFT_show_divetime ; show dive time
|
|
86 extern TFT_show_depth ; show current depth
|
|
87 extern TFT_show_max_depth ; show maximum depth
|
|
88 extern TFT_show_apnoe_max_depth ; show maximum depth - apnoe mode
|
|
89 extern TFT_show_temp_divemode ; show temperature (common core with surface temp)
|
|
90 extern TFT_show_active_gas_divemode ; show active gas and setpoint
|
|
91 extern TFT_show_ndl ; show NDL time
|
|
92 extern TFT_show_tts ; show TTS time
|
|
93 extern TFT_show_deco ; show deco stop data
|
|
94
|
|
95 extern TFT_show_apnoe_times ; show apnoe current and overall time
|
|
96 extern TFT_show_apnoe_surface ; show apnoe surface mode data
|
|
97 extern TFT_clear_apnoe_surface ; clear apnoe surface data
|
|
98
|
|
99 extern TFT_clear_deco_data ; clear deco data (NDL or stop & TTS)
|
604
|
100 extern TFT_clear_divemode_menu ; clear the divemode menu
|
634
|
101
|
|
102 extern TFT_velocity_show ; show vertical velocity
|
|
103 extern TFT_velocity_clear ; clear vertical velocity
|
|
104
|
|
105 extern TFT_divemode_sign_show ; show sign
|
|
106 extern TFT_divemode_sign_clear ; clear sign
|
|
107
|
|
108 extern TFT_safety_stop_show ; show safety stop
|
623
|
109 extern TFT_safety_stop_clear ; clear safety stop
|
634
|
110
|
|
111
|
|
112 ;-----------------------------------------------------------------------------
|
|
113 ; Dive Mode Mesages
|
|
114
|
|
115 extern TFT_message_ftts ; fTTS
|
|
116 extern TFT_message_ppo2 ; ppO2
|
|
117 extern TFT_message_battery_percent ; battery
|
|
118 extern TFT_message_cns ; current CNS
|
|
119 extern TFT_message_cns_eod ; end-of-dive CNS
|
|
120 extern TFT_message_saturation ; Saturation
|
|
121 extern TFT_message_agf ; aGF is selected
|
|
122 extern TFT_message_divetimeout ; dive timeout counter
|
|
123 extern TFT_message_gas_needs ; gas needs
|
|
124 extern TFT_message_gas_change ; gas change advice
|
|
125 extern TFT_message_no_BO_gas ; no bailout gas available
|
|
126 extern TFT_message_mbubbles ; mico-bubbles
|
|
127 extern TFT_message_outside ; outside of the model
|
|
128 extern TFT_message_depth_limit ; depth limit exceeded
|
|
129 extern TFT_message_deco_info ; decompression zone
|
604
|
130
|
623
|
131 IFDEF _helium
|
634
|
132 extern TFT_message_IBCD ; INCD
|
|
133 ENDIF
|
|
134
|
|
135 IFDEF _ccr_pscr
|
|
136 extern TFT_message_gas_density ; gas density
|
623
|
137 ENDIF
|
|
138
|
|
139 IFDEF _external_sensor
|
634
|
140 extern TFT_message_divergence ; sensor ppO2 divergence
|
|
141 extern TFT_message_fallback ; show fallback warning
|
623
|
142 ENDIF
|
|
143
|
634
|
144 IFDEF _rx_functions
|
|
145 extern TFT_message_transmitter ; transmitter
|
|
146 extern TFT_message_pressure ; pressure reading
|
|
147 extern TFT_message_sac ; SAC
|
|
148 extern TFT_message_switch_tanks ; switch advice for ind.double mode
|
|
149 ENDIF
|
623
|
150
|
634
|
151 IFDEF _cave_mode
|
|
152 extern TFT_message_cave_mode ; cave mode status
|
|
153 ENDIF
|
|
154
|
|
155
|
|
156 ;-----------------------------------------------------------------------------
|
604
|
157 ; Divemode Custom Views
|
634
|
158
|
604
|
159 extern TFT_avr_stopwatch_mask ; mask for average depth and stopwatch
|
|
160 extern TFT_avr_stopwatch ; data for average depth and stopwatch
|
631
|
161 extern TFT_gas_needs_mask ; mask for gas needs ascent
|
|
162 extern TFT_gas_needs ; data for gas needs ascent
|
604
|
163 extern TFT_decoplan_mask ; mask for deco plan
|
|
164 extern TFT_decoplan ; data for deco plan
|
|
165 extern TFT_ceiling_GF_tissue_mask ; mask for ceiling, current GF and tissues
|
|
166 extern TFT_ceiling_GF_tissue ; data for ceiling, current GF and tissues
|
|
167 extern TFT_CNS_mask ; mask for CNS values
|
|
168 extern TFT_CNS ; data for CNS values
|
628
|
169 extern TFT_ppo2_ead_end_cns_mask ; mask for ppO2, END/EAD and CNS / gas density
|
|
170 extern TFT_ppo2_ead_end_cns ; data for ppO2, END/EAD and CNS / gas density
|
604
|
171 extern TFT_gf_factors_mask ; mask for GF factors
|
634
|
172 ; extern ; data for GF factors (not existing)
|
604
|
173 extern TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure
|
|
174 extern TFT_clock_batt_surfpress ; data for clock, battery and surface pressure
|
|
175
|
623
|
176 IFDEF _ccr_pscr
|
|
177 extern TFT_sensor_check_mask ; mask for sensor check
|
|
178 extern TFT_sensor_check ; data for sensor check
|
|
179 extern TFT_pscr_info_mask ; mask for pSCR info
|
|
180 extern TFT_pscr_info ; data for pSCR info
|
|
181 ENDIF
|
|
182
|
|
183 IFDEF _external_sensor
|
|
184 extern TFT_ppo2_sensors_mask ; mask for ppO2 sensors
|
|
185 extern TFT_ppo2_sensors ; data for ppO2 sensors
|
|
186 ENDIF
|
|
187
|
634
|
188 IFDEF _rx_functions
|
|
189 extern TFT_pressures_SAC_mask ; mask for pressures and SAC
|
|
190 extern TFT_pressures_SAC ; data for pressures and SAC
|
|
191 ENDIF
|
|
192
|
631
|
193 IFDEF _cave_mode
|
|
194 extern TFT_cave_tts_mask ; mask for cave mode TTS, total stops and runtime
|
|
195 extern TFT_cave_tts ; data for cave mode TTS, total stops and runtime
|
634
|
196 extern TFT_cave_waypoints ; data for cave mode waypoints (no mask function)
|
623
|
197 ENDIF
|
|
198
|
0
|
199
|
634
|
200 ;-----------------------------------------------------------------------------
|
|
201 ; Font Color Selection - pallet-based Colors
|
|
202
|
|
203 extern TFT_load_std_color_pallet ; load standard color pallet
|
|
204 extern TFT_load_dive_color_pallet ; load dive color pallet
|
|
205
|
604
|
206
|
634
|
207 ;-----------------------------------------------------------------------------
|
|
208 ; Color-Coding
|
604
|
209
|
634
|
210 extern TFT_color_code_gas ; color-code by gas number (1-6) in WREG
|
|
211 extern TFT_color_code_gaslist ; color-code by gas O2% (in hi) and absolute pressure
|
|
212 extern TFT_color_code_cns ; color-code CNS value
|
604
|
213
|
|
214
|
634
|
215 ;-----------------------------------------------------------------------------
|
|
216 ; Append / Print Firmware Data etc.
|
|
217
|
|
218 extern TFT_cat_firmware ; append firmware version to output buffer
|
|
219 extern TFT_cat_beta_long ; append beta/release to output buffer (long format)
|
|
220 extern TFT_cat_beta_short ; append beta/release to output buffer (short format)
|
|
221 extern TFT_cat_serial ; append serial number to output buffer
|
|
222
|
|
223 extern TFT_print_serial_and_firmware ; print serial number and full firmware
|
|
224 extern TFT_print_firmware ; print firmware and beta/release status
|
|
225 extern TFT_print_decotype ; print OC,CCR,... (used by logbook & simulator)
|
|
226
|
|
227 extern TFT_message_fw_update ; firmware is updated message
|
|
228 extern TFT_message_fw_kept ; firmware is kept message
|
|
229
|
604
|
230
|
634
|
231
|
|
232 ;-----------------------------------------------------------------------------
|
|
233 ; Message System
|
|
234
|
|
235 extern TFT_buffer_trim_length ; fill or trim output buffer to a given length
|
|
236 extern TFT_clear_message_window ; clear all messages
|
|
237 extern TFT_clear_message_window_row2 ; clear only 2nd message
|
|
238
|
|
239
|
|
240 ;-----------------------------------------------------------------------------
|
|
241 ; Debug output
|
|
242
|
|
243 extern TFT_debug_output ; used for scheduling performance, etc.
|
|
244
|
|
245 ;-----------------------------------------------------------------------------
|