diff 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
line wrap: on
line diff
--- a/Common/Inc/data_exchange.h	Mon Jan 06 17:55:34 2025 +0100
+++ b/Common/Inc/data_exchange.h	Mon Jan 06 20:06:35 2025 +0100
@@ -33,9 +33,9 @@
 
 /* Command definitions for control of external interface */
 /* 1st nibble binary on/off states */
-/* 2nd nibble UART protocol selection */
-/* 3rd nibble reserve */
-/* 4th nibble command channel */
+/* 2nd nibble target sensor ID (if sensor command is active) */
+/* 3rd nibble sensor commands */
+/* 4th nibble control channel */
 #define EXT_INTERFACE_33V_ON		(0x8000u)	/* Bit set to enable 3.3V power interface */
 #define EXT_INTERFACE_ADC_ON		(0x4000u)	/* Bit set to enable ADC conversion */
 #define EXT_INTERFACE_BUZZER_ON		(0x2000u)	/* Bit set to enable the buzzer */