HVAC_M7_CAN_MATRIX/butl/rbcu_candb-binutil.c

42 lines
1.0 KiB
C

// Generator version : v3.1
// DBC filename : CCU.dbc
#include "rbcu_candb-binutil.h"
// DBC file version
#if (VER_CANDB_MAJ != (0U)) || (VER_CANDB_MIN != (0U))
#error The RBCU_CANDB binutil source file has inconsistency with core dbc lib!
#endif
#ifdef __DEF_RBCU_CANDB__
rbcu_candb_rx_t rbcu_candb_rx;
rbcu_candb_tx_t rbcu_candb_tx;
#endif // __DEF_RBCU_CANDB__
uint32_t rbcu_candb_Receive(rbcu_candb_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_)
{
uint32_t recid = 0;
if ((_id >= 0x100U) && (_id < 0x50BU)) {
if (_id == 0x100U) {
recid = Unpack_ESC_04_candb(&(_m->ESC_04), _d, dlc_);
} else if (_id == 0x280U) {
recid = Unpack_BCM_VEH_STATE_candb(&(_m->BCM_VEH_STATE), _d, dlc_);
}
} else {
if (_id == 0x50BU) {
recid = Unpack_FIU_Cmd_candb(&(_m->FIU_Cmd), _d, dlc_);
} else {
if (_id == 0x51AU) {
recid = Unpack_VEH_VIN_candb(&(_m->VEH_VIN), _d, dlc_);
} else if (_id == 0x51EU) {
recid = Unpack_BCM_RunningBoards_candb(&(_m->BCM_RunningBoards), _d, dlc_);
}
}
}
return recid;
}