Mercurial > public > ostc4
annotate Small_CPU/Inc/uart.h @ 830:b7d93ff6b3b2 Evo_2_23
Added selection if an active gas shall be used for deco calculation or not:
In previous version selecting a gas as deco gas automatically activated the gas for deco calculation. Some divers prever to have the deco time displayed which matches to the gas currently in use. These divers kept the gas deactivated unless they switch to it. Features like gas usability visualization or easy gas change using quick selection were not usable for these divers. With introduction of the new option the gas switching / visualization features may be used without having the gas been considered for calculation in the background. The option may be operated in the gas selection menu.
author | Ideenmodellierer |
---|---|
date | Thu, 16 Nov 2023 20:32:09 +0100 |
parents | e9eba334b942 |
children | ad96f99ebc78 |
rev | line source |
---|---|
38 | 1 /** |
2 ****************************************************************************** | |
3 * @file uart.h | |
4 * @author heinrichs weikamp gmbh | |
5 * @version V0.0.1 | |
6 * @date 27-March-2014 | |
7 * @brief button control | |
8 * | |
9 ****************************************************************************** | |
10 * @attention | |
11 * | |
12 * <h2><center>© COPYRIGHT(c) 2015 heinrichs weikamp</center></h2> | |
13 * | |
14 ****************************************************************************** | |
15 */ | |
16 | |
17 /* Define to prevent recursive inclusion -------------------------------------*/ | |
18 #ifndef UART_H | |
19 #define UART_H | |
20 | |
21 #ifdef __cplusplus | |
22 extern "C" { | |
23 #endif | |
24 | |
25 #include "stm32f4xx_hal.h" | |
26 | |
662 | 27 |
798
e9eba334b942
Migrated CO2 protocol implementation to new format:
Ideenmodellierer
parents:
794
diff
changeset
|
28 #define BUFFER_NODATA (7u) /* The read function needs a byte which indicated that no data for processing is available.*/ |
794 | 29 /* This byte shall never appear in a normal data steam */ |
30 | |
662 | 31 void MX_USART1_UART_Init(void); |
32 void MX_USART1_UART_DeInit(void); | |
33 void MX_USART1_DMA_Init(void); | |
38 | 34 uint8_t UART_ButtonAdjust(uint8_t *array); |
742 | 35 void UART_StartDMA_Receiption(void); |
690 | 36 #ifdef ENABLE_CO2_SUPPORT |
729
d646a0f724a7
Added auto detection functionality for sensors connected to the external interface:
Ideenmodellierer
parents:
721
diff
changeset
|
37 void UART_HandleCO2Data(void); |
794 | 38 void DigitalCO2_SendCmd(uint8_t CO2Cmd, uint8_t *cmdString, uint8_t *cmdLength); |
690 | 39 #endif |
40 #ifdef ENABLE_SENTINEL_MODE | |
729
d646a0f724a7
Added auto detection functionality for sensors connected to the external interface:
Ideenmodellierer
parents:
721
diff
changeset
|
41 void UART_HandleSentinelData(void); |
690 | 42 #endif |
729
d646a0f724a7
Added auto detection functionality for sensors connected to the external interface:
Ideenmodellierer
parents:
721
diff
changeset
|
43 uint8_t UART_isCO2Connected(); |
742 | 44 uint8_t UART_isSentinelConnected(); |
729
d646a0f724a7
Added auto detection functionality for sensors connected to the external interface:
Ideenmodellierer
parents:
721
diff
changeset
|
45 void UART_setTargetChannel(uint8_t channel); |
794 | 46 void UART_MUX_SelectAddress(uint8_t muxAddress); |
47 void UART_SendCmdString(uint8_t *cmdString); | |
48 void UART_ReadData(uint8_t sensorType); | |
49 void UART_FlushRxBuffer(void); | |
798
e9eba334b942
Migrated CO2 protocol implementation to new format:
Ideenmodellierer
parents:
794
diff
changeset
|
50 void UART_ChangeBaudrate(uint32_t newBaudrate); |
729
d646a0f724a7
Added auto detection functionality for sensors connected to the external interface:
Ideenmodellierer
parents:
721
diff
changeset
|
51 |
794 | 52 void StringToInt(char *pstr, uint32_t *puInt32); |
53 void StringToUInt64(char *pstr, uint64_t *puint64); | |
704
f1b40364b0af
Added protocol functions for UART DiveO2 sensor:
Ideenmodellierer
parents:
690
diff
changeset
|
54 |
38 | 55 #ifdef __cplusplus |
56 } | |
57 #endif | |
58 | |
59 #endif /* UART_H */ | |
60 | |
61 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/ |