comparison Small_CPU/Inc/externalInterface.h @ 742:e23fe82cbf8c

Update Sentinel protocol: The Sentinel protocol is now supported by autodetection. Added Autodetection indicator: In the previous version no indicator showed that an auto detection is running. A new pseudo sensor type has been introduced which now causes the auto detection string to be displayed while the detection is running in the background.
author Ideenmodellierer
date Sun, 19 Feb 2023 21:43:24 +0100
parents 30717de00f3a
children 0b5f45448eb6
comparison
equal deleted inserted replaced
741:6a35e2e97bfb 742:e23fe82cbf8c
26 #ifdef __cplusplus 26 #ifdef __cplusplus
27 extern "C" { 27 extern "C" {
28 #endif 28 #endif
29 29
30 /* Includes ------------------------------------------------------------------*/ 30 /* Includes ------------------------------------------------------------------*/
31 #include "configuration.h"
32
31 33
32 #define MAX_ADC_CHANNEL (3u) /* number of channels to be read */ 34 #define MAX_ADC_CHANNEL (3u) /* number of channels to be read */
33 #define EXTERNAL_ADC_NO_DATA 0xFF 35 #define EXTERNAL_ADC_NO_DATA 0xFF
34 36
35 #define EXT33V_CONTROL_PIN GPIO_PIN_7 /* PortC */ 37 #define EXT33V_CONTROL_PIN GPIO_PIN_7 /* PortC */
43 DETECTION_INIT, /* prepare external interface for operation if not already activated */ 45 DETECTION_INIT, /* prepare external interface for operation if not already activated */
44 DETECTION_START, 46 DETECTION_START,
45 DETECTION_ANALOG1, /* check ADC channels for connected sensors */ 47 DETECTION_ANALOG1, /* check ADC channels for connected sensors */
46 DETECTION_ANALOG2, 48 DETECTION_ANALOG2,
47 DETECTION_DIGO2, /* check UART channel for connected DigO2 sensor */ 49 DETECTION_DIGO2, /* check UART channel for connected DigO2 sensor */
50 #ifdef ENABLE_CO2_SUPPORT
48 DETECTION_CO2, /* check UART channel for connected CO2 sensor */ 51 DETECTION_CO2, /* check UART channel for connected CO2 sensor */
52 #endif
53 #ifdef ENABLE_SENTINEL_MODE
54 DETECTION_SENTINEL, /* check UART channel for connected Sentinel */
55 DETECTION_SENTINEL2,
56 #endif
49 DETECTION_DONE 57 DETECTION_DONE
50 } externalInterfaceAutoDetect_t; 58 } externalInterfaceAutoDetect_t;
51 59
52 60
53 61