35 #ifndef _DBW_MKZ_CAN_DISPATCH_H 36 #define _DBW_MKZ_CAN_DISPATCH_H 42 #pragma pack(push, 1) // Pack structures to a single byte 165 uint8_t turn_signal :2;
166 uint8_t head_light_hi :2;
167 uint8_t wiper_front :4;
168 uint8_t light_ambient :3;
169 uint8_t btn_cc_on :1;
170 uint8_t btn_cc_off :1;
171 uint8_t btn_cc_res :1;
172 uint8_t btn_cc_cncl :1;
173 uint8_t btn_cc_res_inc :1;
174 uint8_t btn_cc_on_off :1;
175 uint8_t btn_cc_res_cncl :1;
176 uint8_t btn_cc_set_inc :1;
177 uint8_t btn_cc_set_dec :1;
178 uint8_t btn_cc_gap_inc :1;
179 uint8_t btn_cc_gap_dec :1;
180 uint8_t btn_la_on_off :1;
182 uint8_t door_driver :1;
183 uint8_t door_passenger :1;
184 uint8_t door_rear_left :1;
185 uint8_t door_rear_right :1;
186 uint8_t door_hood :1;
187 uint8_t door_trunk :1;
188 uint8_t pasngr_detect :1;
189 uint8_t pasngr_airbag :1;
190 uint8_t buckle_driver :1;
191 uint8_t buckle_pasngr :1;
192 uint8_t btn_ld_ok :1;
193 uint8_t btn_ld_up :1;
194 uint8_t btn_ld_down :1;
195 uint8_t btn_ld_left :1;
196 uint8_t btn_ld_right :1;
197 uint8_t btn_cc_res_dec :1;
200 uint8_t btn_rd_ok :1;
201 uint8_t btn_rd_up :1;
202 uint8_t btn_rd_down :1;
203 uint8_t btn_rd_left :1;
204 uint8_t btn_rd_right :1;
205 uint8_t btn_media :1;
206 uint8_t btn_vol_inc :1;
207 uint8_t btn_vol_dec :1;
209 uint8_t btn_speak :1;
212 uint8_t btn_call_start :1;
213 uint8_t btn_call_end :1;
214 uint8_t outside_air_temp :8;
236 int32_t latitude :31;
237 int32_t lat_valid :1;
238 int32_t longitude :31;
239 int32_t long_valid :1;
245 uint8_t utc_month :4;
249 uint8_t utc_hours :5;
251 uint8_t utc_minutes :6;
253 uint8_t utc_seconds :6;
255 uint8_t compass_dir :4;
288 int16_t fuel_level :11;
290 uint16_t battery_hev :10;
291 uint8_t battery_12v :8;
292 uint32_t odometer :24;
297 uint8_t l_cta_alert :1;
298 uint8_t l_cta_enabled :1;
299 uint8_t l_blis_alert :1;
300 uint8_t l_blis_enabled :1;
301 uint8_t r_cta_alert :1;
302 uint8_t r_cta_enabled :1;
303 uint8_t r_blis_alert :1;
304 uint8_t r_blis_enabled :1;
318 uint8_t sonar_enabled :1;
319 uint8_t sonar_fault :1;
323 uint16_t brake_torque_request :12;
325 uint8_t stationary :1;
326 uint16_t brake_torque_actual :12;
328 uint8_t parking_brake :2;
329 int16_t wheel_torque :14;
331 int16_t accel_over_ground_est :10;
332 uint8_t abs_active :1;
333 uint8_t abs_enabled :1;
334 uint8_t stab_active :1;
335 uint8_t stab_enabled :1;
336 uint8_t trac_active :1;
337 uint8_t trac_enabled :1;
341 uint16_t engine_rpm :16;
342 uint16_t throttle_pc :10;
345 int8_t throttle_rate :8;
349 int16_t batt_curr :14;
354 uint8_t decel_src :2;
356 uint8_t fcw_enabled :1;
357 uint8_t fcw_active :1;
358 uint8_t aeb_enabled :1;
359 uint8_t aeb_precharge :1;
360 uint8_t aeb_braking :1;
362 uint8_t acc_enabled :1;
363 uint8_t acc_braking :1;
476 #define BUILD_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) 534 #pragma pack(pop) // Undo packing 538 #endif // _DBW_MKZ_CAN_DISPATCH_H
static void dispatchAssertSizes()
#define BUILD_ASSERT(cond)