70 lines
1.9 KiB
C
70 lines
1.9 KiB
C
// Generator version : v3.1
|
|
// DBC filename : CCU.dbc
|
|
#include "vector__xxx_candb-binutil.h"
|
|
|
|
// DBC file version
|
|
#if (VER_CANDB_MAJ != (0U)) || (VER_CANDB_MIN != (0U))
|
|
#error The VECTOR__XXX_CANDB binutil source file has inconsistency with core dbc lib!
|
|
#endif
|
|
|
|
#ifdef __DEF_VECTOR__XXX_CANDB__
|
|
|
|
vector__xxx_candb_rx_t vector__xxx_candb_rx;
|
|
|
|
vector__xxx_candb_tx_t vector__xxx_candb_tx;
|
|
|
|
#endif // __DEF_VECTOR__XXX_CANDB__
|
|
|
|
uint32_t vector__xxx_candb_Receive(vector__xxx_candb_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_)
|
|
{
|
|
uint32_t recid = 0;
|
|
if ((_id >= 0x310U) && (_id < 0x316U)) {
|
|
if ((_id >= 0x310U) && (_id < 0x313U)) {
|
|
if (_id == 0x310U) {
|
|
recid = Unpack_CCU_HVC_Req_Msg_candb(&(_m->CCU_HVC_Req_Msg), _d, dlc_);
|
|
} else {
|
|
if (_id == 0x311U) {
|
|
recid = Unpack_CCU_Stat1_candb(&(_m->CCU_Stat1), _d, dlc_);
|
|
} else if (_id == 0x312U) {
|
|
recid = Unpack_CCU_Stat2_candb(&(_m->CCU_Stat2), _d, dlc_);
|
|
}
|
|
}
|
|
} else {
|
|
if (_id == 0x313U) {
|
|
recid = Unpack_CCU_Requests_candb(&(_m->CCU_Requests), _d, dlc_);
|
|
} else {
|
|
if (_id == 0x314U) {
|
|
recid = Unpack_CCU_Stat3_candb(&(_m->CCU_Stat3), _d, dlc_);
|
|
} else if (_id == 0x315U) {
|
|
recid = Unpack_CCU_VCU_Msg1_candb(&(_m->CCU_VCU_Msg1), _d, dlc_);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if ((_id >= 0x316U) && (_id < 0x501U)) {
|
|
if (_id == 0x316U) {
|
|
recid = Unpack_CCU_VCU_Msg2_candb(&(_m->CCU_VCU_Msg2), _d, dlc_);
|
|
} else {
|
|
if (_id == 0x380U) {
|
|
recid = Unpack_CCU_Msg1_candb(&(_m->CCU_Msg1), _d, dlc_);
|
|
} else if (_id == 0x4FEU) {
|
|
recid = Unpack_CCU_Errors_candb(&(_m->CCU_Errors), _d, dlc_);
|
|
}
|
|
}
|
|
} else {
|
|
if (_id == 0x501U) {
|
|
recid = Unpack_CCU_Msg3_candb(&(_m->CCU_Msg3), _d, dlc_);
|
|
} else {
|
|
if (_id == 0x7BBU) {
|
|
recid = Unpack_Diag_From_CCU_candb(&(_m->Diag_From_CCU), _d, dlc_);
|
|
} else if (_id == 0x18FFF200U) {
|
|
recid = Unpack_CCU_AC_Ctrl_candb(&(_m->CCU_AC_Ctrl), _d, dlc_);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return recid;
|
|
}
|
|
|