annotate Common/Inc/data_exchange.h @ 810:e6827fcd7604

Only jump to Sensor view during charging if sensors are connected: In the past it could happen that the charger view was replaced by the sensor view which was not displaying values because no sensors were connected => no added value in performing the switch. In the new version the automatic jump to the sensor view will only be performed if sennsors are connected.
author Ideenmodellierer
date Sun, 27 Aug 2023 20:55:57 +0200
parents aa6006975e76
children 061174d88af9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2 /// -*- coding: UTF-8 -*-
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
3 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
4 /// \file Common/Inc/data_exchange.h
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
5 /// \brief Data exchange between RTE and Discovery processors.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
6 /// \author Heinrichs Weikamp
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
7 /// \date 2018
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
8 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
9 /// $Id$
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
10 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
12 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
13 /// This program is free software: you can redistribute it and/or modify
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
14 /// it under the terms of the GNU General Public License as published by
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
15 /// the Free Software Foundation, either version 3 of the License, or
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
16 /// (at your option) any later version.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
17 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
18 /// This program is distributed in the hope that it will be useful,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
21 /// GNU General Public License for more details.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
22 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
23 /// You should have received a copy of the GNU General Public License
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
25 //////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
26
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
27 #ifndef DATA_EXCHANGE_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
28 #define DATA_EXCHANGE_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
29
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
30 #include "data_central.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
31 #include "settings.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
32 #include "stm32f4xx_hal.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
33
691
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
34 /* Command definitions for control of external interface */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
35 /* 1st nibble binary on/off states */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
36 /* 2nd nibble UART protocol selection */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
37 /* 3rd nibble reserve */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
38 /* 4th nibble command channel */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
39 #define EXT_INTERFACE_33V_ON (0x8000u) /* Bit set to enable 3.3V power interface */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
40 #define EXT_INTERFACE_ADC_ON (0x4000u) /* Bit set to enable ADC conversion */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
41 #define EXT_INTERFACE_UART_MASK (0x0700u) /* Reserve 3 bits for UART protocol selection */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
42 #define EXT_INTERFACE_UART_CO2 (0x0100u) /* Activate protocol for CO2 sensor */
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
43 #define EXT_INTERFACE_UART_SENTINEL (0x0200u) /* Activate Sentinel Backup monitor protocol */
702
6d7c812fc173 Added digital o2 sensor to settings and data exchange:
Ideenmodellierer
parents: 691
diff changeset
44 #define EXT_INTERFACE_UART_O2 (0x0400u) /* Activate digital o2 sensor protocol (DiveO2) */
6d7c812fc173 Added digital o2 sensor to settings and data exchange:
Ideenmodellierer
parents: 691
diff changeset
45
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
46 /* Command subset */
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
47 #define EXT_INTERFACE_AUTODETECT (0x0001u) /* Start auto detection of connected sensors */
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
48 #define EXT_INTERFACE_COPY_SENSORMAP (0x0002u) /* Use the sensor map provided by master for internal operations */
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
49 #define EXT_INTERFACE_CO2_CALIB (0x0010u) /* Request calibration of CO2Sensor */
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
50 #define EXT_INTERFACE_O2_INDICATE (0x0020u) /* Request LED to blink*/
702
6d7c812fc173 Added digital o2 sensor to settings and data exchange:
Ideenmodellierer
parents: 691
diff changeset
51
691
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
52 #define DATA_BUFFER_ADC (0x01u)
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
53 #define DATA_BUFFER_CO2 (0x02u)
662
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
54
714
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
55 #define EXTIF_SENSOR_INFO_SIZE (32u) /* size of data array reserved for extended sensor data from external interface */
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
56
756
6de83d8205a0 Added visualization of CO2 during dive:
Ideenmodellierer
parents: 728
diff changeset
57 #define CO2_WARNING_LEVEL_PPM (2000u) /* Early warning to indicate unexpected high co2 concentration (yellow) */
6de83d8205a0 Added visualization of CO2 during dive:
Ideenmodellierer
parents: 728
diff changeset
58 #define CO2_ALARM_LEVEL_PPM (5000u) /* starting by this level CO2 has a negative impact on health (long exposure) */
6de83d8205a0 Added visualization of CO2 during dive:
Ideenmodellierer
parents: 728
diff changeset
59
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
60 enum MODE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
61 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
62 MODE_SURFACE = 0,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
63 MODE_DIVE = 1,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
64 MODE_CALIB = 2,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
65 MODE_SLEEP = 3,
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
66 MODE_SHUTDOWN = 4,
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
67 MODE_ENDDIVE = 5,
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
68 MODE_BOOT = 6,
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
69 MODE_CHARGESTART = 7,
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
70 MODE_TEST = 8,
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
71 MODE_POWERUP = 9,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
72 };
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
73
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
74 enum ACCIDENT_BITS
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
75 {
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
76 ACCIDENT_DECOSTOP = 0x01,
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
77 ACCIDENT_CNS = 0x02,
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
78 ACCIDENT_CNSLVL2 = 0x02 + 0x04,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
79 ACCIDENT_SPARE2 = 0x08,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
80 ACCIDENT_SPARE3 = 0x10,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
81 ACCIDENT_SPARE4 = 0x20,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
82 ACCIDENT_SPARE5 = 0x40,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
83 ACCIDENT_SPARE6 = 0x80
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
84 };
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
85
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
86
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
87 typedef struct{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
88 uint8_t button:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
89 uint8_t date:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
90 uint8_t time:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
91 uint8_t clearDeco:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
92 uint8_t compass:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
93 uint8_t devicedata:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
94 uint8_t batterygauge:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
95 uint8_t accident:1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
96 } confirmbit8_t;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
97
555
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
98 typedef struct{
559
84a4e1200726 Check if HW evaluation was performed:
Ideenmodellierer
parents: 555
diff changeset
99 uint8_t checkCompass:1;
84a4e1200726 Check if HW evaluation was performed:
Ideenmodellierer
parents: 555
diff changeset
100 uint8_t checkADC:1;
84a4e1200726 Check if HW evaluation was performed:
Ideenmodellierer
parents: 555
diff changeset
101 uint8_t reserve:5;
555
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
102 uint8_t extADC:1;
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
103 uint8_t compass:8;
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
104 } hw_Info_t;
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
105
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
106
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
107 #define CRBUTTON (0x01)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
108 #define CRDATE (0x02)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
109 #define CRTIME (0x04)
662
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
110 #define CRCLEARDECO (0x08)
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
111 #define CRCOMPASS (0x10)
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
112 #define CRDEVICEDATA (0x20)
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
113 #define CRBATTERY (0x40)
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
114 #define CRACCIDENT (0x80)
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
115
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
116 typedef union{
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
117 confirmbit8_t ub;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
118 uint8_t uw;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
119 } confirmbit8_Type;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
120
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
121 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
122 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
123 uint8_t checkCode[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
124
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
125 } SDataExchangeHeader;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
126
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
127 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
128 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
129 uint8_t checkCode[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
130
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
131 } SDataExchangeFooter;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
132
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
133 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
134 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
135 SDataExchangeHeader header;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
136 SLifeData lifeData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
137 } SDataExchangeMasterToSlave;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
138
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
139 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
140 {
714
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
141 int32_t temperature;
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
142 uint32_t status;
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
143 uint64_t sensorId;
723
9b9ed5459d57 DigO2 added raw data request:
Ideenmodellierer
parents: 714
diff changeset
144 int32_t intensity;
9b9ed5459d57 DigO2 added raw data request:
Ideenmodellierer
parents: 714
diff changeset
145 int32_t ambient;
9b9ed5459d57 DigO2 added raw data request:
Ideenmodellierer
parents: 714
diff changeset
146 int32_t pressure;
9b9ed5459d57 DigO2 added raw data request:
Ideenmodellierer
parents: 714
diff changeset
147 int32_t humidity;
714
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
148 } SSensorDataDiveO2;
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
149
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
150 typedef struct
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
151 {
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
152 //pressure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
153 float temperature;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
154 float pressure_mbar;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
155 float surface_mbar;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
156 float ascent_rate_meter_per_min;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
157 //toxic
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
158 float otu;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
159 float cns;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
160 uint16_t desaturation_time_minutes;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
161 uint16_t no_fly_time_minutes;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
162 //tisssue
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
163 float tissue_nitrogen_bar[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
164 float tissue_helium_bar[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
165 //maxcrushingpressure
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
166 float max_crushing_pressure_he[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
167 float max_crushing_pressure_n2[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
168 float adjusted_critical_radius_he[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
169 float adjusted_critical_radius_n2[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
170 // Compass
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
171 float compass_heading;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
172 float compass_roll;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
173 float compass_pitch;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
174 int16_t compass_DX_f;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
175 int16_t compass_DY_f;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
176 int16_t compass_DZ_f;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
177 //time
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
178 uint16_t counterSecondsShallowDepth;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
179 uint32_t localtime_rtc_tr;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
180 uint32_t localtime_rtc_dr;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
181 uint32_t divetime_seconds;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
182 uint32_t surfacetime_seconds;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
183 uint32_t dive_time_seconds_without_surface_time;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
184 //battery /* take care of uint8_t count to be in multiplies of 4 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
185 float battery_voltage;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
186 float battery_charge;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
187 //ambient light
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
188 uint16_t ambient_light_level;
555
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
189 uint16_t SPARE_ALIGN32;
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
190 float extADC_voltage[3];
662
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
191 uint16_t CO2_ppm;
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
192 uint16_t CO2_signalStrength;
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
193 uint16_t externalInterface_CmdAnswer;
714
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
194 uint8_t alignmentdummy;
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
195 uint8_t externalInterface_SensorID; /* Used to identify how to read the sensor data array */
045ff7800501 Added customizable data area for specific sensor data:
Ideenmodellierer
parents: 702
diff changeset
196 uint8_t sensor_data[EXTIF_SENSOR_INFO_SIZE]; /* sensor specific data array. Content may vary from sensor type to sensor type */
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
197 uint8_t sensor_map[EXT_INTERFACE_SENSOR_CNT];
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
198 uint8_t SPARE_OldWireless[5]; /* 64 - 12 for extADC - 6 for CO2 - 34 for sensor (+dummmy) - sensor map*/
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
199 // PIC data
763
aa6006975e76 increase HAL_Delay to 10ms for cold-start-button reset
heinrichsweikamp
parents: 756
diff changeset
200 uint8_t button_setting[4]; /* see dependency to SlaveData->buttonPICdata */
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
201 uint8_t SPARE1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
202 //debug
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
203 uint32_t pressure_uTick;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
204 uint32_t compass_uTick;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
205
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
206 } SExchangeData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
207
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
208 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
209 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
210 uint8_t VPMconservatism;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
211 SGas actualGas;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
212
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
213 int8_t offsetPressureSensor_mbar;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
214 int8_t offsetTemperatureSensor_centiDegree;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
215
662
1b995079c045 PSCR Mode
heinrichs weikamp
parents: 559
diff changeset
216 uint16_t externalInterface_Cmd;
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
217
728
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
218 uint8_t externalInterface_SensorMap[EXT_INTERFACE_SENSOR_CNT];
5143e927219f Added sensor map to Firmware <=> RTE inferface:
Ideenmodellierer
parents: 723
diff changeset
219
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
220 float UNUSED1[16-1];//VPM_adjusted_critical_radius_he[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
221 float UNUSED2[16];//VPM_adjusted_critical_radius_n2[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
222 float UNUSED3[16];//VPM_adjusted_crushing_pressure_he[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
223 float UNUSED4[16];//VPM_adjusted_crushing_pressure_n2[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
224 float UNUSED5[16];//VPM_initial_allowable_gradient_he[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
225 float UNUSED6[16];//VPM_initial_allowable_gradient_n2[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
226 float UNUSED7[16];//VPM_max_actual_gradient[16];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
227
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
228 RTC_TimeTypeDef newTime;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
229 RTC_DateTypeDef newDate;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
230
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
231 float ambient_pressure_mbar_ceiling;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
232 float descend_rate_bar_per_minute;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
233 float ascend_rate_bar_per_minute;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
234
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
235 uint16_t timeoutDiveReachedZeroDepth;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
236 uint16_t divetimeToCreateLogbook;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
237
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
238 uint8_t buttonResponsiveness[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
239
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
240 SDevice DeviceData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
241
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
242 float newBatteryGaugePercentageFloat;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
243
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
244 } SReceiveData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
245
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
246
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
247 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
248 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
249 SDataExchangeHeader header;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
250
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
251 uint8_t mode;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
252 uint8_t power_on_reset;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
253 uint8_t RTE_VERSION_high;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
254 uint8_t RTE_VERSION_low;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
255
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
256 uint8_t chargeStatus;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
257 uint8_t boolPICdata;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
258 confirmbit8_Type confirmRequest; // confirmbit8_Type
691
52d68cf9994c Improvment external interface usage:
Ideenmodellierer
parents: 662
diff changeset
259 uint8_t boolADCO2Data;
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
260
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
261 uint8_t boolPressureData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
262 uint8_t boolCompassData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
263 uint8_t boolTisssueData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
264 uint8_t boolCrushingData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
265
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
266 uint8_t boolToxicData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
267 uint8_t boolTimeData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
268 uint8_t boolBatteryData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
269 uint8_t boolAmbientLightData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
270
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
271 uint8_t accidentFlags;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
272 uint8_t sensorErrors;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
273 uint8_t spare2;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
274 uint8_t spare3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
275
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
276 SExchangeData data[2];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
277 SDataExchangeFooter footer;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
278 uint8_t CRC_feature_by_SPI[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
279 } SDataExchangeSlaveToMaster;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
280
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
281
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
282 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
283 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
284 SDataExchangeHeader header;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
285
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
286 uint8_t mode;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
287 uint8_t power_on_reset;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
288 uint8_t RTE_VERSION_high;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
289 uint8_t RTE_VERSION_low;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
290
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
291 uint8_t chargeStatus;
555
573a2bc796c8 Added HW_Info to Discovery <=> RTE data exchange:
Ideenmodellierer
parents: 51
diff changeset
292 hw_Info_t hw_Info;
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
293 uint8_t spare1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
294
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
295 uint8_t boolDeviceData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
296 uint8_t boolVpmRepetitiveDataValid;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
297 uint8_t bool3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
298 uint8_t bool4;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
299
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
300 uint8_t spare1_1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
301 uint8_t spare1_2;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
302 uint8_t spare1_3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
303 uint8_t spare1_4;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
304
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
305 uint8_t spare2_1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
306 uint8_t spare2_2;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
307 uint8_t spare2_3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
308 uint8_t spare2_4;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
309
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
310 SDevice DeviceData[2];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
311 SVpmRepetitiveData VpmRepetitiveData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
312
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
313 uint8_t arraySizeOfMinimumSExChangeDate[(2 * sizeof(SExchangeData)) - ((2 * sizeof(SDevice)) + sizeof(SVpmRepetitiveData))];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
314 SDataExchangeFooter footer;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
315 uint8_t CRC_feature_by_SPI[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
316 } SDataExchangeSlaveToMasterDeviceData;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
317
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
318
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
319 typedef struct
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
320 {
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
321 SDataExchangeHeader header;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
322
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
323 uint8_t mode;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
324 uint8_t getDeviceDataNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
325 uint8_t diveModeInfo;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
326 uint8_t setEndDive;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
327
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
328 uint8_t bool4;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
329 uint8_t setButtonSensitivityNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
330 uint8_t setDateNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
331 uint8_t setTimeNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
332
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
333 uint8_t calibrateCompassNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
334 uint8_t clearDecoNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
335 uint8_t setBatteryGaugeNow;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
336 uint8_t bool9;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
337
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
338 uint8_t revisionHardware;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
339 uint8_t revisionCRCx0x7A;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
340 uint8_t spare1_3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
341 uint8_t spare1_4;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
342
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
343 uint8_t setAccidentFlag;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
344 uint8_t spare2_1;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
345 uint8_t spare2_2;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
346 uint8_t spare2_3;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
347
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
348 SReceiveData data;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
349 uint8_t arraySizeOfMinimumSExChangeDate[(2 * sizeof(SExchangeData)) - sizeof(SReceiveData)];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
350 SDataExchangeFooter footer;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
351 uint8_t CRC_feature_by_SPI[4];
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
352 } SDataReceiveFromMaster;
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
353
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
354
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
355 /* Size of Transmission buffer */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
356 #define EXCHANGE_BUFFERSIZE (sizeof(SDataExchangeSlaveToMaster) - 2)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
357 #define EXCHANGE_BUFFERSIZE2 (sizeof(SDataReceiveFromMaster) - 2)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
358 // header: 5
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
359 // mode+bool: 5
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
360 // data 552 ( 69 * float/4 * 2 )
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
361 // footer: 4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
362 // ______________
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
363 // SUM 566
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
364 // CRC_feature does not count into BUFFERSIZE!
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
365
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
366 //(COUNTOF(struct SDataExchangeSlaveToMaster) + 1)
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
367
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
368 /* Exported macro ------------------------------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
369 //#define COUNTOF(__BUFFER__) (sizeof(__BUFFER__) / sizeof(*(__BUFFER__)))
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
370
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
371 #endif /* DATA_EXCHANGE_H */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
372