Mercurial > public > ostc4
comparison Small_CPU/Inc/externalInterface.h @ 839:061174d88af9 Evo_2_23
Code cleanup: UART protocol definitions
In the first external interface implementation the discovery part took care for the uart protocol selection. Since the introduction of the automatic detection the protocol handling has been moved into the RTE. However the definitions were still in the in the exchange header (Discovery <=> RTE). To avoid confusions the definitions have been moved into RTE scope only.
author | Ideenmodellierer |
---|---|
date | Sun, 07 Jan 2024 21:20:15 +0100 |
parents | e9eba334b942 |
children | f72613a152dd |
comparison
equal
deleted
inserted
replaced
838:aed39d19269c | 839:061174d88af9 |
---|---|
40 | 40 |
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 | |
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 }; | |
54 | |
45 | 55 |
46 typedef enum | 56 typedef enum |
47 { | 57 { |
48 DETECTION_OFF = 0, /* no detection requested */ | 58 DETECTION_OFF = 0, /* no detection requested */ |
49 DETECTION_INIT, /* prepare external interface for operation if not already activated */ | 59 DETECTION_INIT, /* prepare external interface for operation if not already activated */ |