comparison 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
comparison
equal deleted inserted replaced
713:1fbcca5bdf5d 714:045ff7800501
49 typedef enum 49 typedef enum
50 { 50 {
51 UART_O2_INIT = 0, 51 UART_O2_INIT = 0,
52 UART_O2_CHECK, /* send blink command and check if sensor answers */ 52 UART_O2_CHECK, /* send blink command and check if sensor answers */
53 UART_O2_REQ_INFO, /* request information about available internal sensors of sensor */ 53 UART_O2_REQ_INFO, /* request information about available internal sensors of sensor */
54 UART_O2_REQ_ID, /* request ID of sensor */ 54 UART_O2_REQ_ID, /* request ID of sensor */
55 UART_O2_IDLE, /* sensor detected and no communication pending */ 55 UART_O2_IDLE, /* sensor detected and no communication pending */
56 UART_O2_REQ_O2, /* O2 value has been requested and is in receiption progress */ 56 UART_O2_REQ_O2, /* O2 value has been requested and is in receiption progress */
57 UART_O2_ERROR /* Error state which could not be resolved => only exit via de-/activation cycle */ 57 UART_O2_ERROR /* Error state which could not be resolved => only exit via de-/activation cycle */
58 } uartO2Status_t; 58 } uartO2Status_t;
59 59