Mercurial > public > ostc4
diff Small_CPU/Inc/externalInterface.h @ 781:01b3eb9d55c3
Update real multiplexer implementation:
The final multiplexer provides 4 sensor connections instead of three supported by the prototype => A mupping functionality has been introduced to map the 4 possible mux addresses to the three visible O2 sensor slots.
In addition the request cycle time is not depending on the number of sensors connected to make sure that all sensors are read within a defined time frame.
The error reaction had to be updated to reset mux channels if one of the sensors fails to respond.
author | Ideenmodellierer |
---|---|
date | Mon, 29 May 2023 18:26:55 +0200 |
parents | 0b5f45448eb6 |
children | 19ab6f3ed52a |
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h Tue May 23 21:50:19 2023 +0200 +++ b/Small_CPU/Inc/externalInterface.h Mon May 29 18:26:55 2023 +0200 @@ -32,6 +32,7 @@ #define MAX_ADC_CHANNEL (3u) /* number of channels to be read */ +#define MAX_MUX_CHANNEL (4u) /* number of channels provided by the UART multiplexer */ #define EXTERNAL_ADC_NO_DATA 0xFF #define EXT33V_CONTROL_PIN GPIO_PIN_7 /* PortC */ @@ -50,6 +51,7 @@ DETECTION_DIGO2_0, /* check UART channel for connected DigO2 sensor */ DETECTION_DIGO2_1, DETECTION_DIGO2_2, + DETECTION_DIGO2_3, #ifdef ENABLE_CO2_SUPPORT DETECTION_CO2, /* check UART channel for connected CO2 sensor */ #endif