42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
// Generator version : v3.1
|
|
// DBC filename : CCU.dbc
|
|
#include "lb_psilcu_candb-binutil.h"
|
|
|
|
// DBC file version
|
|
#if (VER_CANDB_MAJ != (0U)) || (VER_CANDB_MIN != (0U))
|
|
#error The LB_PSILCU_CANDB binutil source file has inconsistency with core dbc lib!
|
|
#endif
|
|
|
|
#ifdef __DEF_LB_PSILCU_CANDB__
|
|
|
|
lb_psilcu_candb_rx_t lb_psilcu_candb_rx;
|
|
|
|
lb_psilcu_candb_tx_t lb_psilcu_candb_tx;
|
|
|
|
#endif // __DEF_LB_PSILCU_CANDB__
|
|
|
|
uint32_t lb_psilcu_candb_Receive(lb_psilcu_candb_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_)
|
|
{
|
|
uint32_t recid = 0;
|
|
if ((_id >= 0x23AU) && (_id < 0x5A6U)) {
|
|
if (_id == 0x23AU) {
|
|
recid = Unpack_BCM_StyleCmd1_candb(&(_m->BCM_StyleCmd1), _d, dlc_);
|
|
} else if (_id == 0x51AU) {
|
|
recid = Unpack_VEH_VIN_candb(&(_m->VEH_VIN), _d, dlc_);
|
|
}
|
|
} else {
|
|
if (_id == 0x5A6U) {
|
|
recid = Unpack_BCM_StyleCmd2_candb(&(_m->BCM_StyleCmd2), _d, dlc_);
|
|
} else {
|
|
if (_id == 0x5A7U) {
|
|
recid = Unpack_BCM_StyleCmd3_candb(&(_m->BCM_StyleCmd3), _d, dlc_);
|
|
} else if (_id == 0x787U) {
|
|
recid = Unpack_Diag_To_LB_pSilCU_candb(&(_m->Diag_To_LB_pSilCU), _d, dlc_);
|
|
}
|
|
}
|
|
}
|
|
|
|
return recid;
|
|
}
|
|
|