Mercurial > public > ostc4
comparison Small_CPU/Inc/externalInterface.h @ 1080:b02311fbb1e1 Icon_Integration tip
Added MUX operation for HUD:
Instead of adding some new detection steps to the autodetection loop (which would be another copy paste implementation) the detection loop has been reworked. Instead of having a several individual steps per sensor type the steps are now related to mux channels. A structure is used to identify the type which shall be handled during the uart channel iteration. This make the code better readable and maintanance easier.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 08 Mar 2026 21:08:33 +0100 |
| parents | bd8ab302ef4a |
| children |
comparison
equal
deleted
inserted
replaced
| 1079:9e1fdb383d86 | 1080:b02311fbb1e1 |
|---|---|
| 60 DETECTION_INIT, /* prepare external interface for operation if not already activated */ | 60 DETECTION_INIT, /* prepare external interface for operation if not already activated */ |
| 61 DETECTION_START, | 61 DETECTION_START, |
| 62 DETECTION_ANALOG1, /* check ADC channels for connected sensors */ | 62 DETECTION_ANALOG1, /* check ADC channels for connected sensors */ |
| 63 DETECTION_ANALOG2, | 63 DETECTION_ANALOG2, |
| 64 DETECTION_UARTMUX, /* check if a uart multiplexer is present */ | 64 DETECTION_UARTMUX, /* check if a uart multiplexer is present */ |
| 65 DETECTION_DIGO2_0, /* check UART channel for connected DigO2 sensor */ | 65 |
| 66 DETECTION_DIGO2_1, | 66 DETECTION_UART0, /* detect sensor connected to uart channel */ |
| 67 DETECTION_DIGO2_2, | 67 DETECTION_UART1, |
| 68 DETECTION_DIGO2_3, | 68 DETECTION_UART2, |
| 69 #ifdef ENABLE_CO2_SUPPORT | 69 DETECTION_UART3, |
| 70 DETECTION_CO2_0, /* check UART channel for connected CO2 sensor */ | 70 |
| 71 DETECTION_CO2_1, | |
| 72 DETECTION_CO2_2, | |
| 73 DETECTION_CO2_3, | |
| 74 #endif | |
| 75 #ifdef ENABLE_GNSS_EXTERN | |
| 76 DETECTION_GNSS_0, /* check UART channel for connected gnss sensor */ | |
| 77 DETECTION_GNSS_1, | |
| 78 DETECTION_GNSS_2, | |
| 79 DETECTION_GNSS_3, | |
| 80 #endif | |
| 81 #ifdef ENABLE_SENTINEL_MODE | |
| 82 DETECTION_SENTINEL, /* check UART channel for connected Sentinel */ | |
| 83 DETECTION_SENTINEL2, | |
| 84 #endif | |
| 85 #ifdef ENABLE_HUD_SUPPORT | |
| 86 DETECTION_HUD_0, | |
| 87 DETECTION_HUD_1, | |
| 88 DETECTION_HUD_2, | |
| 89 DETECTION_HUD_3, | |
| 90 #endif | |
| 91 DETECTION_DONE | 71 DETECTION_DONE |
| 92 } externalInterfaceAutoDetect_t; | 72 } externalInterfaceAutoDetect_t; |
| 93 | 73 |
| 94 | 74 |
| 95 | 75 |
