Mercurial > public > ostc4
annotate Discovery/Inc/tComm.h @ 855:012f94ec2fe0 Evo_2_23
Redefine Deco gas creation function:
The old function needed a lot of iteration to get through all gases. With the change to define the first gas in PSCR mode as deco gas for calculation (because the actual gas could be not breathable close to surface => deco planing would be based on > 80% nitrogen increasing the deco prediction higher than necessary) the need showed up to somehow define the first gas as deco gas. Instead of manipulating the gas attribute the deco list creation function was changed to create the list based on gas line pointer information instead of index lists. The new function needs less iterations for sorting and is more flexible regarding gas handling.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 18 Mar 2024 21:52:25 +0100 |
| parents | 7bcbbaa42cbf |
| children | 5e027b0f7475 |
| rev | line source |
|---|---|
| 38 | 1 /////////////////////////////////////////////////////////////////////////////// |
| 2 /// -*- coding: UTF-8 -*- | |
| 3 /// | |
| 4 /// \file Discovery/Inc/tComm.h | |
| 5 /// \brief Header file communication with PC | |
| 6 /// \author heinrichs weikamp gmbh | |
| 7 /// \date 08-Aug-2014 | |
| 8 /// | |
| 9 /// $Id$ | |
| 10 /////////////////////////////////////////////////////////////////////////////// | |
| 11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh | |
| 12 /// | |
| 13 /// This program is free software: you can redistribute it and/or modify | |
| 14 /// it under the terms of the GNU General Public License as published by | |
| 15 /// the Free Software Foundation, either version 3 of the License, or | |
| 16 /// (at your option) any later version. | |
| 17 /// | |
| 18 /// This program is distributed in the hope that it will be useful, | |
| 19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 /// GNU General Public License for more details. | |
| 22 /// | |
| 23 /// You should have received a copy of the GNU General Public License | |
| 24 /// along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 25 ////////////////////////////////////////////////////////////////////////////// | |
| 26 | |
| 27 /* Define to prevent recursive inclusion -------------------------------------*/ | |
| 28 #ifndef TCOMM_H | |
| 29 #define TCOMM_H | |
| 30 | |
| 31 /* Includes ------------------------------------------------------------------*/ | |
| 32 #include <stdint.h> | |
| 33 | |
|
397
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
34 |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
35 /* types */ |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
36 typedef enum |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
37 { |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
38 BM_CONFIG_OFF = 0, |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
39 BM_CONFIG_ECHO, |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
40 BM_CONFIG_ESCAPE_DELAY, |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
41 BM_CONFIG_SIGNAL_POLL, |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
42 BM_CONFIG_BAUD, |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
43 BM_CONFIG_SILENCE, |
| 400 | 44 BM_CONFIG_DONE, |
| 45 BM_CONFIG_RETRY | |
|
397
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
46 } BlueModTmpConfig_t; |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
47 |
| 38 | 48 /* Exported functions --------------------------------------------------------*/ |
| 49 | |
| 50 void tComm_init(void); | |
| 51 uint8_t tComm_control(void); | |
| 52 void tComm_refresh(void); | |
| 53 void tComm_exit(void); | |
| 54 void tComm_verlauf(uint8_t percentage_complete); | |
| 55 uint8_t tComm_Set_Bluetooth_Name(uint8_t force); | |
|
397
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
56 void tComm_StartBlueModConfig(void); |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
57 void tComm_RequestBluetoothStrength(void); |
| 38 | 58 |
| 59 #endif /* TCOMM_H */ |
