Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Small_CPU/Inc/uart.h Fri Aug 05 15:15:01 2022 +0200 +++ b/Small_CPU/Inc/uart.h Fri Aug 05 15:22:26 2022 +0200 @@ -28,11 +28,21 @@ typedef enum { RX_Ready= 0, /* Initial state */ + RX_DetectStart, /* validate start byte */ + RX_SelectData, /* Data contained in this frame */ RX_Data0, /* Process incoming data */ RX_Data1, RX_Data2, RX_Data3, RX_Data4, + RX_Data5, + RX_Data6, + RX_Data7, + RX_Data8, + RX_Data9, + RX_Data10, + RX_Data11, + RX_Data12, RX_DataComplete } receiveState_t; @@ -41,8 +51,12 @@ void MX_USART1_UART_DeInit(void); void MX_USART1_DMA_Init(void); uint8_t UART_ButtonAdjust(uint8_t *array); -void HandleUARTData(void); - +#ifdef ENABLE_CO2_SUPPORT +void HandleUARTCO2Data(void); +#endif +#ifdef ENABLE_SENTINEL_MODE +void HandleUARTSentinelData(void); +#endif #ifdef __cplusplus } #endif