comparison Common/Inc/data_exchange.h @ 555:573a2bc796c8

Added HW_Info to Discovery <=> RTE data exchange: The information if an external ADC is supported and the type of the compass is forwarded to the Firmware software. This is especially needed to enable the menu structure to support calibration of external sensors
author Ideenmodellierer
date Thu, 12 Nov 2020 19:48:28 +0100
parents 8f8ea3a32e82
children 84a4e1200726
comparison
equal deleted inserted replaced
554:3328189786e7 555:573a2bc796c8
65 uint8_t compass:1; 65 uint8_t compass:1;
66 uint8_t devicedata:1; 66 uint8_t devicedata:1;
67 uint8_t batterygauge:1; 67 uint8_t batterygauge:1;
68 uint8_t accident:1; 68 uint8_t accident:1;
69 } confirmbit8_t; 69 } confirmbit8_t;
70
71 typedef struct{
72 uint8_t reserve:7;
73 uint8_t extADC:1;
74 uint8_t compass:8;
75 } hw_Info_t;
76
70 77
71 #define CRBUTTON (0x01) 78 #define CRBUTTON (0x01)
72 #define CRDATE (0x02) 79 #define CRDATE (0x02)
73 #define CRTIME (0x04) 80 #define CRTIME (0x04)
74 #define CRCLEARDECO (0x08) 81 #define CRCLEARDECO (0x08)
135 //battery /* take care of uint8_t count to be in multiplies of 4 */ 142 //battery /* take care of uint8_t count to be in multiplies of 4 */
136 float battery_voltage; 143 float battery_voltage;
137 float battery_charge; 144 float battery_charge;
138 //ambient light 145 //ambient light
139 uint16_t ambient_light_level; 146 uint16_t ambient_light_level;
140 // wireless data 147 uint16_t SPARE_ALIGN32;
141 SDataWireless wireless_data[4]; 148 float extADC_voltage[3];
149 uint8_t SPARE_OldWireless[50]; /* 64 - 12 for extADC */
142 // PIC data 150 // PIC data
143 uint8_t button_setting[4]; /* see dependency to SLiveData->buttonPICdata */ 151 uint8_t button_setting[4]; /* see dependency to SLiveData->buttonPICdata */
144 uint8_t SPARE1; 152 uint8_t SPARE1;
145 //debug 153 //debug
146 uint32_t pressure_uTick; 154 uint32_t pressure_uTick;
229 uint8_t power_on_reset; 237 uint8_t power_on_reset;
230 uint8_t RTE_VERSION_high; 238 uint8_t RTE_VERSION_high;
231 uint8_t RTE_VERSION_low; 239 uint8_t RTE_VERSION_low;
232 240
233 uint8_t chargeStatus; 241 uint8_t chargeStatus;
242 hw_Info_t hw_Info;
234 uint8_t spare1; 243 uint8_t spare1;
235 uint8_t spare2;
236 uint8_t spare3;
237 244
238 uint8_t boolDeviceData; 245 uint8_t boolDeviceData;
239 uint8_t boolVpmRepetitiveDataValid; 246 uint8_t boolVpmRepetitiveDataValid;
240 uint8_t bool3; 247 uint8_t bool3;
241 uint8_t bool4; 248 uint8_t bool4;