Mercurial > public > hwos_code
comparison src/shared_definitions.h @ 628:cd58f7fc86db
3.05 stable work
| author | heinrichsweikamp |
|---|---|
| date | Thu, 19 Sep 2019 12:01:29 +0200 |
| parents | c40025d8e750 |
| children | 185ba2f91f59 |
comparison
equal
deleted
inserted
replaced
| 627:bf5fee575701 | 628:cd58f7fc86db |
|---|---|
| 1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | 1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 2 ; | 2 ; |
| 3 ; shared_definitions.h combined next generation V3.03.1 | 3 ; shared_definitions.h combined next generation V3.04.3 |
| 4 ; | 4 ; |
| 5 ; Declare variables used both in C and ASM code | 5 ; Declare variables used both in C and ASM code |
| 6 ; | 6 ; |
| 7 ; This program is free software: you can redistribute it and/or modify | 7 ; This program is free software: you can redistribute it and/or modify |
| 8 ; it under the terms of the GNU General Public License as published by | 8 ; it under the terms of the GNU General Public License as published by |
| 87 | 87 |
| 88 | 88 |
| 89 #ifdef __18CXX | 89 #ifdef __18CXX |
| 90 //---- BANK 3 DATA ------------------------------------------------------- | 90 //---- BANK 3 DATA ------------------------------------------------------- |
| 91 // Gather all Data C-Code --> ASM-Code | 91 // Gather all Data C-Code --> ASM-Code |
| 92 // Memory usage: 240 Byte used, 16 Byte free | 92 // Memory usage: 247 Byte used, 9 Byte free |
| 93 # pragma udata overlay bank3=0x300 | 93 # pragma udata overlay bank3=0x300 |
| 94 #else | 94 #else |
| 95 ; in ASM, put the same bank, in overlay mode, at the same address | 95 ; in ASM, put the same bank, in overlay mode, at the same address |
| 96 bank3 equ 0x300 | 96 bank3 equ 0x300 |
| 97 bank3 udata_ovr bank3 | 97 bank3 udata_ovr bank3 |
| 156 VAR_UCHAR (char_I_desaturation_multiplier); // safety factor, 100 = no conservatism, 66 = 50% slower desaturation | 156 VAR_UCHAR (char_I_desaturation_multiplier); // safety factor, 100 = no conservatism, 66 = 50% slower desaturation |
| 157 | 157 |
| 158 VAR_UCHAR (char_I_GF_High_percentage); // GF model high value | 158 VAR_UCHAR (char_I_GF_High_percentage); // GF model high value |
| 159 VAR_UCHAR (char_I_GF_Low_percentage); // GF model low value | 159 VAR_UCHAR (char_I_GF_Low_percentage); // GF model low value |
| 160 | 160 |
| 161 VAR_UCHAR (char_I_deco_distance); // assumed extra depth below required depth for CNS and gas volumes calculations | |
| 162 VAR_UCHAR (char_I_depth_last_deco); // depth of the last deco stop in meters | 161 VAR_UCHAR (char_I_depth_last_deco); // depth of the last deco stop in meters |
| 163 | 162 |
| 164 VAR_UCHAR (char_I_deco_model); // deco model selection: 0 = ZH-L16, 1 = ZH-L16-GF (with gradient factors) | 163 VAR_UCHAR (char_I_deco_model); // deco model selection: 0 = ZH-L16, 1 = ZH-L16-GF (with gradient factors) |
| 165 | 164 |
| 166 VAR_UCHAR (char_I_bottom_depth); // bottom depth, used for gas volume calculations | 165 VAR_UCHAR (char_I_bottom_depth); // bottom depth, used for gas volume calculations |
| 208 | 207 |
| 209 TAB_UCHAR (char_I_pressure_gas, 2); // pressure reading, associated gas (1-5) / diluent (6-10), 0 if off | 208 TAB_UCHAR (char_I_pressure_gas, 2); // pressure reading, associated gas (1-5) / diluent (6-10), 0 if off |
| 210 TAB_UCHAR (char_I_pressure_age, 2); // pressure reading, age of data | 209 TAB_UCHAR (char_I_pressure_age, 2); // pressure reading, age of data |
| 211 TAB_UCHAR (char_I_pressure_stat,2); // pressure reading, transmitter status data | 210 TAB_UCHAR (char_I_pressure_stat,2); // pressure reading, transmitter status data |
| 212 | 211 |
| 213 VAR_UCHAR (char_I_backtrack_time); // index (in minutes) of backtrack entries in char_I_backtrack_depth | 212 TAB_UCHAR (char_O_deco_time_for_log, NUM_STOPS_LOG); // times of the shallowest NUM_STOPS_LOG deco stops |
| 214 | 213 |
| 215 VAR_UINT (int_O_profiling_overrun); // current scheduling overrun in ms | 214 VAR_UINT (int_O_profiling_overrun); // current scheduling overrun in ms |
| 216 VAR_UINT (int_O_profiling_overrun_max); // maximum scheduling overrun in ms | 215 VAR_UINT (int_O_profiling_overrun_max); // maximum scheduling overrun in ms |
| 217 VAR_UCHAR (char_O_profiling_overrun_phase); // calculation phase causing the maximum overrun | 216 VAR_UCHAR (char_O_profiling_overrun_phase); // calculation phase causing the maximum overrun |
| 218 VAR_UCHAR (char_O_profiling_runs_norm); // runs per cycle for normal plan | 217 VAR_UCHAR (char_O_profiling_runs_norm); // runs per cycle for normal plan |
| 219 VAR_UCHAR (char_O_profiling_runs_alt); // runs per cycle for alternative plan | 218 VAR_UCHAR (char_O_profiling_runs_alt); // runs per cycle for alternative plan |
| 220 | 219 |
| 221 TAB_UCHAR (char_O_deco_time_for_log, NUM_STOPS_LOG); // times of the shallowest NUM_STOPS_LOG deco stops | 220 VAR_UINT (int_O_tank_pressure); // tank pressure for logging in [bar] |
| 221 VAR_UINT (int_O_gas_density); // gas density of currently breathed mix in multiples of 0.01 grams per liter | |
| 222 | |
| 223 VAR_UCHAR (char_I_backtrack_time); // index (in minutes) of backtrack entries in char_I_backtrack_depth | |
| 224 VAR_UCHAR (char_I_gas_contingency); // =1: switch to alternative gas if best gas is depleted | |
| 225 | |
| 226 VAR_UCHAR (char_I_gas_density_att); // threshold for gas density attention [0.1 grams/l] | |
| 227 VAR_UCHAR (char_I_gas_density_warn); // threshold for gas density warning [0.1 grams/l] | |
| 228 | |
| 229 VAR_UCHAR (char_I_dil_ppO2_check); // =1: check ppO2 of the pure diluent against current setpoint | |
| 222 | 230 |
| 223 | 231 |
| 224 #ifdef __18CXX | 232 #ifdef __18CXX |
| 225 //---- BANK 4 DATA ------------------------------------------------------- | 233 //---- BANK 4 DATA ------------------------------------------------------- |
| 226 // Gather all Data ASM-Code --> C-Code | 234 // Gather all Data ASM-Code --> C-Code |
