Mercurial > public > ostc4
annotate Discovery/Inc/tComm.h @ 1048:493a5903ec20 GasConsumption
Merge with 9d9d506a82d3162b6b2323819cc08652887d7dd4 (Bootloader)
| author | Ideenmodellierer |
|---|---|
| date | Sat, 15 Nov 2025 19:29:44 +0100 |
| parents | 1d7c7a36df15 9d9d506a82d3 |
| children |
| 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, |
|
872
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
45 BM_CONFIG_RETRY, |
| 1046 | 46 BM_CONFIG5_ESCAPE1 = 50, |
| 47 BM_CONFIG5_ESCAPE2, | |
| 48 BM_CONFIG5_BAUD, | |
| 49 BM_CONFIG5_DATAMODE, | |
| 1044 | 50 BM_INIT_POWEROFF = 100, |
| 51 BM_INIT_POWERON, | |
|
1048
493a5903ec20
Merge with 9d9d506a82d3162b6b2323819cc08652887d7dd4 (Bootloader)
Ideenmodellierer
diff
changeset
|
52 BM_INIT_COMMAND_ON, |
| 879 | 53 BM_INIT_ECHO, |
|
872
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
54 BM_INIT_FACTORY, |
| 1003 | 55 BM_INIT_ECHO2, |
|
872
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
56 BM_INIT_MODE, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
57 BM_INIT_BLE, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
58 BM_INIT_NAME, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
59 BM_INIT_SSP_IDO_OFF, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
60 BM_INIT_SSP_IDO_ON, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
61 BM_INIT_SSP_ID1_OFF, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
62 BM_INIT_SSP_ID1_ON, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
63 BM_INIT_STORE, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
64 BM_INIT_RESTART, |
|
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
65 BM_INIT_DONE |
|
397
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
66 } BlueModTmpConfig_t; |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
67 |
| 970 | 68 |
| 69 typedef enum | |
| 70 { | |
| 71 BT_CMD_ECHO, | |
| 72 BT_CMD_ESCAPE_DELAY, | |
| 73 BT_CMD_SIGNAL_POLL, | |
| 74 BT_CMD_BAUDRATE_115, | |
| 75 BT_CMD_BAUDRATE_460, | |
| 76 BT_CMD_SILENCE, | |
| 77 BT_CMD_NAME, | |
| 78 BT_CMD_EXIT_CMD | |
| 79 } BTCmd; | |
| 38 | 80 /* Exported functions --------------------------------------------------------*/ |
| 81 | |
| 82 void tComm_init(void); | |
| 83 uint8_t tComm_control(void); | |
| 84 void tComm_refresh(void); | |
| 85 void tComm_exit(void); | |
| 86 void tComm_verlauf(uint8_t percentage_complete); | |
| 87 uint8_t tComm_Set_Bluetooth_Name(uint8_t force); | |
|
872
5e027b0f7475
Added first time initialization for new bluetooth module:
Ideenmodellierer
parents:
400
diff
changeset
|
88 void tComm_StartBlueModBaseInit(void); |
|
397
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
89 void tComm_StartBlueModConfig(void); |
|
1db721dda682
Added missing enum for configuration states
ideenmodellierer
parents:
38
diff
changeset
|
90 void tComm_RequestBluetoothStrength(void); |
| 38 | 91 |
| 92 #endif /* TCOMM_H */ |
