diff --git a/can_parser_types.h b/can_parser_types.h index e84edcb..7d7fe8f 100644 --- a/can_parser_types.h +++ b/can_parser_types.h @@ -1144,3 +1144,68 @@ typedef struct }; }; } can_mswi19_mcs_msg_t; + +typedef struct { + uint32_t id; + uint8_t dlc; + union { + uint8_t raw[8]; + can_generic_state_msg_t can_generic_state; + can_generic_generic_msg_t can_generic_generic; + can_mic19_state_msg_t can_mic19_state; + can_mic19_motor_msg_t can_mic19_motor; + can_mic19_pumps_msg_t can_mic19_pumps; + can_mic19_mppts_msg_t can_mic19_mppts; + can_mic19_mcs_msg_t can_mic19_mcs; + can_mic19_mde_msg_t can_mic19_mde; + can_mde22_state_msg_t can_mde22_state; + can_mde22_steeringbat_measurements_msg_t can_mde22_steeringbat_measurements; + can_mvc19_1_state_msg_t can_mvc19_1_state; + can_mvc19_2_state_msg_t can_mvc19_2_state; + can_mcc19_1_state_msg_t can_mcc19_1_state; + can_mcc19_1_measurements_msg_t can_mcc19_1_measurements; + can_mcc19_2_state_msg_t can_mcc19_2_state; + can_mcc19_2_measurements_msg_t can_mcc19_2_measurements; + can_mcc19_3_state_msg_t can_mcc19_3_state; + can_mcc19_3_measurements_msg_t can_mcc19_3_measurements; + can_mcc19_4_state_msg_t can_mcc19_4_state; + can_mcc19_4_measurements_msg_t can_mcc19_4_measurements; + can_mcc19_5_state_msg_t can_mcc19_5_state; + can_mcc19_5_measurements_msg_t can_mcc19_5_measurements; + can_mcc19_6_state_msg_t can_mcc19_6_state; + can_mcc19_6_measurements_msg_t can_mcc19_6_measurements; + can_mcb19_1_state_msg_t can_mcb19_1_state; + can_mcb19_1_measurements_msg_t can_mcb19_1_measurements; + can_mcb19_2_state_msg_t can_mcb19_2_state; + can_mcb19_2_measurements_msg_t can_mcb19_2_measurements; + can_mac22_state_msg_t can_mac22_state; + can_mac22_contactor_msg_t can_mac22_contactor; + can_mam19_state_msg_t can_mam19_state; + can_mam19_motor_msg_t can_mam19_motor; + can_mam19_contactor_msg_t can_mam19_contactor; + can_mab19_state_msg_t can_mab19_state; + can_mab19_pumps_msg_t can_mab19_pumps; + can_msc19_1_state_msg_t can_msc19_1_state; + can_msc19_1_adc_msg_t can_msc19_1_adc; + can_msc19_2_state_msg_t can_msc19_2_state; + can_msc19_2_adc_msg_t can_msc19_2_adc; + can_msc19_3_state_msg_t can_msc19_3_state; + can_msc19_3_adc_msg_t can_msc19_3_adc; + can_msc19_4_state_msg_t can_msc19_4_state; + can_msc19_4_adc_msg_t can_msc19_4_adc; + can_msc19_5_state_msg_t can_msc19_5_state; + can_msc19_5_adc_msg_t can_msc19_5_adc; + can_mcs19_state_msg_t can_mcs19_state; + can_mcs19_start_stages_msg_t can_mcs19_start_stages; + can_mcs19_bat_msg_t can_mcs19_bat; + can_mcs19_cap_msg_t can_mcs19_cap; + can_mt19_state_msg_t can_mt19_state; + can_mt19_rpm_msg_t can_mt19_rpm; + can_mswi19_state_msg_t can_mswi19_state; + can_mswi19_motor_msg_t can_mswi19_motor; + can_mswi19_pumps_msg_t can_mswi19_pumps; + can_mswi19_mppts_msg_t can_mswi19_mppts; + can_mswi19_mcs_msg_t can_mswi19_mcs; + }; +} can_msg_t; + diff --git a/can_parser_types.h.mako b/can_parser_types.h.mako index 7d2ba06..965a370 100644 --- a/can_parser_types.h.mako +++ b/can_parser_types.h.mako @@ -48,3 +48,17 @@ typedef struct } can_${module["name"].lower()}_${topic["name"].lower()}_msg_t; %endfor %endfor + +typedef struct { + uint32_t id; + uint8_t dlc; + union { + uint8_t raw[8]; +%for module in db["modules"]: +%for topic in module["topics"]: + can_${module["name"].lower()}_${topic["name"].lower()}_msg_t can_${module["name"].lower()}_${topic["name"].lower()}; +%endfor +%endfor + }; +} can_msg_t; +