comparison code_part1/OSTC_code_asm_part1/shared_definitions.h @ 743:8466932a2fcf

.. minor cleanups
author JeanDo
date Mon, 12 Aug 2013 15:08:05 +0200
parents 6e456a6398e0
children 50ed645c251d
comparison
equal deleted inserted replaced
733:b064dd9c9899 743:8466932a2fcf
76 bank2 udata_ovr 0x200 76 bank2 udata_ovr 0x200
77 #endif 77 #endif
78 78
79 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 79 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
80 Define model dimensions. 80 Define model dimensions.
81 NUM_COMP is the number of compartiments in the Bühlmann ZH-L16 model, ie 16. 81 NUM_COMP is the number of compartiments in the Buhlmann ZH-L16 model, ie 16.
82 NUM_STOPS is the maximum number of stops computed by decoplanning. 82 NUM_STOPS is the maximum number of stops computed by decoplanning.
83 Note that the deapest stop is roughly limited to 3m * NUM_STOPS 83 Note that the deapest stop is roughly limited to 3m * NUM_STOPS
84 (this is assuming all stops up to the surface are used). 84 (this is assuming all stops up to the surface are used).
85 Note also that if the table overflow, extra stops are ignored, 85 Note also that if the table overflow, extra stops are ignored,
86 and not reported in TTS summing. 86 and not reported in TTS summing.
87 NUM_GAS is the number of (potentially) active gas considered during 87 NUM_GAS is the number of (potentially) active gas considered during
91 #define NUM_STOPS 0x20 91 #define NUM_STOPS 0x20
92 #define NUM_GAS 5 92 #define NUM_GAS 5
93 93
94 VAR_UINT (int_O_gtissue_limit); 94 VAR_UINT (int_O_gtissue_limit);
95 VAR_UINT (int_O_gtissue_press); 95 VAR_UINT (int_O_gtissue_press);
96 VAR_UINT (int_O_desaturation_time); // 96 VAR_UINT (int_O_desaturation_time); //
97 VAR_UINT (int_O_ascenttime); // TTS (in minutes) 97 VAR_UINT (int_O_ascenttime); // TTS (in minutes)
98 VAR_UINT (int_O_extra_ascenttime); // TTS for @+5min variant (in minutes) 98 VAR_UINT (int_O_extra_ascenttime); // TTS for @+5min variant (in minutes)
99 99
100 VAR_UCHAR (char_O_nullzeit); // 100 VAR_UCHAR (char_O_nullzeit); //
101 VAR_UCHAR (char_O_deco_status); // Deko state-machine state. 101 VAR_UCHAR (char_O_deco_status); // Deko state-machine state.
102 VAR_UCHAR (char_O_deco_last_stop); // Depth reached during deko planning. 102 VAR_UCHAR (char_O_deco_last_stop); // Depth reached during deko planning.
103 VAR_UCHAR (char_O_gradient_factor); // 103 VAR_UCHAR (char_O_gradient_factor); //
104 VAR_UCHAR (char_O_gtissue_no); // 104 VAR_UCHAR (char_O_gtissue_no); //
105 VAR_UCHAR (char_O_diluent); // new in v.101 105 VAR_UCHAR (char_O_diluent); // new in v.101
106 VAR_UCHAR (char_O_flush_ppO2); // 2011-05-01: ppO2 from diluant (CCR mode). 106 VAR_UCHAR (char_O_flush_ppO2); // 2011-05-01: ppO2 from diluant (CCR mode).
107 VAR_UCHAR (char_O_EAD); // 2011-05-01: Added EAD/END in deco model. 107 VAR_UCHAR (char_O_EAD); // 2011-05-01: Added EAD/END in deco model.
108 VAR_UCHAR (char_O_END); // 2011-05-01: Added EAD/END in deco model. 108 VAR_UCHAR (char_O_END); // 2011-05-01: Added EAD/END in deco model.
109 VAR_UCHAR (char_O_CNS_fraction); // new in v.101 109 VAR_UCHAR (char_O_CNS_fraction); // new in v.101
133 bank3 udata_ovr 0x300 133 bank3 udata_ovr 0x300
134 #endif 134 #endif
135 135
136 VAR_UCHAR (char_I_step_is_1min); // Use 1min integration for tissue and CNS. 136 VAR_UCHAR (char_I_step_is_1min); // Use 1min integration for tissue and CNS.
137 137
138 VAR_UINT (int_I_pres_respiration); // 138 VAR_UINT (int_I_pres_respiration); //
139 VAR_UINT (int_I_pres_surface); // 139 VAR_UINT (int_I_pres_surface); //
140 VAR_UINT (int_I_temp); // new in v101 140 VAR_UINT (int_I_temp); // new in v101
141 VAR_UINT (int_I_divemins); // Dive time (minutes) 141 VAR_UINT (int_I_divemins); // Dive time (minutes)
142 VAR_UCHAR (char_I_temp); // new in v101 142 VAR_UCHAR (char_I_temp); // new in v101
143 VAR_UCHAR (char_I_actual_ppO2); // 143 VAR_UCHAR (char_I_actual_ppO2); //
144 VAR_UCHAR (char_I_first_gas); // Gas used at start of dive (bottom mix) 144 VAR_UCHAR (char_I_first_gas); // Gas used at start of dive (bottom mix)
145 VAR_UCHAR (char_I_current_gas); // Current gas breathed (1..6). 145 VAR_UCHAR (char_I_current_gas); // Current gas breathed (1..6).
146 VAR_UCHAR (char_I_N2_ratio); // 146 VAR_UCHAR (char_I_N2_ratio); //
147 VAR_UCHAR (char_I_He_ratio); // 147 VAR_UCHAR (char_I_He_ratio); //
148 VAR_UCHAR (char_I_saturation_multiplier); // for conservatism/safety values 1.0 no conservatism to 1.5 50% faster saturation 148 VAR_UCHAR (char_I_saturation_multiplier); // for conservatism/safety values 1.0 no conservatism to 1.5 50% faster saturation
149 VAR_UCHAR (char_I_desaturation_multiplier);// for conservatism/safety values 0.66 50% slower desaturation to 1.0 no conservatism// consveratism used in calc_tissue , calc_tissue_step_1_min and sim_tissue_1min 149 VAR_UCHAR (char_I_desaturation_multiplier);// for conservatism/safety values 0.66 50% slower desaturation to 1.0 no conservatism// consveratism used in calc_tissue , calc_tissue_step_1_min and sim_tissue_1min
150 VAR_UCHAR (char_I_GF_High_percentage); // new in v.102 150 VAR_UCHAR (char_I_GF_High_percentage); // new in v.102
151 VAR_UCHAR (char_I_GF_Low_percentage); // new in v.102 151 VAR_UCHAR (char_I_GF_Low_percentage); // new in v.102
152 VAR_UCHAR (char_I_deco_distance); // 152 VAR_UCHAR (char_I_deco_distance); //
153 VAR_UCHAR (char_I_const_ppO2); // new in v.101 153 VAR_UCHAR (char_I_const_ppO2); // new in v.101
154 VAR_UCHAR (char_I_depth_last_deco); // new in v.101 unit: [m] 154 VAR_UCHAR (char_I_depth_last_deco); // new in v.101 unit: [m]
155 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor) 155 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor)
156 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation). 156 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation).
157 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation). 157 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation).