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