Mercurial > public > ostc4
comparison Common/Inc/data_exchange.h @ 957:3420e3ba698d Evo_2_23
External sensor commands: Add sensor ID to command:
In the previous version a command was send without information regarding the target sensor. To have the possibility in future to e.g. calibrate a specific sensor, the sensor ID is now transmitted together with the command. As example in the new implementation the O2 Sensor selected in the sensor menu will blink to enable sensor identification.
author | Ideenmodellierer |
---|---|
date | Mon, 06 Jan 2025 20:06:35 +0100 |
parents | 9b29995d6619 |
children |
comparison
equal
deleted
inserted
replaced
956:083afabc6578 | 957:3420e3ba698d |
---|---|
31 #include "settings.h" | 31 #include "settings.h" |
32 #include "stm32f4xx_hal.h" | 32 #include "stm32f4xx_hal.h" |
33 | 33 |
34 /* Command definitions for control of external interface */ | 34 /* Command definitions for control of external interface */ |
35 /* 1st nibble binary on/off states */ | 35 /* 1st nibble binary on/off states */ |
36 /* 2nd nibble UART protocol selection */ | 36 /* 2nd nibble target sensor ID (if sensor command is active) */ |
37 /* 3rd nibble reserve */ | 37 /* 3rd nibble sensor commands */ |
38 /* 4th nibble command channel */ | 38 /* 4th nibble control channel */ |
39 #define EXT_INTERFACE_33V_ON (0x8000u) /* Bit set to enable 3.3V power interface */ | 39 #define EXT_INTERFACE_33V_ON (0x8000u) /* Bit set to enable 3.3V power interface */ |
40 #define EXT_INTERFACE_ADC_ON (0x4000u) /* Bit set to enable ADC conversion */ | 40 #define EXT_INTERFACE_ADC_ON (0x4000u) /* Bit set to enable ADC conversion */ |
41 #define EXT_INTERFACE_BUZZER_ON (0x2000u) /* Bit set to enable the buzzer */ | 41 #define EXT_INTERFACE_BUZZER_ON (0x2000u) /* Bit set to enable the buzzer */ |
42 | 42 |
43 /* Command subset */ | 43 /* Command subset */ |