Mercurial > public > ostc4
comparison Small_CPU/Inc/externalInterface.h @ 981:c6c781a2e85b default tip
Merge into default
author | heinrichsweikamp |
---|---|
date | Tue, 11 Feb 2025 18:12:00 +0100 (4 days ago) |
parents | f72613a152dd |
children |
comparison
equal
deleted
inserted
replaced
871:f7318457df4d | 981:c6c781a2e85b |
---|---|
41 #define MIN_ADC_VOLTAGE_MV (5.0f) /* miminal voltage to rate an ADC channel as active */ | 41 #define MIN_ADC_VOLTAGE_MV (5.0f) /* miminal voltage to rate an ADC channel as active */ |
42 | 42 |
43 #define COMMON_SENSOR_STATE_INIT (0x0u) /* All individual state definitions shall start with a INIT state = 0 */ | 43 #define COMMON_SENSOR_STATE_INIT (0x0u) /* All individual state definitions shall start with a INIT state = 0 */ |
44 #define COMMON_SENSOR_STATE_INVALID (0xFFu) /* All individual state definitions shall not use 0xFF for operation control */ | 44 #define COMMON_SENSOR_STATE_INVALID (0xFFu) /* All individual state definitions shall not use 0xFF for operation control */ |
45 | 45 |
46 | |
47 enum /* Definitions for supported UART protocols */ | |
48 { | |
49 EXT_INTERFACE_UART_OFF = 0, | |
50 EXT_INTERFACE_UART_CO2, | |
51 EXT_INTERFACE_UART_SENTINEL, | |
52 EXT_INTERFACE_UART_O2, | |
53 EXT_INTERFACE_UART_GNSS | |
54 }; | |
55 | |
56 | |
46 typedef enum | 57 typedef enum |
47 { | 58 { |
48 DETECTION_OFF = 0, /* no detection requested */ | 59 DETECTION_OFF = 0, /* no detection requested */ |
49 DETECTION_INIT, /* prepare external interface for operation if not already activated */ | 60 DETECTION_INIT, /* prepare external interface for operation if not already activated */ |
50 DETECTION_START, | 61 DETECTION_START, |
58 #ifdef ENABLE_CO2_SUPPORT | 69 #ifdef ENABLE_CO2_SUPPORT |
59 DETECTION_CO2_0, /* check UART channel for connected CO2 sensor */ | 70 DETECTION_CO2_0, /* check UART channel for connected CO2 sensor */ |
60 DETECTION_CO2_1, | 71 DETECTION_CO2_1, |
61 DETECTION_CO2_2, | 72 DETECTION_CO2_2, |
62 DETECTION_CO2_3, | 73 DETECTION_CO2_3, |
74 #endif | |
75 #ifdef ENABLE_GNSS_SUPPORT | |
76 DETECTION_GNSS_0, /* check UART channel for connected gnss sensor */ | |
77 DETECTION_GNSS_1, | |
78 DETECTION_GNSS_2, | |
79 DETECTION_GNSS_3, | |
63 #endif | 80 #endif |
64 #ifdef ENABLE_SENTINEL_MODE | 81 #ifdef ENABLE_SENTINEL_MODE |
65 DETECTION_SENTINEL, /* check UART channel for connected Sentinel */ | 82 DETECTION_SENTINEL, /* check UART channel for connected Sentinel */ |
66 DETECTION_SENTINEL2, | 83 DETECTION_SENTINEL2, |
67 #endif | 84 #endif |