comparison Small_CPU/Inc/uartProtocol_Sentinel.h @ 1062:785772303f9c Icon_Integration

Added pressure sensors in Sentnel mode: The Red Head/Provide pressure and tempstick information on a uart channel together with the O2 data. The support for receiving pressure data has been added to the Sentinel protocol function.
author Ideenmodellierer
date Tue, 10 Feb 2026 19:36:05 +0100
parents c3dd461ca3f9
children
comparison
equal deleted inserted replaced
1061:f501d7c35c8f 1062:785772303f9c
29 29
30 /* Includes ------------------------------------------------------------------*/ 30 /* Includes ------------------------------------------------------------------*/
31 #include "configuration.h" 31 #include "configuration.h"
32 #include "stm32f4xx_hal.h" 32 #include "stm32f4xx_hal.h"
33 33
34 /* Bit flags for different sensor types provided by Sentinel or Red Head/Bare */
35
36 #define SENTINEL_O2 0x01
37 #define SENTINEL_CO2 0x02
38 #define SENTINEL_PRESSURE 0x04
39 #define SENTINEL_TEMPSTICK 0x08
40
41
42
43 #define UART_SENTINEL_O2_P 'T' /* Primary O2 sensor */
44 #define UART_SENTINEL_O2_S 'S' /* Secondary O2 sensor */
45 #define UART_SENTINEL_PRESSURE_O2 'I' /* O2 pressure */
46 #define UART_SENTINEL_PRESSURE_D 'J' /* Diluent pressure */
47 #define UART_SENTINEL_TEMPSTICK 'Y' /* Sector value of the tempstick */
48
34 typedef enum 49 typedef enum
35 { 50 {
36 UART_SENTINEL_INIT = 0, /* Default Status for every sensor type */ 51 UART_SENTINEL_INIT = 0, /* Default Status for every sensor type */
37 UART_SENTINEL_IDLE, /* sensor detected and no communication pending */ 52 UART_SENTINEL_IDLE, /* sensor detected and no communication pending */
38 UART_SENTINEL_ERROR, 53 UART_SENTINEL_ERROR,
53 SENTRX_Data6, 68 SENTRX_Data6,
54 SENTRX_Data7, 69 SENTRX_Data7,
55 SENTRX_Data8, 70 SENTRX_Data8,
56 SENTRX_Data9, 71 SENTRX_Data9,
57 SENTRX_Data10, 72 SENTRX_Data10,
58 SENTRX_Data11, 73 SENTRX_CheckSum,
59 SENTRX_Data12,
60 SENTRX_DataComplete 74 SENTRX_DataComplete
61 } receiveStateSentinel_t; 75 } receiveStateSentinel_t;
62 76
63 77
64 void uartSentinel_Control(void); 78 void uartSentinel_Control(void);