Mercurial > public > ostc4
comparison Common/Inc/data_central.h @ 796:75ace7af8212
Expanded Sensor map structure:
In the previous version the number of possible sensors were set to 5 based on the assumption that ADC slots are shared with digital O2 sensors. As result three of five slots would have been limited to O2 measurement usecase, leaving just two slots left for other sensors (e.g. CO2). In order to have as much flexibility (and less risk for data structure changes) the number of sensors has been set to 7 (3 ADC + 4 UART MUX)
author | Ideenmodellierer |
---|---|
date | Mon, 31 Jul 2023 20:00:06 +0200 |
parents | 4abfb8a2a435 |
children | 1e3c12d772eb |
comparison
equal
deleted
inserted
replaced
795:d4083ac09b5d | 796:75ace7af8212 |
---|---|
39 #define DECOINFO_STRUCT_MAX_STOPS 50 | 39 #define DECOINFO_STRUCT_MAX_STOPS 50 |
40 | 40 |
41 #define false 0 | 41 #define false 0 |
42 #define true 1 | 42 #define true 1 |
43 | 43 |
44 #define EXT_INTERFACE_SENSOR_CNT (5u) /* 5 sensors may be connected to the external interface */ | 44 #define EXT_INTERFACE_SENSOR_CNT (8u) /* 1 MUX + 7 sensors may be connected to the external interface (1 MUX + 3 ADC + 4 UART) */ |
45 | 45 #define EXT_INTERFACE_MUX_OFFSET (3u) /* the sensor struct starts with 3 ADC sensors */ |
46 | 46 |
47 /* Helper structs ------------------------------------------------------------*/ | 47 /* Helper structs ------------------------------------------------------------*/ |
48 | 48 |
49 //struct SGas | 49 //struct SGas |
50 //contains gasinfos of single gas for deco calculation | 50 //contains gasinfos of single gas for deco calculation |
431 SENSOR_NONE, | 431 SENSOR_NONE, |
432 SENSOR_SEARCH, | 432 SENSOR_SEARCH, |
433 SENSOR_OPTIC, | 433 SENSOR_OPTIC, |
434 SENSOR_ANALOG, | 434 SENSOR_ANALOG, |
435 SENSOR_DIGO2, | 435 SENSOR_DIGO2, |
436 SENSOR_DIGO2M, | |
436 SENSOR_SENTINEL, | 437 SENSOR_SENTINEL, |
437 SENSOR_TYPE_O2_END, | 438 SENSOR_TYPE_O2_END, |
438 SENSOR_CO2, | 439 SENSOR_CO2, |
439 SENSOR_MUX, | 440 SENSOR_MUX, |
440 SENSOR_END | 441 SENSOR_END |