diff Small_CPU/Inc/uart.h @ 714:045ff7800501

Added customizable data area for specific sensor data: In future smart sensors will be connected via UART interface. These sensor provide additional data like diagnostics or id numbers which may vary from sensor to sensor. That's why a byte array has been added which stores up to 32 bytes. The layout of this array may be specific to sensor needs. As first example temperature and id number of the DiveO2 sensor are provided.
author Ideenmodellierer
date Sun, 20 Nov 2022 20:42:08 +0100
parents f1b40364b0af
children fceae45b3a69
line wrap: on
line diff
--- a/Small_CPU/Inc/uart.h	Sun Nov 20 20:37:44 2022 +0100
+++ b/Small_CPU/Inc/uart.h	Sun Nov 20 20:42:08 2022 +0100
@@ -51,7 +51,7 @@
  	UART_O2_INIT = 0,
  	UART_O2_CHECK,			/* send blink command and check if sensor answers */
  	UART_O2_REQ_INFO,		/* request information about available internal sensors of sensor */
-	UART_O2_REQ_ID,		/* request ID of sensor */
+	UART_O2_REQ_ID,			/* request ID of sensor */
  	UART_O2_IDLE,			/* sensor detected and no communication pending */
  	UART_O2_REQ_O2,			/* O2 value has been requested and is in receiption progress */
  	UART_O2_ERROR			/* Error state which could not be resolved => only exit via de-/activation cycle */