comparison Small_CPU/Inc/uart.h @ 721:fceae45b3a69

DigO2 added raw data request: Beside ppO2 the Digo2 also offers raw data like humidity, pressure or signal intensity. These information may be of interest for diagnostic functions and have been added to the protocol support function.
author Ideenmodellierer
date Thu, 05 Jan 2023 18:22:21 +0100
parents 045ff7800501
children d646a0f724a7
comparison
equal deleted inserted replaced
720:4f70155362d2 721:fceae45b3a69
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_REQ_RAW, /* Request O2 and extended raw data */
57 UART_O2_ERROR /* Error state which could not be resolved => only exit via de-/activation cycle */ 58 UART_O2_ERROR /* Error state which could not be resolved => only exit via de-/activation cycle */
58 } uartO2Status_t; 59 } uartO2Status_t;
59 60
60 61
61 typedef enum 62 typedef enum
67 O2RX_GETTEMP, /* extract the temperature */ 68 O2RX_GETTEMP, /* extract the temperature */
68 O2RX_GETSTATUS, /* extract the sensor status */ 69 O2RX_GETSTATUS, /* extract the sensor status */
69 O2RX_GETTYPE, /* extract the sensor type (should be 8) */ 70 O2RX_GETTYPE, /* extract the sensor type (should be 8) */
70 O2RX_GETCHANNEL, /* extract the number of sensor channels (should be 1) */ 71 O2RX_GETCHANNEL, /* extract the number of sensor channels (should be 1) */
71 O2RX_GETVERSION, /* extract the sensor version */ 72 O2RX_GETVERSION, /* extract the sensor version */
72 O2RX_GETSUBSENSORS /* extract the available measures (O2, temperature, humidity etc) */ 73 O2RX_GETSUBSENSORS, /* extract the available measures (O2, temperature, humidity etc) */
74 O2RX_GETDPHI, /* extract phase shift */
75 O2RX_INTENSITY, /* extract intensity of signal */
76 O2RX_AMBIENTLIGHT, /* extract the intensity of the ambient light */
77 O2RX_PRESSURE, /* extract pressor within the sensor housing */
78 O2RX_HUMIDITY /* extract humidity within the sensor housing */
73 } uartO2RxState_t; 79 } uartO2RxState_t;
74 80
75 void MX_USART1_UART_Init(void); 81 void MX_USART1_UART_Init(void);
76 void MX_USART1_UART_DeInit(void); 82 void MX_USART1_UART_DeInit(void);
77 void MX_USART1_DMA_Init(void); 83 void MX_USART1_DMA_Init(void);