Mercurial > public > ostc4
comparison Common/Inc/data_exchange.h @ 702:6d7c812fc173
Added digital o2 sensor to settings and data exchange:
Added functionality to pass the o2 signals from a digital sensor (via UART)
author | Ideenmodellierer |
---|---|
date | Fri, 28 Oct 2022 20:29:37 +0200 |
parents | 52d68cf9994c |
children | 045ff7800501 |
comparison
equal
deleted
inserted
replaced
701:8c48553a0176 | 702:6d7c812fc173 |
---|---|
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_UART_MASK (0x0700u) /* Reserve 3 bits for UART protocol selection */ | 41 #define EXT_INTERFACE_UART_MASK (0x0700u) /* Reserve 3 bits for UART protocol selection */ |
42 #define EXT_INTERFACE_UART_CO2 (0x0100u) /* Activate protocol for CO2 sensor */ | 42 #define EXT_INTERFACE_UART_CO2 (0x0100u) /* Activate protocol for CO2 sensor */ |
43 #define EXT_INTERFACE_UART_SENTINEL (0x0200u) /* Activate Sentinel Backup monitor protocol */ | 43 #define EXT_INTERFACE_UART_SENTINEL (0x0200u) /* Activate Sentinel Backup monitor protocol */ |
44 #define EXT_INTERFACE_UART_O2 (0x0400u) /* Activate digital o2 sensor protocol (DiveO2) */ | |
45 | |
46 /* Command subset for CO2 sensor */ | |
44 #define EXT_INTERFACE_CO2_CALIB (0x0001u) /* Request calibration of CO2Sensor */ | 47 #define EXT_INTERFACE_CO2_CALIB (0x0001u) /* Request calibration of CO2Sensor */ |
48 | |
49 /* Command subset for O2 sensor */ | |
50 #define EXT_INTERFACE_O2_INDICATE (0x0001u) /* Request LED to blink*/ | |
45 | 51 |
46 #define DATA_BUFFER_ADC (0x01u) | 52 #define DATA_BUFFER_ADC (0x01u) |
47 #define DATA_BUFFER_CO2 (0x02u) | 53 #define DATA_BUFFER_CO2 (0x02u) |
48 | 54 |
49 enum MODE | 55 enum MODE |