// Generator version : v3.1 // DBC filename : CCU.dbc #include "ethsw_candb-binutil.h" // DBC file version #if (VER_CANDB_MAJ != (0U)) || (VER_CANDB_MIN != (0U)) #error The ETHSW_CANDB binutil source file has inconsistency with core dbc lib! #endif #ifdef __DEF_ETHSW_CANDB__ ethsw_candb_rx_t ethsw_candb_rx; #endif // __DEF_ETHSW_CANDB__ uint32_t ethsw_candb_Receive(ethsw_candb_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_) { uint32_t recid = 0; if ((_id >= 0x280U) && (_id < 0x314U)) { if (_id == 0x280U) { recid = Unpack_BCM_VEH_STATE_candb(&(_m->BCM_VEH_STATE), _d, dlc_); } else { if (_id == 0x282U) { recid = Unpack_BCM_Veh_State2_candb(&(_m->BCM_Veh_State2), _d, dlc_); } else if (_id == 0x312U) { recid = Unpack_CCU_Stat2_candb(&(_m->CCU_Stat2), _d, dlc_); } } } else { if ((_id >= 0x314U) && (_id < 0x589U)) { if (_id == 0x314U) { recid = Unpack_CCU_Stat3_candb(&(_m->CCU_Stat3), _d, dlc_); } else if (_id == 0x51AU) { recid = Unpack_VEH_VIN_candb(&(_m->VEH_VIN), _d, dlc_); } } else { if (_id == 0x589U) { recid = Unpack_DW_STATE_candb(&(_m->DW_STATE), _d, dlc_); } else if (_id == 0x7DFU) { recid = Unpack_Diag_Functional_candb(&(_m->Diag_Functional), _d, dlc_); } } } return recid; }