comparison Small_CPU/Inc/uart.h @ 690:fca2bd25e6e2 Betatest

Added Sentinel protocoll support: Added function for evaluation of the Sentinel protocoll. At the moment only O2 sensor values are extracted.
author Ideenmodellierer
date Fri, 05 Aug 2022 15:22:26 +0200
parents 1b995079c045
children f1b40364b0af
comparison
equal deleted inserted replaced
689:4dd487b407f7 690:fca2bd25e6e2
26 26
27 27
28 typedef enum 28 typedef enum
29 { 29 {
30 RX_Ready= 0, /* Initial state */ 30 RX_Ready= 0, /* Initial state */
31 RX_DetectStart, /* validate start byte */
32 RX_SelectData, /* Data contained in this frame */
31 RX_Data0, /* Process incoming data */ 33 RX_Data0, /* Process incoming data */
32 RX_Data1, 34 RX_Data1,
33 RX_Data2, 35 RX_Data2,
34 RX_Data3, 36 RX_Data3,
35 RX_Data4, 37 RX_Data4,
38 RX_Data5,
39 RX_Data6,
40 RX_Data7,
41 RX_Data8,
42 RX_Data9,
43 RX_Data10,
44 RX_Data11,
45 RX_Data12,
36 RX_DataComplete 46 RX_DataComplete
37 } receiveState_t; 47 } receiveState_t;
38 48
39 49
40 void MX_USART1_UART_Init(void); 50 void MX_USART1_UART_Init(void);
41 void MX_USART1_UART_DeInit(void); 51 void MX_USART1_UART_DeInit(void);
42 void MX_USART1_DMA_Init(void); 52 void MX_USART1_DMA_Init(void);
43 uint8_t UART_ButtonAdjust(uint8_t *array); 53 uint8_t UART_ButtonAdjust(uint8_t *array);
44 void HandleUARTData(void); 54 #ifdef ENABLE_CO2_SUPPORT
45 55 void HandleUARTCO2Data(void);
56 #endif
57 #ifdef ENABLE_SENTINEL_MODE
58 void HandleUARTSentinelData(void);
59 #endif
46 #ifdef __cplusplus 60 #ifdef __cplusplus
47 } 61 }
48 #endif 62 #endif
49 63
50 #endif /* UART_H */ 64 #endif /* UART_H */