Добавлены Debug сообщения и перенесена память калибровок
This commit is contained in:
parent
5f1f111ae7
commit
a6d3bf2733
|
|
@ -177,20 +177,6 @@ SECTIONS
|
||||||
{
|
{
|
||||||
__itcm_start = .;
|
__itcm_start = .;
|
||||||
|
|
||||||
/* Начало .caldata */
|
|
||||||
__caldata_start = .;
|
|
||||||
KEEP(*(.caldata))
|
|
||||||
. = ALIGN(4);
|
|
||||||
|
|
||||||
/* Проверяем и резервируем 20K */
|
|
||||||
__caldata_actual_size = . - __caldata_start;
|
|
||||||
ASSERT(__caldata_actual_size <= 20K, "Ошибка: .caldata превышает 20K!");
|
|
||||||
|
|
||||||
/* Если данные меньше 20K, резервируем оставшееся пространство */
|
|
||||||
. = __caldata_start + 20K;
|
|
||||||
|
|
||||||
KEEP(*(.nvmdata))
|
|
||||||
|
|
||||||
__itcm_end = .;
|
__itcm_end = .;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} > ITCM
|
} > ITCM
|
||||||
|
|
@ -198,6 +184,20 @@ SECTIONS
|
||||||
.xcp_data(NOLOAD) :
|
.xcp_data(NOLOAD) :
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/* Начало .caldata */
|
||||||
|
__caldata_start = .;
|
||||||
|
KEEP(*(.caldata))
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
/* Проверяем и резервируем 20K */
|
||||||
|
__caldata_actual_size = . - __caldata_start;
|
||||||
|
ASSERT(__caldata_actual_size <= 20K, "Ошибка: .caldata превышает 20K!");
|
||||||
|
|
||||||
|
/* Если данные меньше 20K, резервируем оставшееся пространство */
|
||||||
|
. = __caldata_start + 20K;
|
||||||
|
|
||||||
|
KEEP(*(.nvmdata))
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
KEEP(*(.save_data))
|
KEEP(*(.save_data))
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@
|
||||||
#error The CCU_CANDB_DBG binutil source file has inconsistency with core dbc lib!
|
#error The CCU_CANDB_DBG binutil source file has inconsistency with core dbc lib!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ccu_candb_dbg_rx_t ccu_candb_dbg_rx;
|
||||||
|
ccu_candb_dbg_tx_t ccu_candb_dbg_tx;
|
||||||
|
|
||||||
#ifdef __DEF_CCU_CANDB_DBG__
|
#ifdef __DEF_CCU_CANDB_DBG__
|
||||||
|
|
||||||
ccu_candb_dbg_rx_t ccu_candb_dbg_rx;
|
ccu_candb_dbg_rx_t ccu_candb_dbg_rx;
|
||||||
|
|
|
||||||
|
|
@ -10,53 +10,56 @@ extern "C" {
|
||||||
|
|
||||||
#include "candb_dbg.h"
|
#include "candb_dbg.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct
|
||||||
dbg_Cmd_Act_Information_t dbg_Cmd_Act_Information;
|
{
|
||||||
XCP_CCU_RX_t XCP_CCU_RX;
|
dbg_Cmd_Act_Information_t dbg_Cmd_Act_Information;
|
||||||
|
XCP_CCU_RX_t XCP_CCU_RX;
|
||||||
} ccu_candb_dbg_rx_t;
|
} ccu_candb_dbg_rx_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
typedef struct {
|
{
|
||||||
dbg_Logic_State_t dbg_Logic_State;
|
dbg_Logic_State_t dbg_Logic_State;
|
||||||
dbg_Logic_KM_Status_t dbg_Logic_KM_Status;
|
dbg_Logic_KM_Status_t dbg_Logic_KM_Status;
|
||||||
dbg_Logic_Valve_t dbg_Logic_Valve;
|
dbg_Logic_Valve_t dbg_Logic_Valve;
|
||||||
dbg_Logic_Blower_t dbg_Logic_Blower;
|
dbg_Logic_Blower_t dbg_Logic_Blower;
|
||||||
dbg_Logic_Ac_t dbg_Logic_Ac;
|
dbg_Logic_Ac_t dbg_Logic_Ac;
|
||||||
dbg_Logic_Rec_t dbg_Logic_Rec;
|
dbg_Logic_Rec_t dbg_Logic_Rec;
|
||||||
dbg_DiffBlr_ValveOpen_t dbg_DiffBlr_ValveOpen;
|
dbg_DiffBlr_ValveOpen_t dbg_DiffBlr_ValveOpen;
|
||||||
dbg_Act0_t dbg_Act0;
|
dbg_Act0_t dbg_Act0;
|
||||||
dbg_Act1_t dbg_Act1;
|
dbg_Act1_t dbg_Act1;
|
||||||
dbg_Act2_t dbg_Act2;
|
dbg_Act2_t dbg_Act2;
|
||||||
dbg_Sen_Amb_t dbg_Sen_Amb;
|
dbg_Sen_Amb_t dbg_Sen_Amb;
|
||||||
dbg_Sen_0_t dbg_Sen_0;
|
dbg_PID_tune_t dbg_PID_tune;
|
||||||
dbg_CCU_IO_t dbg_CCU_IO;
|
dbg_Sen_0_t dbg_Sen_0;
|
||||||
dbg_CCU_Info_t dbg_CCU_Info;
|
dbg_CCU_IO_t dbg_CCU_IO;
|
||||||
dbg_Drs_t dbg_Drs;
|
dbg_CCU_Info_t dbg_CCU_Info;
|
||||||
dbg_Sen_Incar_t dbg_Sen_Incar;
|
dbg_Drs_t dbg_Drs;
|
||||||
dbg_Info_Act1_t dbg_Info_Act1;
|
dbg_Sen_Incar_t dbg_Sen_Incar;
|
||||||
dbg_Info_Act2_t dbg_Info_Act2;
|
dbg_Info_Act1_t dbg_Info_Act1;
|
||||||
dbg_Sen_Eva_t dbg_Sen_Eva;
|
dbg_Info_Act2_t dbg_Info_Act2;
|
||||||
dbg_Sen_Duct_t dbg_Sen_Duct;
|
dbg_Sen_Eva_t dbg_Sen_Eva;
|
||||||
dbg_Sen_Demist_t dbg_Sen_Demist;
|
dbg_Sen_Duct_t dbg_Sen_Duct;
|
||||||
dbg_LIN_AirQS_Stat_t dbg_LIN_AirQS_Stat;
|
dbg_Sen_Demist_t dbg_Sen_Demist;
|
||||||
dbg_LIN_Aroma_Stat_t dbg_LIN_Aroma_Stat;
|
dbg_LIN_AirQS_Stat_t dbg_LIN_AirQS_Stat;
|
||||||
dbg_LIN_Ionizer_Stat_t dbg_LIN_Ionizer_Stat;
|
dbg_LIN_Aroma_Stat_t dbg_LIN_Aroma_Stat;
|
||||||
dbg_LIN_eTXV_Stat_t dbg_LIN_eTXV_Stat;
|
dbg_LIN_Ionizer_Stat_t dbg_LIN_Ionizer_Stat;
|
||||||
dbg_LIN_DRS_Stat_t dbg_LIN_DRS_Stat;
|
dbg_LIN_eTXV_Stat_t dbg_LIN_eTXV_Stat;
|
||||||
dbg_Auto_AF_t dbg_Auto_AF;
|
dbg_LIN_DRS_Stat_t dbg_LIN_DRS_Stat;
|
||||||
dbg_Auto_Duct_t dbg_Auto_Duct;
|
dbg_Auto_AF_t dbg_Auto_AF;
|
||||||
dbg_Auto_Valve_Plus_t dbg_Auto_Valve_Plus;
|
dbg_Auto_Duct_t dbg_Auto_Duct;
|
||||||
XCP_CCU_TX_t XCP_CCU_TX;
|
dbg_Auto_Valve_Plus_t dbg_Auto_Valve_Plus;
|
||||||
dbg_Stat_PID_t dbg_stat_PID;
|
dbg_Act_calibration_error_t dbg_Act_calibration_error;
|
||||||
|
dbg_Act_calibration_t dbg_Act_calibration;
|
||||||
|
XCP_CCU_TX_t XCP_CCU_TX;
|
||||||
} ccu_candb_dbg_tx_t;
|
} ccu_candb_dbg_tx_t;
|
||||||
|
|
||||||
uint32_t ccu_candb_dbg_Receive(ccu_candb_dbg_rx_t *m, const uint8_t *d, uint32_t msgid, uint8_t dlc);
|
uint32_t ccu_candb_dbg_Receive(ccu_candb_dbg_rx_t* m, const uint8_t* d, uint32_t msgid, uint8_t dlc);
|
||||||
|
|
||||||
|
extern ccu_candb_dbg_rx_t ccu_candb_dbg_rx;
|
||||||
|
extern ccu_candb_dbg_tx_t ccu_candb_dbg_tx;
|
||||||
|
|
||||||
#ifdef __DEF_CCU_CANDB_DBG__
|
#ifdef __DEF_CCU_CANDB_DBG__
|
||||||
|
|
||||||
extern ccu_candb_dbg_rx_t ccu_candb_dbg_rx;
|
|
||||||
|
|
||||||
extern ccu_candb_dbg_tx_t ccu_candb_dbg_tx;
|
|
||||||
|
|
||||||
#endif // __DEF_CCU_CANDB_DBG__
|
#endif // __DEF_CCU_CANDB_DBG__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,16 +11,22 @@
|
||||||
|
|
||||||
vector__xxx_candb_dbg_rx_t vector__xxx_candb_dbg_rx;
|
vector__xxx_candb_dbg_rx_t vector__xxx_candb_dbg_rx;
|
||||||
|
|
||||||
|
vector__xxx_candb_dbg_tx_t vector__xxx_candb_dbg_tx;
|
||||||
|
|
||||||
#endif // __DEF_VECTOR__XXX_CANDB_DBG__
|
#endif // __DEF_VECTOR__XXX_CANDB_DBG__
|
||||||
|
|
||||||
uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_)
|
uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* _m, const uint8_t* _d, uint32_t _id, uint8_t dlc_)
|
||||||
{
|
{
|
||||||
uint32_t recid = 0;
|
uint32_t recid = 0;
|
||||||
if ((_id >= 0x3E0U) && (_id < 0x3FFU)) {
|
if ((_id >= 0x0U) && (_id < 0x3FCU)) {
|
||||||
if ((_id >= 0x3E0U) && (_id < 0x3F0U)) {
|
if ((_id >= 0x0U) && (_id < 0x3F0U)) {
|
||||||
if ((_id >= 0x3E0U) && (_id < 0x3E3U)) {
|
if ((_id >= 0x0U) && (_id < 0x3E3U)) {
|
||||||
if (_id == 0x3E0U) {
|
if ((_id >= 0x0U) && (_id < 0x3E1U)) {
|
||||||
recid = Unpack_dbg_Logic_State_candb_dbg(&(_m->dbg_Logic_State), _d, dlc_);
|
if (_id == 0x0U) {
|
||||||
|
recid = Unpack_dbg_Act_calibration_error_candb_dbg(&(_m->dbg_Act_calibration_error), _d, dlc_);
|
||||||
|
} else if (_id == 0x3E0U) {
|
||||||
|
recid = Unpack_dbg_Logic_State_candb_dbg(&(_m->dbg_Logic_State), _d, dlc_);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_id == 0x3E1U) {
|
if (_id == 0x3E1U) {
|
||||||
recid = Unpack_dbg_Logic_KM_Status_candb_dbg(&(_m->dbg_Logic_KM_Status), _d, dlc_);
|
recid = Unpack_dbg_Logic_KM_Status_candb_dbg(&(_m->dbg_Logic_KM_Status), _d, dlc_);
|
||||||
|
|
@ -44,7 +50,7 @@ uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* _m, const uin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((_id >= 0x3F0U) && (_id < 0x3F8U)) {
|
if ((_id >= 0x3F0U) && (_id < 0x3F4U)) {
|
||||||
if ((_id >= 0x3F0U) && (_id < 0x3F2U)) {
|
if ((_id >= 0x3F0U) && (_id < 0x3F2U)) {
|
||||||
if (_id == 0x3F0U) {
|
if (_id == 0x3F0U) {
|
||||||
recid = Unpack_dbg_Act0_candb_dbg(&(_m->dbg_Act0), _d, dlc_);
|
recid = Unpack_dbg_Act0_candb_dbg(&(_m->dbg_Act0), _d, dlc_);
|
||||||
|
|
@ -59,75 +65,83 @@ uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* _m, const uin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((_id >= 0x3F8U) && (_id < 0x3FCU)) {
|
if ((_id >= 0x3F4U) && (_id < 0x3F8U)) {
|
||||||
|
if (_id == 0x3F4U) {
|
||||||
|
recid = Unpack_dbg_Act_calibration_candb_dbg(&(_m->dbg_Act_calibration), _d, dlc_);
|
||||||
|
} else if (_id == 0x3F7U) {
|
||||||
|
recid = Unpack_dbg_PID_tune_candb_dbg(&(_m->dbg_PID_tune), _d, dlc_);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (_id == 0x3F8U) {
|
if (_id == 0x3F8U) {
|
||||||
recid = Unpack_dbg_Sen_0_candb_dbg(&(_m->dbg_Sen_0), _d, dlc_);
|
recid = Unpack_dbg_Sen_0_candb_dbg(&(_m->dbg_Sen_0), _d, dlc_);
|
||||||
} else if (_id == 0x3FBU) {
|
} else if (_id == 0x3FBU) {
|
||||||
recid = Unpack_dbg_CCU_IO_candb_dbg(&(_m->dbg_CCU_IO), _d, dlc_);
|
recid = Unpack_dbg_CCU_IO_candb_dbg(&(_m->dbg_CCU_IO), _d, dlc_);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ((_id >= 0x3FCU) && (_id < 0x510U)) {
|
||||||
|
if ((_id >= 0x3FCU) && (_id < 0x402U)) {
|
||||||
|
if ((_id >= 0x3FCU) && (_id < 0x3FFU)) {
|
||||||
if (_id == 0x3FCU) {
|
if (_id == 0x3FCU) {
|
||||||
recid = Unpack_dbg_CCU_Info_candb_dbg(&(_m->dbg_CCU_Info), _d, dlc_);
|
recid = Unpack_dbg_CCU_Info_candb_dbg(&(_m->dbg_CCU_Info), _d, dlc_);
|
||||||
} else if (_id == 0x3FDU) {
|
} else if (_id == 0x3FDU) {
|
||||||
recid = Unpack_dbg_Drs_candb_dbg(&(_m->dbg_Drs), _d, dlc_);
|
recid = Unpack_dbg_Drs_candb_dbg(&(_m->dbg_Drs), _d, dlc_);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if ((_id >= 0x3FFU) && (_id < 0x511U)) {
|
|
||||||
if ((_id >= 0x3FFU) && (_id < 0x504U)) {
|
|
||||||
if (_id == 0x3FFU) {
|
|
||||||
recid = Unpack_dbg_Sen_Incar_candb_dbg(&(_m->dbg_Sen_Incar), _d, dlc_);
|
|
||||||
} else {
|
} else {
|
||||||
if (_id == 0x401U) {
|
if (_id == 0x3FFU) {
|
||||||
|
recid = Unpack_dbg_Sen_Incar_candb_dbg(&(_m->dbg_Sen_Incar), _d, dlc_);
|
||||||
|
} else if (_id == 0x401U) {
|
||||||
recid = Unpack_dbg_Info_Act1_candb_dbg(&(_m->dbg_Info_Act1), _d, dlc_);
|
recid = Unpack_dbg_Info_Act1_candb_dbg(&(_m->dbg_Info_Act1), _d, dlc_);
|
||||||
} else if (_id == 0x402U) {
|
|
||||||
recid = Unpack_dbg_Info_Act2_candb_dbg(&(_m->dbg_Info_Act2), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((_id >= 0x504U) && (_id < 0x509U)) {
|
if ((_id >= 0x402U) && (_id < 0x505U)) {
|
||||||
if (_id == 0x504U) {
|
if (_id == 0x402U) {
|
||||||
|
recid = Unpack_dbg_Info_Act2_candb_dbg(&(_m->dbg_Info_Act2), _d, dlc_);
|
||||||
|
} else if (_id == 0x504U) {
|
||||||
recid = Unpack_dbg_Sen_Eva_candb_dbg(&(_m->dbg_Sen_Eva), _d, dlc_);
|
recid = Unpack_dbg_Sen_Eva_candb_dbg(&(_m->dbg_Sen_Eva), _d, dlc_);
|
||||||
} else if (_id == 0x505U) {
|
|
||||||
recid = Unpack_dbg_Sen_Duct_candb_dbg(&(_m->dbg_Sen_Duct), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_id == 0x509U) {
|
if (_id == 0x505U) {
|
||||||
|
recid = Unpack_dbg_Sen_Duct_candb_dbg(&(_m->dbg_Sen_Duct), _d, dlc_);
|
||||||
|
} else if (_id == 0x509U) {
|
||||||
recid = Unpack_dbg_Sen_Demist_candb_dbg(&(_m->dbg_Sen_Demist), _d, dlc_);
|
recid = Unpack_dbg_Sen_Demist_candb_dbg(&(_m->dbg_Sen_Demist), _d, dlc_);
|
||||||
} else if (_id == 0x510U) {
|
|
||||||
recid = Unpack_dbg_LIN_AirQS_Stat_candb_dbg(&(_m->dbg_LIN_AirQS_Stat), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((_id >= 0x511U) && (_id < 0x520U)) {
|
if ((_id >= 0x510U) && (_id < 0x518U)) {
|
||||||
if ((_id >= 0x511U) && (_id < 0x514U)) {
|
if ((_id >= 0x510U) && (_id < 0x513U)) {
|
||||||
if (_id == 0x511U) {
|
if (_id == 0x510U) {
|
||||||
|
recid = Unpack_dbg_LIN_AirQS_Stat_candb_dbg(&(_m->dbg_LIN_AirQS_Stat), _d, dlc_);
|
||||||
|
} else if (_id == 0x511U) {
|
||||||
recid = Unpack_dbg_LIN_Aroma_Stat_candb_dbg(&(_m->dbg_LIN_Aroma_Stat), _d, dlc_);
|
recid = Unpack_dbg_LIN_Aroma_Stat_candb_dbg(&(_m->dbg_LIN_Aroma_Stat), _d, dlc_);
|
||||||
} else if (_id == 0x513U) {
|
|
||||||
recid = Unpack_dbg_LIN_Ionizer_Stat_candb_dbg(&(_m->dbg_LIN_Ionizer_Stat), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_id == 0x514U) {
|
if (_id == 0x513U) {
|
||||||
|
recid = Unpack_dbg_LIN_Ionizer_Stat_candb_dbg(&(_m->dbg_LIN_Ionizer_Stat), _d, dlc_);
|
||||||
|
} else if (_id == 0x514U) {
|
||||||
recid = Unpack_dbg_LIN_eTXV_Stat_candb_dbg(&(_m->dbg_LIN_eTXV_Stat), _d, dlc_);
|
recid = Unpack_dbg_LIN_eTXV_Stat_candb_dbg(&(_m->dbg_LIN_eTXV_Stat), _d, dlc_);
|
||||||
} else if (_id == 0x518U) {
|
|
||||||
recid = Unpack_dbg_LIN_DRS_Stat_candb_dbg(&(_m->dbg_LIN_DRS_Stat), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((_id >= 0x520U) && (_id < 0x530U)) {
|
if ((_id >= 0x518U) && (_id < 0x524U)) {
|
||||||
if (_id == 0x520U) {
|
if (_id == 0x518U) {
|
||||||
|
recid = Unpack_dbg_LIN_DRS_Stat_candb_dbg(&(_m->dbg_LIN_DRS_Stat), _d, dlc_);
|
||||||
|
} else if (_id == 0x520U) {
|
||||||
recid = Unpack_dbg_Auto_AF_candb_dbg(&(_m->dbg_Auto_AF), _d, dlc_);
|
recid = Unpack_dbg_Auto_AF_candb_dbg(&(_m->dbg_Auto_AF), _d, dlc_);
|
||||||
} else if (_id == 0x524U) {
|
|
||||||
recid = Unpack_dbg_Auto_Duct_candb_dbg(&(_m->dbg_Auto_Duct), _d, dlc_);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_id == 0x530U) {
|
if (_id == 0x524U) {
|
||||||
recid = Unpack_dbg_Auto_Valve_Plus_candb_dbg(&(_m->dbg_Auto_Valve_Plus), _d, dlc_);
|
recid = Unpack_dbg_Auto_Duct_candb_dbg(&(_m->dbg_Auto_Duct), _d, dlc_);
|
||||||
} else if (_id == 0x6BBU) {
|
} else {
|
||||||
recid = Unpack_XCP_CCU_TX_candb_dbg(&(_m->XCP_CCU_TX), _d, dlc_);
|
if (_id == 0x530U) {
|
||||||
|
recid = Unpack_dbg_Auto_Valve_Plus_candb_dbg(&(_m->dbg_Auto_Valve_Plus), _d, dlc_);
|
||||||
|
} else if (_id == 0x6BBU) {
|
||||||
|
recid = Unpack_XCP_CCU_TX_candb_dbg(&(_m->XCP_CCU_TX), _d, dlc_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ extern "C" {
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
dbg_Act_calibration_error_t dbg_Act_calibration_error;
|
||||||
dbg_Logic_State_t dbg_Logic_State;
|
dbg_Logic_State_t dbg_Logic_State;
|
||||||
dbg_Logic_KM_Status_t dbg_Logic_KM_Status;
|
dbg_Logic_KM_Status_t dbg_Logic_KM_Status;
|
||||||
dbg_Logic_Valve_t dbg_Logic_Valve;
|
dbg_Logic_Valve_t dbg_Logic_Valve;
|
||||||
|
|
@ -23,6 +24,8 @@ typedef struct
|
||||||
dbg_Act1_t dbg_Act1;
|
dbg_Act1_t dbg_Act1;
|
||||||
dbg_Act2_t dbg_Act2;
|
dbg_Act2_t dbg_Act2;
|
||||||
dbg_Sen_Amb_t dbg_Sen_Amb;
|
dbg_Sen_Amb_t dbg_Sen_Amb;
|
||||||
|
dbg_Act_calibration_t dbg_Act_calibration;
|
||||||
|
dbg_PID_tune_t dbg_PID_tune;
|
||||||
dbg_Sen_0_t dbg_Sen_0;
|
dbg_Sen_0_t dbg_Sen_0;
|
||||||
dbg_CCU_IO_t dbg_CCU_IO;
|
dbg_CCU_IO_t dbg_CCU_IO;
|
||||||
dbg_CCU_Info_t dbg_CCU_Info;
|
dbg_CCU_Info_t dbg_CCU_Info;
|
||||||
|
|
@ -44,7 +47,11 @@ typedef struct
|
||||||
XCP_CCU_TX_t XCP_CCU_TX;
|
XCP_CCU_TX_t XCP_CCU_TX;
|
||||||
} vector__xxx_candb_dbg_rx_t;
|
} vector__xxx_candb_dbg_rx_t;
|
||||||
|
|
||||||
// There is no any TX mapped massage.
|
typedef struct
|
||||||
|
{
|
||||||
|
dbg_Act_calibration_error_t dbg_Act_calibration_error;
|
||||||
|
dbg_Act_calibration_t dbg_Act_calibration;
|
||||||
|
} vector__xxx_candb_dbg_tx_t;
|
||||||
|
|
||||||
uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* m, const uint8_t* d, uint32_t msgid, uint8_t dlc);
|
uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* m, const uint8_t* d, uint32_t msgid, uint8_t dlc);
|
||||||
|
|
||||||
|
|
@ -52,6 +59,8 @@ uint32_t vector__xxx_candb_dbg_Receive(vector__xxx_candb_dbg_rx_t* m, const uint
|
||||||
|
|
||||||
extern vector__xxx_candb_dbg_rx_t vector__xxx_candb_dbg_rx;
|
extern vector__xxx_candb_dbg_rx_t vector__xxx_candb_dbg_rx;
|
||||||
|
|
||||||
|
extern vector__xxx_candb_dbg_tx_t vector__xxx_candb_dbg_tx;
|
||||||
|
|
||||||
#endif // __DEF_VECTOR__XXX_CANDB_DBG__
|
#endif // __DEF_VECTOR__XXX_CANDB_DBG__
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
/* include common dbccode configurations */
|
/* include common dbccode configurations */
|
||||||
#include "dbccodeconf.h"
|
#include "dbccodeconf.h"
|
||||||
|
|
||||||
#define __DEF_CCU_CANDB_DBG__
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
This define enables using CAN message structs with bit-fielded signals
|
This define enables using CAN message structs with bit-fielded signals
|
||||||
layout.
|
layout.
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ separated .c file. If it won't be done the linkage error will happen
|
||||||
|
|
||||||
void _FMon_MONO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_MONO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
|
||||||
|
#define FMon_dbg_Act_calibration_error_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_State_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_State_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_KM_Status_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_KM_Status_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_Valve_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_Valve_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
|
|
@ -37,6 +38,8 @@ void _FMon_MONO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
#define FMon_dbg_Act1_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Act1_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Act2_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Act2_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Sen_Amb_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Sen_Amb_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
|
#define FMon_dbg_Act_calibration_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
|
#define FMon_dbg_PID_tune_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Sen_0_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_Sen_0_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_CCU_IO_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_CCU_IO_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_CCU_Info_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
#define FMon_dbg_CCU_Info_candb_dbg(x, y) _FMon_MONO_candb_dbg((x), (y))
|
||||||
|
|
@ -61,6 +64,7 @@ void _FMon_MONO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
void _FMon_dbg_Act_calibration_error_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Logic_State_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Logic_State_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Logic_KM_Status_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Logic_KM_Status_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Logic_Valve_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Logic_Valve_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
|
@ -72,6 +76,8 @@ void _FMon_dbg_Act0_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Act1_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Act1_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Act2_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Act2_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Sen_Amb_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Sen_Amb_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
void _FMon_dbg_Act_calibration_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
void _FMon_dbg_PID_tune_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_Sen_0_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_Sen_0_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_CCU_IO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_CCU_IO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_dbg_CCU_Info_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_dbg_CCU_Info_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
|
@ -94,6 +100,7 @@ void _FMon_dbg_Auto_Valve_Plus_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_XCP_CCU_RX_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_XCP_CCU_RX_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
void _FMon_XCP_CCU_TX_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
void _FMon_XCP_CCU_TX_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
|
|
||||||
|
#define FMon_dbg_Act_calibration_error_candb_dbg(x, y) _FMon_dbg_Act_calibration_error_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_State_candb_dbg(x, y) _FMon_dbg_Logic_State_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_State_candb_dbg(x, y) _FMon_dbg_Logic_State_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_KM_Status_candb_dbg(x, y) _FMon_dbg_Logic_KM_Status_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_KM_Status_candb_dbg(x, y) _FMon_dbg_Logic_KM_Status_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Logic_Valve_candb_dbg(x, y) _FMon_dbg_Logic_Valve_candb_dbg((x), (y))
|
#define FMon_dbg_Logic_Valve_candb_dbg(x, y) _FMon_dbg_Logic_Valve_candb_dbg((x), (y))
|
||||||
|
|
@ -105,6 +112,8 @@ void _FMon_XCP_CCU_TX_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid);
|
||||||
#define FMon_dbg_Act1_candb_dbg(x, y) _FMon_dbg_Act1_candb_dbg((x), (y))
|
#define FMon_dbg_Act1_candb_dbg(x, y) _FMon_dbg_Act1_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Act2_candb_dbg(x, y) _FMon_dbg_Act2_candb_dbg((x), (y))
|
#define FMon_dbg_Act2_candb_dbg(x, y) _FMon_dbg_Act2_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Sen_Amb_candb_dbg(x, y) _FMon_dbg_Sen_Amb_candb_dbg((x), (y))
|
#define FMon_dbg_Sen_Amb_candb_dbg(x, y) _FMon_dbg_Sen_Amb_candb_dbg((x), (y))
|
||||||
|
#define FMon_dbg_Act_calibration_candb_dbg(x, y) _FMon_dbg_Act_calibration_candb_dbg((x), (y))
|
||||||
|
#define FMon_dbg_PID_tune_candb_dbg(x, y) _FMon_dbg_PID_tune_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_Sen_0_candb_dbg(x, y) _FMon_dbg_Sen_0_candb_dbg((x), (y))
|
#define FMon_dbg_Sen_0_candb_dbg(x, y) _FMon_dbg_Sen_0_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_CCU_IO_candb_dbg(x, y) _FMon_dbg_CCU_IO_candb_dbg((x), (y))
|
#define FMon_dbg_CCU_IO_candb_dbg(x, y) _FMon_dbg_CCU_IO_candb_dbg((x), (y))
|
||||||
#define FMon_dbg_CCU_Info_candb_dbg(x, y) _FMon_dbg_CCU_Info_candb_dbg((x), (y))
|
#define FMon_dbg_CCU_Info_candb_dbg(x, y) _FMon_dbg_CCU_Info_candb_dbg((x), (y))
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,78 @@ static bitext_t __ext_sig__(ubitext_t val, uint8_t bits)
|
||||||
return ((val ^ m) - m);
|
return ((val ^ m) - m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t Unpack_dbg_Act_calibration_error_candb_dbg(dbg_Act_calibration_error_t* _m, const uint8_t* _d, uint8_t dlc_)
|
||||||
|
{
|
||||||
|
(void)dlc_;
|
||||||
|
_m->dbg_Act_calib_00_Def_error = (uint8_t) ( (_d[0] & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_01_Vent_SFL_error = (uint8_t) ( ((_d[0] >> 1U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_02_Vent_CFL_error = (uint8_t) ( ((_d[0] >> 2U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_03_Foot_1FL_error = (uint8_t) ( ((_d[0] >> 3U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_04_Foot_2FL_error = (uint8_t) ( ((_d[0] >> 4U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_05_Vent_CFR_error = (uint8_t) ( ((_d[0] >> 5U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_06_Vent_SFR_error = (uint8_t) ( ((_d[0] >> 6U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_07_Foot_1FR_error = (uint8_t) ( ((_d[0] >> 7U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_08_Foot_2FR_error = (uint8_t) ( (_d[1] & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_09_Vent_SRL_error = (uint8_t) ( ((_d[1] >> 1U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_10_Vent_CRL_error = (uint8_t) ( ((_d[1] >> 2U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_11_Foot_RL_error = (uint8_t) ( ((_d[1] >> 3U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_12_Vent_CRR_error = (uint8_t) ( ((_d[1] >> 4U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_13_Vent_SRR_error = (uint8_t) ( ((_d[1] >> 5U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_14_Foot_RR_error = (uint8_t) ( ((_d[1] >> 6U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_15_TempU_FL_error = (uint8_t) ( ((_d[1] >> 7U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_16_TempL_FL_error = (uint8_t) ( (_d[2] & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_17_TempU_FR_error = (uint8_t) ( ((_d[2] >> 1U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_18_TempL_FR_error = (uint8_t) ( ((_d[2] >> 2U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_19_Temp_RL_error = (uint8_t) ( ((_d[2] >> 3U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_20_Temp_RR_error = (uint8_t) ( ((_d[2] >> 4U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_21_Rec_error = (uint8_t) ( ((_d[2] >> 5U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_22_OSA_error = (uint8_t) ( ((_d[2] >> 6U) & (0x01U)) );
|
||||||
|
_m->dbg_Act_calib_23_Sealing_error = (uint8_t) ( ((_d[2] >> 7U) & (0x01U)) );
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
_m->mon1.dlc_error = (dlc_ < dbg_Act_calibration_error_DLC);
|
||||||
|
_m->mon1.last_cycle = GetSystemTick();
|
||||||
|
_m->mon1.frame_cnt++;
|
||||||
|
|
||||||
|
FMon_dbg_Act_calibration_error_candb_dbg(&_m->mon1, dbg_Act_calibration_error_CANID);
|
||||||
|
#endif // CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
|
||||||
|
return dbg_Act_calibration_error_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_error_candb_dbg(dbg_Act_calibration_error_t* _m, __CoderDbcCanFrame_t__* cframe)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Act_calibration_error_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
cframe->Data[0] |= (uint8_t) ( (_m->dbg_Act_calib_00_Def_error & (0x01U)) | ((_m->dbg_Act_calib_01_Vent_SFL_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_02_Vent_CFL_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_03_Foot_1FL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_04_Foot_2FL_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_05_Vent_CFR_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_06_Vent_SFR_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_07_Foot_1FR_error & (0x01U)) << 7U) );
|
||||||
|
cframe->Data[1] |= (uint8_t) ( (_m->dbg_Act_calib_08_Foot_2FR_error & (0x01U)) | ((_m->dbg_Act_calib_09_Vent_SRL_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_10_Vent_CRL_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_11_Foot_RL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_12_Vent_CRR_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_13_Vent_SRR_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_14_Foot_RR_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_15_TempU_FL_error & (0x01U)) << 7U) );
|
||||||
|
cframe->Data[2] |= (uint8_t) ( (_m->dbg_Act_calib_16_TempL_FL_error & (0x01U)) | ((_m->dbg_Act_calib_17_TempU_FR_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_18_TempL_FR_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_19_Temp_RL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_20_Temp_RR_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_21_Rec_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_22_OSA_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_23_Sealing_error & (0x01U)) << 7U) );
|
||||||
|
|
||||||
|
cframe->MsgId = (uint32_t) dbg_Act_calibration_error_CANID;
|
||||||
|
cframe->DLC = (uint8_t) dbg_Act_calibration_error_DLC;
|
||||||
|
cframe->IDE = (uint8_t) dbg_Act_calibration_error_IDE;
|
||||||
|
return dbg_Act_calibration_error_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_error_candb_dbg(dbg_Act_calibration_error_t* _m, uint8_t* _d, uint8_t* _len, uint8_t* _ide)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Act_calibration_error_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
_d[0] |= (uint8_t) ( (_m->dbg_Act_calib_00_Def_error & (0x01U)) | ((_m->dbg_Act_calib_01_Vent_SFL_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_02_Vent_CFL_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_03_Foot_1FL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_04_Foot_2FL_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_05_Vent_CFR_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_06_Vent_SFR_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_07_Foot_1FR_error & (0x01U)) << 7U) );
|
||||||
|
_d[1] |= (uint8_t) ( (_m->dbg_Act_calib_08_Foot_2FR_error & (0x01U)) | ((_m->dbg_Act_calib_09_Vent_SRL_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_10_Vent_CRL_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_11_Foot_RL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_12_Vent_CRR_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_13_Vent_SRR_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_14_Foot_RR_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_15_TempU_FL_error & (0x01U)) << 7U) );
|
||||||
|
_d[2] |= (uint8_t) ( (_m->dbg_Act_calib_16_TempL_FL_error & (0x01U)) | ((_m->dbg_Act_calib_17_TempU_FR_error & (0x01U)) << 1U) | ((_m->dbg_Act_calib_18_TempL_FR_error & (0x01U)) << 2U) | ((_m->dbg_Act_calib_19_Temp_RL_error & (0x01U)) << 3U) | ((_m->dbg_Act_calib_20_Temp_RR_error & (0x01U)) << 4U) | ((_m->dbg_Act_calib_21_Rec_error & (0x01U)) << 5U) | ((_m->dbg_Act_calib_22_OSA_error & (0x01U)) << 6U) | ((_m->dbg_Act_calib_23_Sealing_error & (0x01U)) << 7U) );
|
||||||
|
|
||||||
|
*_len = (uint8_t) dbg_Act_calibration_error_DLC;
|
||||||
|
*_ide = (uint8_t) dbg_Act_calibration_error_IDE;
|
||||||
|
return dbg_Act_calibration_error_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
uint32_t Unpack_dbg_Logic_State_candb_dbg(dbg_Logic_State_t* _m, const uint8_t* _d, uint8_t dlc_)
|
uint32_t Unpack_dbg_Logic_State_candb_dbg(dbg_Logic_State_t* _m, const uint8_t* _d, uint8_t dlc_)
|
||||||
{
|
{
|
||||||
(void)dlc_;
|
(void)dlc_;
|
||||||
|
|
@ -63,11 +135,11 @@ uint32_t Unpack_dbg_Logic_State_candb_dbg(dbg_Logic_State_t* _m, const uint8_t*
|
||||||
_m->Logic_Full_Auto_FR = (uint8_t) ( ((_d[4] >> 3U) & (0x01U)) );
|
_m->Logic_Full_Auto_FR = (uint8_t) ( ((_d[4] >> 3U) & (0x01U)) );
|
||||||
_m->Logic_Full_Auto_RL = (uint8_t) ( ((_d[4] >> 4U) & (0x01U)) );
|
_m->Logic_Full_Auto_RL = (uint8_t) ( ((_d[4] >> 4U) & (0x01U)) );
|
||||||
_m->Logic_Full_Auto_RR = (uint8_t) ( ((_d[4] >> 5U) & (0x01U)) );
|
_m->Logic_Full_Auto_RR = (uint8_t) ( ((_d[4] >> 5U) & (0x01U)) );
|
||||||
_m->Logic_Full_MaxAc = (uint8_t) ( ((_d[4] >> 6U) & (0x01U)) );
|
_m->Logic_Full_MaxAc = (uint8_t) ( ((_d[4] >> 6U) & (0x03U)) );
|
||||||
_m->Logic_Full_MaxDef = (uint8_t) ( ((_d[4] >> 7U) & (0x01U)) );
|
_m->Logic_Full_MaxDef = (uint8_t) ( (_d[5] & (0x01U)) );
|
||||||
_m->Logic_Start_Ctrl_Front = (uint8_t) ( (_d[5] & (0x07U)) );
|
_m->Logic_Start_Ctrl_Front = (uint8_t) ( ((_d[5] >> 1U) & (0x07U)) );
|
||||||
_m->Logic_Start_Ctrl_Rear = (uint8_t) ( ((_d[5] >> 3U) & (0x07U)) );
|
_m->Logic_Start_Ctrl_Rear = (uint8_t) ( ((_d[5] >> 4U) & (0x07U)) );
|
||||||
_m->Logic_Valve_Use_DiffBlr_R2 = (uint8_t) ( ((_d[5] >> 6U) & (0x01U)) );
|
_m->Logic_Valve_Use_DiffBlr_R2 = (uint8_t) ( ((_d[5] >> 7U) & (0x01U)) );
|
||||||
_m->Logic_Duct_WaitCorrection_FRL = (uint8_t) ( (_d[6] & (0x03U)) );
|
_m->Logic_Duct_WaitCorrection_FRL = (uint8_t) ( (_d[6] & (0x03U)) );
|
||||||
_m->Logic_Duct_WaitCorrection_FLL = (uint8_t) ( ((_d[6] >> 2U) & (0x03U)) );
|
_m->Logic_Duct_WaitCorrection_FLL = (uint8_t) ( ((_d[6] >> 2U) & (0x03U)) );
|
||||||
_m->Logic_AutoDemist_Lv_Winter = (uint8_t) ( ((_d[6] >> 4U) & (0x0FU)) );
|
_m->Logic_AutoDemist_Lv_Winter = (uint8_t) ( ((_d[6] >> 4U) & (0x0FU)) );
|
||||||
|
|
@ -95,8 +167,8 @@ uint32_t Pack_dbg_Logic_State_candb_dbg(dbg_Logic_State_t* _m, __CoderDbcCanFram
|
||||||
cframe->Data[1] |= (uint8_t) ( (_m->Logic_AutoDemist_Lv_Summer & (0x0FU)) | ((_m->Logic_RemoteStart & (0x03U)) << 4U) | ((_m->Logic_Rest_Mode & (0x03U)) << 6U) );
|
cframe->Data[1] |= (uint8_t) ( (_m->Logic_AutoDemist_Lv_Summer & (0x0FU)) | ((_m->Logic_RemoteStart & (0x03U)) << 4U) | ((_m->Logic_Rest_Mode & (0x03U)) << 6U) );
|
||||||
cframe->Data[2] |= (uint8_t) ( (_m->Logic_LoHi_Front & (0xFFU)) );
|
cframe->Data[2] |= (uint8_t) ( (_m->Logic_LoHi_Front & (0xFFU)) );
|
||||||
cframe->Data[3] |= (uint8_t) ( (_m->Logic_LoHi_Rear & (0xFFU)) );
|
cframe->Data[3] |= (uint8_t) ( (_m->Logic_LoHi_Rear & (0xFFU)) );
|
||||||
cframe->Data[4] |= (uint8_t) ( (_m->Logic_2WayValve_Status & (0x03U)) | ((_m->Logic_Full_Auto_FL & (0x01U)) << 2U) | ((_m->Logic_Full_Auto_FR & (0x01U)) << 3U) | ((_m->Logic_Full_Auto_RL & (0x01U)) << 4U) | ((_m->Logic_Full_Auto_RR & (0x01U)) << 5U) | ((_m->Logic_Full_MaxAc & (0x01U)) << 6U) | ((_m->Logic_Full_MaxDef & (0x01U)) << 7U) );
|
cframe->Data[4] |= (uint8_t) ( (_m->Logic_2WayValve_Status & (0x03U)) | ((_m->Logic_Full_Auto_FL & (0x01U)) << 2U) | ((_m->Logic_Full_Auto_FR & (0x01U)) << 3U) | ((_m->Logic_Full_Auto_RL & (0x01U)) << 4U) | ((_m->Logic_Full_Auto_RR & (0x01U)) << 5U) | ((_m->Logic_Full_MaxAc & (0x03U)) << 6U) );
|
||||||
cframe->Data[5] |= (uint8_t) ( (_m->Logic_Start_Ctrl_Front & (0x07U)) | ((_m->Logic_Start_Ctrl_Rear & (0x07U)) << 3U) | ((_m->Logic_Valve_Use_DiffBlr_R2 & (0x01U)) << 6U) );
|
cframe->Data[5] |= (uint8_t) ( (_m->Logic_Full_MaxDef & (0x01U)) | ((_m->Logic_Start_Ctrl_Front & (0x07U)) << 1U) | ((_m->Logic_Start_Ctrl_Rear & (0x07U)) << 4U) | ((_m->Logic_Valve_Use_DiffBlr_R2 & (0x01U)) << 7U) );
|
||||||
cframe->Data[6] |= (uint8_t) ( (_m->Logic_Duct_WaitCorrection_FRL & (0x03U)) | ((_m->Logic_Duct_WaitCorrection_FLL & (0x03U)) << 2U) | ((_m->Logic_AutoDemist_Lv_Winter & (0x0FU)) << 4U) );
|
cframe->Data[6] |= (uint8_t) ( (_m->Logic_Duct_WaitCorrection_FRL & (0x03U)) | ((_m->Logic_Duct_WaitCorrection_FLL & (0x03U)) << 2U) | ((_m->Logic_AutoDemist_Lv_Winter & (0x0FU)) << 4U) );
|
||||||
cframe->Data[7] |= (uint8_t) ( (_m->Logic_AF_WaitCorrection_FL & (0x03U)) | ((_m->Logic_AF_WaitCorrection_FR & (0x03U)) << 2U) );
|
cframe->Data[7] |= (uint8_t) ( (_m->Logic_AF_WaitCorrection_FL & (0x03U)) | ((_m->Logic_AF_WaitCorrection_FR & (0x03U)) << 2U) );
|
||||||
|
|
||||||
|
|
@ -116,8 +188,8 @@ uint32_t Pack_dbg_Logic_State_candb_dbg(dbg_Logic_State_t* _m, uint8_t* _d, uint
|
||||||
_d[1] |= (uint8_t) ( (_m->Logic_AutoDemist_Lv_Summer & (0x0FU)) | ((_m->Logic_RemoteStart & (0x03U)) << 4U) | ((_m->Logic_Rest_Mode & (0x03U)) << 6U) );
|
_d[1] |= (uint8_t) ( (_m->Logic_AutoDemist_Lv_Summer & (0x0FU)) | ((_m->Logic_RemoteStart & (0x03U)) << 4U) | ((_m->Logic_Rest_Mode & (0x03U)) << 6U) );
|
||||||
_d[2] |= (uint8_t) ( (_m->Logic_LoHi_Front & (0xFFU)) );
|
_d[2] |= (uint8_t) ( (_m->Logic_LoHi_Front & (0xFFU)) );
|
||||||
_d[3] |= (uint8_t) ( (_m->Logic_LoHi_Rear & (0xFFU)) );
|
_d[3] |= (uint8_t) ( (_m->Logic_LoHi_Rear & (0xFFU)) );
|
||||||
_d[4] |= (uint8_t) ( (_m->Logic_2WayValve_Status & (0x03U)) | ((_m->Logic_Full_Auto_FL & (0x01U)) << 2U) | ((_m->Logic_Full_Auto_FR & (0x01U)) << 3U) | ((_m->Logic_Full_Auto_RL & (0x01U)) << 4U) | ((_m->Logic_Full_Auto_RR & (0x01U)) << 5U) | ((_m->Logic_Full_MaxAc & (0x01U)) << 6U) | ((_m->Logic_Full_MaxDef & (0x01U)) << 7U) );
|
_d[4] |= (uint8_t) ( (_m->Logic_2WayValve_Status & (0x03U)) | ((_m->Logic_Full_Auto_FL & (0x01U)) << 2U) | ((_m->Logic_Full_Auto_FR & (0x01U)) << 3U) | ((_m->Logic_Full_Auto_RL & (0x01U)) << 4U) | ((_m->Logic_Full_Auto_RR & (0x01U)) << 5U) | ((_m->Logic_Full_MaxAc & (0x03U)) << 6U) );
|
||||||
_d[5] |= (uint8_t) ( (_m->Logic_Start_Ctrl_Front & (0x07U)) | ((_m->Logic_Start_Ctrl_Rear & (0x07U)) << 3U) | ((_m->Logic_Valve_Use_DiffBlr_R2 & (0x01U)) << 6U) );
|
_d[5] |= (uint8_t) ( (_m->Logic_Full_MaxDef & (0x01U)) | ((_m->Logic_Start_Ctrl_Front & (0x07U)) << 1U) | ((_m->Logic_Start_Ctrl_Rear & (0x07U)) << 4U) | ((_m->Logic_Valve_Use_DiffBlr_R2 & (0x01U)) << 7U) );
|
||||||
_d[6] |= (uint8_t) ( (_m->Logic_Duct_WaitCorrection_FRL & (0x03U)) | ((_m->Logic_Duct_WaitCorrection_FLL & (0x03U)) << 2U) | ((_m->Logic_AutoDemist_Lv_Winter & (0x0FU)) << 4U) );
|
_d[6] |= (uint8_t) ( (_m->Logic_Duct_WaitCorrection_FRL & (0x03U)) | ((_m->Logic_Duct_WaitCorrection_FLL & (0x03U)) << 2U) | ((_m->Logic_AutoDemist_Lv_Winter & (0x0FU)) << 4U) );
|
||||||
_d[7] |= (uint8_t) ( (_m->Logic_AF_WaitCorrection_FL & (0x03U)) | ((_m->Logic_AF_WaitCorrection_FR & (0x03U)) << 2U) );
|
_d[7] |= (uint8_t) ( (_m->Logic_AF_WaitCorrection_FL & (0x03U)) | ((_m->Logic_AF_WaitCorrection_FR & (0x03U)) << 2U) );
|
||||||
|
|
||||||
|
|
@ -397,6 +469,7 @@ uint32_t Unpack_dbg_Logic_Rec_candb_dbg(dbg_Logic_Rec_t* _m, const uint8_t* _d,
|
||||||
_m->Logic_Rec_Idx = (uint8_t) ( (_d[0] & (0x01U)) );
|
_m->Logic_Rec_Idx = (uint8_t) ( (_d[0] & (0x01U)) );
|
||||||
_m->Logic_Rec_Partial_Spd_Sts = (uint8_t) ( ((_d[0] >> 1U) & (0x01U)) );
|
_m->Logic_Rec_Partial_Spd_Sts = (uint8_t) ( ((_d[0] >> 1U) & (0x01U)) );
|
||||||
_m->Logic_Rec_Partial_Winter = (uint8_t) ( ((_d[0] >> 2U) & (0x01U)) );
|
_m->Logic_Rec_Partial_Winter = (uint8_t) ( ((_d[0] >> 2U) & (0x01U)) );
|
||||||
|
_m->Logic_Rec_Ajar_Stat = (uint8_t) ( ((_d[0] >> 3U) & (0x01U)) );
|
||||||
_m->Logic_Rec_Partial_Summer = (uint8_t) ( ((_d[0] >> 4U) & (0x03U)) );
|
_m->Logic_Rec_Partial_Summer = (uint8_t) ( ((_d[0] >> 4U) & (0x03U)) );
|
||||||
_m->Logic_Rec_FreshAirPurge_Sts = (uint8_t) ( (_d[1] & (0x0FU)) );
|
_m->Logic_Rec_FreshAirPurge_Sts = (uint8_t) ( (_d[1] & (0x0FU)) );
|
||||||
|
|
||||||
|
|
@ -417,7 +490,7 @@ uint32_t Pack_dbg_Logic_Rec_candb_dbg(dbg_Logic_Rec_t* _m, __CoderDbcCanFrame_t_
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Logic_Rec_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Logic_Rec_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
cframe->Data[0] |= (uint8_t) ( (_m->Logic_Rec_Idx & (0x01U)) | ((_m->Logic_Rec_Partial_Spd_Sts & (0x01U)) << 1U) | ((_m->Logic_Rec_Partial_Winter & (0x01U)) << 2U) | ((_m->Logic_Rec_Partial_Summer & (0x03U)) << 4U) );
|
cframe->Data[0] |= (uint8_t) ( (_m->Logic_Rec_Idx & (0x01U)) | ((_m->Logic_Rec_Partial_Spd_Sts & (0x01U)) << 1U) | ((_m->Logic_Rec_Partial_Winter & (0x01U)) << 2U) | ((_m->Logic_Rec_Ajar_Stat & (0x01U)) << 3U) | ((_m->Logic_Rec_Partial_Summer & (0x03U)) << 4U) );
|
||||||
cframe->Data[1] |= (uint8_t) ( (_m->Logic_Rec_FreshAirPurge_Sts & (0x0FU)) );
|
cframe->Data[1] |= (uint8_t) ( (_m->Logic_Rec_FreshAirPurge_Sts & (0x0FU)) );
|
||||||
|
|
||||||
cframe->MsgId = (uint32_t) dbg_Logic_Rec_CANID;
|
cframe->MsgId = (uint32_t) dbg_Logic_Rec_CANID;
|
||||||
|
|
@ -432,7 +505,7 @@ uint32_t Pack_dbg_Logic_Rec_candb_dbg(dbg_Logic_Rec_t* _m, uint8_t* _d, uint8_t*
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Logic_Rec_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Logic_Rec_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
_d[0] |= (uint8_t) ( (_m->Logic_Rec_Idx & (0x01U)) | ((_m->Logic_Rec_Partial_Spd_Sts & (0x01U)) << 1U) | ((_m->Logic_Rec_Partial_Winter & (0x01U)) << 2U) | ((_m->Logic_Rec_Partial_Summer & (0x03U)) << 4U) );
|
_d[0] |= (uint8_t) ( (_m->Logic_Rec_Idx & (0x01U)) | ((_m->Logic_Rec_Partial_Spd_Sts & (0x01U)) << 1U) | ((_m->Logic_Rec_Partial_Winter & (0x01U)) << 2U) | ((_m->Logic_Rec_Ajar_Stat & (0x01U)) << 3U) | ((_m->Logic_Rec_Partial_Summer & (0x03U)) << 4U) );
|
||||||
_d[1] |= (uint8_t) ( (_m->Logic_Rec_FreshAirPurge_Sts & (0x0FU)) );
|
_d[1] |= (uint8_t) ( (_m->Logic_Rec_FreshAirPurge_Sts & (0x0FU)) );
|
||||||
|
|
||||||
*_len = (uint8_t) dbg_Logic_Rec_DLC;
|
*_len = (uint8_t) dbg_Logic_Rec_DLC;
|
||||||
|
|
@ -781,6 +854,271 @@ uint32_t Pack_dbg_Sen_Amb_candb_dbg(dbg_Sen_Amb_t* _m, uint8_t* _d, uint8_t* _le
|
||||||
|
|
||||||
#endif // CANDB_DBG_USE_CANSTRUCT
|
#endif // CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
|
uint32_t Unpack_dbg_Act_calibration_candb_dbg(dbg_Act_calibration_t* _m, const uint8_t* _d, uint8_t dlc_)
|
||||||
|
{
|
||||||
|
(void)dlc_;
|
||||||
|
_m->dbg_Act_calib_MultMsg_Idx = (int8_t) __ext_sig__(( (_d[0] & (0xFFU)) ), 8);
|
||||||
|
_m->dbg_Act_calib_21_Rec = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_00_Def = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_18_TempL_FR = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_03_Foot_1FL = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_15_TempU_FL = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_06_Vent_SFR = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_12_Vent_CRR = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_09_Vent_SRL = (uint16_t) ( ((_d[2] & (0xFFU)) << 8U) | (_d[1] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_22_OSA = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_01_Vent_SFL = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_04_Foot_2FL = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_07_Foot_1FR = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_10_Vent_CRL = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_13_Vent_SRR = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_16_TempL_FL = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_19_Temp_RL = (uint16_t) ( ((_d[4] & (0xFFU)) << 8U) | (_d[3] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_11_Foot_RL = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_08_Foot_2FR = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_14_Foot_RR = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_05_Vent_CFR = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_17_TempU_FR = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_02_Vent_CFL = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_20_Temp_RR = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
_m->dbg_Act_calib_23_SealingValve = (uint16_t) ( ((_d[6] & (0xFFU)) << 8U) | (_d[5] & (0xFFU)) );
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
_m->mon1.dlc_error = (dlc_ < dbg_Act_calibration_DLC);
|
||||||
|
_m->mon1.last_cycle = GetSystemTick();
|
||||||
|
_m->mon1.frame_cnt++;
|
||||||
|
|
||||||
|
FMon_dbg_Act_calibration_candb_dbg(&_m->mon1, dbg_Act_calibration_CANID);
|
||||||
|
#endif // CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
|
||||||
|
return dbg_Act_calibration_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_candb_dbg(dbg_Act_calibration_t* _m, __CoderDbcCanFrame_t__* cframe)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Act_calibration_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
cframe->Data[0] |= (uint8_t) ( (_m->dbg_Act_calib_MultMsg_Idx & (0xFFU)) );
|
||||||
|
cframe->Data[1] |= (uint8_t) ( (_m->dbg_Act_calib_21_Rec & (0xFFU)) | (_m->dbg_Act_calib_00_Def & (0xFFU)) | (_m->dbg_Act_calib_18_TempL_FR & (0xFFU)) | (_m->dbg_Act_calib_03_Foot_1FL & (0xFFU)) | (_m->dbg_Act_calib_15_TempU_FL & (0xFFU)) | (_m->dbg_Act_calib_06_Vent_SFR & (0xFFU)) | (_m->dbg_Act_calib_12_Vent_CRR & (0xFFU)) | (_m->dbg_Act_calib_09_Vent_SRL & (0xFFU)) );
|
||||||
|
cframe->Data[2] |= (uint8_t) ( ((_m->dbg_Act_calib_21_Rec >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_00_Def >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_18_TempL_FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_03_Foot_1FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_15_TempU_FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_06_Vent_SFR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_12_Vent_CRR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_09_Vent_SRL >> 8U) & (0xFFU)) );
|
||||||
|
cframe->Data[3] |= (uint8_t) ( (_m->dbg_Act_calib_22_OSA & (0xFFU)) | (_m->dbg_Act_calib_01_Vent_SFL & (0xFFU)) | (_m->dbg_Act_calib_04_Foot_2FL & (0xFFU)) | (_m->dbg_Act_calib_07_Foot_1FR & (0xFFU)) | (_m->dbg_Act_calib_10_Vent_CRL & (0xFFU)) | (_m->dbg_Act_calib_13_Vent_SRR & (0xFFU)) | (_m->dbg_Act_calib_16_TempL_FL & (0xFFU)) | (_m->dbg_Act_calib_19_Temp_RL & (0xFFU)) );
|
||||||
|
cframe->Data[4] |= (uint8_t) ( ((_m->dbg_Act_calib_22_OSA >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_01_Vent_SFL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_04_Foot_2FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_07_Foot_1FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_10_Vent_CRL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_13_Vent_SRR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_16_TempL_FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_19_Temp_RL >> 8U) & (0xFFU)) );
|
||||||
|
cframe->Data[5] |= (uint8_t) ( (_m->dbg_Act_calib_11_Foot_RL & (0xFFU)) | (_m->dbg_Act_calib_08_Foot_2FR & (0xFFU)) | (_m->dbg_Act_calib_14_Foot_RR & (0xFFU)) | (_m->dbg_Act_calib_05_Vent_CFR & (0xFFU)) | (_m->dbg_Act_calib_17_TempU_FR & (0xFFU)) | (_m->dbg_Act_calib_02_Vent_CFL & (0xFFU)) | (_m->dbg_Act_calib_20_Temp_RR & (0xFFU)) | (_m->dbg_Act_calib_23_SealingValve & (0xFFU)) );
|
||||||
|
cframe->Data[6] |= (uint8_t) ( ((_m->dbg_Act_calib_11_Foot_RL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_08_Foot_2FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_14_Foot_RR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_05_Vent_CFR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_17_TempU_FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_02_Vent_CFL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_20_Temp_RR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_23_SealingValve >> 8U) & (0xFFU)) );
|
||||||
|
|
||||||
|
cframe->MsgId = (uint32_t) dbg_Act_calibration_CANID;
|
||||||
|
cframe->DLC = (uint8_t) dbg_Act_calibration_DLC;
|
||||||
|
cframe->IDE = (uint8_t) dbg_Act_calibration_IDE;
|
||||||
|
return dbg_Act_calibration_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_candb_dbg(dbg_Act_calibration_t* _m, uint8_t* _d, uint8_t* _len, uint8_t* _ide)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Act_calibration_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
_d[0] |= (uint8_t) ( (_m->dbg_Act_calib_MultMsg_Idx & (0xFFU)) );
|
||||||
|
_d[1] |= (uint8_t) ( (_m->dbg_Act_calib_21_Rec & (0xFFU)) | (_m->dbg_Act_calib_00_Def & (0xFFU)) | (_m->dbg_Act_calib_18_TempL_FR & (0xFFU)) | (_m->dbg_Act_calib_03_Foot_1FL & (0xFFU)) | (_m->dbg_Act_calib_15_TempU_FL & (0xFFU)) | (_m->dbg_Act_calib_06_Vent_SFR & (0xFFU)) | (_m->dbg_Act_calib_12_Vent_CRR & (0xFFU)) | (_m->dbg_Act_calib_09_Vent_SRL & (0xFFU)) );
|
||||||
|
_d[2] |= (uint8_t) ( ((_m->dbg_Act_calib_21_Rec >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_00_Def >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_18_TempL_FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_03_Foot_1FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_15_TempU_FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_06_Vent_SFR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_12_Vent_CRR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_09_Vent_SRL >> 8U) & (0xFFU)) );
|
||||||
|
_d[3] |= (uint8_t) ( (_m->dbg_Act_calib_22_OSA & (0xFFU)) | (_m->dbg_Act_calib_01_Vent_SFL & (0xFFU)) | (_m->dbg_Act_calib_04_Foot_2FL & (0xFFU)) | (_m->dbg_Act_calib_07_Foot_1FR & (0xFFU)) | (_m->dbg_Act_calib_10_Vent_CRL & (0xFFU)) | (_m->dbg_Act_calib_13_Vent_SRR & (0xFFU)) | (_m->dbg_Act_calib_16_TempL_FL & (0xFFU)) | (_m->dbg_Act_calib_19_Temp_RL & (0xFFU)) );
|
||||||
|
_d[4] |= (uint8_t) ( ((_m->dbg_Act_calib_22_OSA >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_01_Vent_SFL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_04_Foot_2FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_07_Foot_1FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_10_Vent_CRL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_13_Vent_SRR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_16_TempL_FL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_19_Temp_RL >> 8U) & (0xFFU)) );
|
||||||
|
_d[5] |= (uint8_t) ( (_m->dbg_Act_calib_11_Foot_RL & (0xFFU)) | (_m->dbg_Act_calib_08_Foot_2FR & (0xFFU)) | (_m->dbg_Act_calib_14_Foot_RR & (0xFFU)) | (_m->dbg_Act_calib_05_Vent_CFR & (0xFFU)) | (_m->dbg_Act_calib_17_TempU_FR & (0xFFU)) | (_m->dbg_Act_calib_02_Vent_CFL & (0xFFU)) | (_m->dbg_Act_calib_20_Temp_RR & (0xFFU)) | (_m->dbg_Act_calib_23_SealingValve & (0xFFU)) );
|
||||||
|
_d[6] |= (uint8_t) ( ((_m->dbg_Act_calib_11_Foot_RL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_08_Foot_2FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_14_Foot_RR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_05_Vent_CFR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_17_TempU_FR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_02_Vent_CFL >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_20_Temp_RR >> 8U) & (0xFFU)) | ((_m->dbg_Act_calib_23_SealingValve >> 8U) & (0xFFU)) );
|
||||||
|
|
||||||
|
*_len = (uint8_t) dbg_Act_calibration_DLC;
|
||||||
|
*_ide = (uint8_t) dbg_Act_calibration_IDE;
|
||||||
|
return dbg_Act_calibration_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
|
uint32_t Unpack_dbg_PID_tune_candb_dbg(dbg_PID_tune_t* _m, const uint8_t* _d, uint8_t dlc_)
|
||||||
|
{
|
||||||
|
(void)dlc_;
|
||||||
|
_m->PID_Temp_Msg_Idx = (uint8_t) ( (_d[0] & (0x0FU)) );
|
||||||
|
_m->PID_Temp_FLL_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLL_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLL_P_ro_fromS(_m->PID_Temp_FLL_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FLU_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLU_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLU_P_ro_fromS(_m->PID_Temp_FLU_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRU_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRU_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRU_P_ro_fromS(_m->PID_Temp_FRU_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RR_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RR_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RR_P_ro_fromS(_m->PID_Temp_RR_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRL_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRL_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRL_P_ro_fromS(_m->PID_Temp_FRL_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RL_P_ro = (uint16_t) ( ((_d[1] & (0xFFU)) << 4U) | ((_d[0] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RL_P_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RL_P_ro_fromS(_m->PID_Temp_RL_P_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRL_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRL_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRL_I_ro_fromS(_m->PID_Temp_FRL_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RL_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RL_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RL_I_ro_fromS(_m->PID_Temp_RL_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FLL_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLL_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLL_I_ro_fromS(_m->PID_Temp_FLL_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRU_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRU_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRU_I_ro_fromS(_m->PID_Temp_FRU_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FLU_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLU_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLU_I_ro_fromS(_m->PID_Temp_FLU_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RR_I_ro = (uint16_t) ( ((_d[3] & (0x0FU)) << 8U) | (_d[2] & (0xFFU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RR_I_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RR_I_ro_fromS(_m->PID_Temp_RR_I_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RL_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RL_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RL_D_ro_fromS(_m->PID_Temp_RL_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRL_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRL_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRL_D_ro_fromS(_m->PID_Temp_FRL_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FLL_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLL_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLL_D_ro_fromS(_m->PID_Temp_FLL_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FRU_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FRU_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FRU_D_ro_fromS(_m->PID_Temp_FRU_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_RR_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_RR_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_RR_D_ro_fromS(_m->PID_Temp_RR_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_m->PID_Temp_FLU_D_ro = (uint16_t) ( ((_d[4] & (0xFFU)) << 4U) | ((_d[3] >> 4U) & (0x0FU)) );
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLU_D_phys = (sigfloat_t)(CANDB_DBG_PID_Temp_FLU_D_ro_fromS(_m->PID_Temp_FLU_D_ro));
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
_m->mon1.dlc_error = (dlc_ < dbg_PID_tune_DLC);
|
||||||
|
_m->mon1.last_cycle = GetSystemTick();
|
||||||
|
_m->mon1.frame_cnt++;
|
||||||
|
|
||||||
|
FMon_dbg_PID_tune_candb_dbg(&_m->mon1, dbg_PID_tune_CANID);
|
||||||
|
#endif // CANDB_DBG_USE_DIAG_MONITORS
|
||||||
|
|
||||||
|
return dbg_PID_tune_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_PID_tune_candb_dbg(dbg_PID_tune_t* _m, __CoderDbcCanFrame_t__* cframe)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_PID_tune_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_P_ro_toS(_m->PID_Temp_FLL_P_phys);
|
||||||
|
_m->PID_Temp_FLU_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_P_ro_toS(_m->PID_Temp_FLU_P_phys);
|
||||||
|
_m->PID_Temp_FRU_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_P_ro_toS(_m->PID_Temp_FRU_P_phys);
|
||||||
|
_m->PID_Temp_RR_P_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_P_ro_toS(_m->PID_Temp_RR_P_phys);
|
||||||
|
_m->PID_Temp_FRL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_P_ro_toS(_m->PID_Temp_FRL_P_phys);
|
||||||
|
_m->PID_Temp_RL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_P_ro_toS(_m->PID_Temp_RL_P_phys);
|
||||||
|
_m->PID_Temp_FRL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_I_ro_toS(_m->PID_Temp_FRL_I_phys);
|
||||||
|
_m->PID_Temp_RL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_I_ro_toS(_m->PID_Temp_RL_I_phys);
|
||||||
|
_m->PID_Temp_FLL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_I_ro_toS(_m->PID_Temp_FLL_I_phys);
|
||||||
|
_m->PID_Temp_FRU_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_I_ro_toS(_m->PID_Temp_FRU_I_phys);
|
||||||
|
_m->PID_Temp_FLU_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_I_ro_toS(_m->PID_Temp_FLU_I_phys);
|
||||||
|
_m->PID_Temp_RR_I_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_I_ro_toS(_m->PID_Temp_RR_I_phys);
|
||||||
|
_m->PID_Temp_RL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_D_ro_toS(_m->PID_Temp_RL_D_phys);
|
||||||
|
_m->PID_Temp_FRL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_D_ro_toS(_m->PID_Temp_FRL_D_phys);
|
||||||
|
_m->PID_Temp_FLL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_D_ro_toS(_m->PID_Temp_FLL_D_phys);
|
||||||
|
_m->PID_Temp_FRU_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_D_ro_toS(_m->PID_Temp_FRU_D_phys);
|
||||||
|
_m->PID_Temp_RR_D_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_D_ro_toS(_m->PID_Temp_RR_D_phys);
|
||||||
|
_m->PID_Temp_FLU_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_D_ro_toS(_m->PID_Temp_FLU_D_phys);
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
cframe->Data[0] |= (uint8_t) ( (_m->PID_Temp_Msg_Idx & (0x0FU)) | ((_m->PID_Temp_FLL_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLU_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRU_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RR_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRL_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RL_P_ro & (0x0FU)) << 4U) );
|
||||||
|
cframe->Data[1] |= (uint8_t) ( ((_m->PID_Temp_FLL_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLU_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRU_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RR_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRL_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RL_P_ro >> 4U) & (0xFFU)) );
|
||||||
|
cframe->Data[2] |= (uint8_t) ( (_m->PID_Temp_FRL_I_ro & (0xFFU)) | (_m->PID_Temp_RL_I_ro & (0xFFU)) | (_m->PID_Temp_FLL_I_ro & (0xFFU)) | (_m->PID_Temp_FRU_I_ro & (0xFFU)) | (_m->PID_Temp_FLU_I_ro & (0xFFU)) | (_m->PID_Temp_RR_I_ro & (0xFFU)) );
|
||||||
|
cframe->Data[3] |= (uint8_t) ( ((_m->PID_Temp_FRL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FLL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FRU_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FLU_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RR_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRU_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RR_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLU_D_ro & (0x0FU)) << 4U) );
|
||||||
|
cframe->Data[4] |= (uint8_t) ( ((_m->PID_Temp_RL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRU_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RR_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLU_D_ro >> 4U) & (0xFFU)) );
|
||||||
|
|
||||||
|
cframe->MsgId = (uint32_t) dbg_PID_tune_CANID;
|
||||||
|
cframe->DLC = (uint8_t) dbg_PID_tune_DLC;
|
||||||
|
cframe->IDE = (uint8_t) dbg_PID_tune_IDE;
|
||||||
|
return dbg_PID_tune_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_PID_tune_candb_dbg(dbg_PID_tune_t* _m, uint8_t* _d, uint8_t* _len, uint8_t* _ide)
|
||||||
|
{
|
||||||
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_PID_tune_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
|
_m->PID_Temp_FLL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_P_ro_toS(_m->PID_Temp_FLL_P_phys);
|
||||||
|
_m->PID_Temp_FLU_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_P_ro_toS(_m->PID_Temp_FLU_P_phys);
|
||||||
|
_m->PID_Temp_FRU_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_P_ro_toS(_m->PID_Temp_FRU_P_phys);
|
||||||
|
_m->PID_Temp_RR_P_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_P_ro_toS(_m->PID_Temp_RR_P_phys);
|
||||||
|
_m->PID_Temp_FRL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_P_ro_toS(_m->PID_Temp_FRL_P_phys);
|
||||||
|
_m->PID_Temp_RL_P_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_P_ro_toS(_m->PID_Temp_RL_P_phys);
|
||||||
|
_m->PID_Temp_FRL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_I_ro_toS(_m->PID_Temp_FRL_I_phys);
|
||||||
|
_m->PID_Temp_RL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_I_ro_toS(_m->PID_Temp_RL_I_phys);
|
||||||
|
_m->PID_Temp_FLL_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_I_ro_toS(_m->PID_Temp_FLL_I_phys);
|
||||||
|
_m->PID_Temp_FRU_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_I_ro_toS(_m->PID_Temp_FRU_I_phys);
|
||||||
|
_m->PID_Temp_FLU_I_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_I_ro_toS(_m->PID_Temp_FLU_I_phys);
|
||||||
|
_m->PID_Temp_RR_I_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_I_ro_toS(_m->PID_Temp_RR_I_phys);
|
||||||
|
_m->PID_Temp_RL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_RL_D_ro_toS(_m->PID_Temp_RL_D_phys);
|
||||||
|
_m->PID_Temp_FRL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FRL_D_ro_toS(_m->PID_Temp_FRL_D_phys);
|
||||||
|
_m->PID_Temp_FLL_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FLL_D_ro_toS(_m->PID_Temp_FLL_D_phys);
|
||||||
|
_m->PID_Temp_FRU_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FRU_D_ro_toS(_m->PID_Temp_FRU_D_phys);
|
||||||
|
_m->PID_Temp_RR_D_ro = (uint16_t) CANDB_DBG_PID_Temp_RR_D_ro_toS(_m->PID_Temp_RR_D_phys);
|
||||||
|
_m->PID_Temp_FLU_D_ro = (uint16_t) CANDB_DBG_PID_Temp_FLU_D_ro_toS(_m->PID_Temp_FLU_D_phys);
|
||||||
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
|
_d[0] |= (uint8_t) ( (_m->PID_Temp_Msg_Idx & (0x0FU)) | ((_m->PID_Temp_FLL_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLU_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRU_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RR_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRL_P_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RL_P_ro & (0x0FU)) << 4U) );
|
||||||
|
_d[1] |= (uint8_t) ( ((_m->PID_Temp_FLL_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLU_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRU_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RR_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRL_P_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RL_P_ro >> 4U) & (0xFFU)) );
|
||||||
|
_d[2] |= (uint8_t) ( (_m->PID_Temp_FRL_I_ro & (0xFFU)) | (_m->PID_Temp_RL_I_ro & (0xFFU)) | (_m->PID_Temp_FLL_I_ro & (0xFFU)) | (_m->PID_Temp_FRU_I_ro & (0xFFU)) | (_m->PID_Temp_FLU_I_ro & (0xFFU)) | (_m->PID_Temp_RR_I_ro & (0xFFU)) );
|
||||||
|
_d[3] |= (uint8_t) ( ((_m->PID_Temp_FRL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FLL_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FRU_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_FLU_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RR_I_ro >> 8U) & (0x0FU)) | ((_m->PID_Temp_RL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLL_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FRU_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_RR_D_ro & (0x0FU)) << 4U) | ((_m->PID_Temp_FLU_D_ro & (0x0FU)) << 4U) );
|
||||||
|
_d[4] |= (uint8_t) ( ((_m->PID_Temp_RL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLL_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FRU_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_RR_D_ro >> 4U) & (0xFFU)) | ((_m->PID_Temp_FLU_D_ro >> 4U) & (0xFFU)) );
|
||||||
|
|
||||||
|
*_len = (uint8_t) dbg_PID_tune_DLC;
|
||||||
|
*_ide = (uint8_t) dbg_PID_tune_IDE;
|
||||||
|
return dbg_PID_tune_CANID;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CANDB_DBG_USE_CANSTRUCT
|
||||||
|
|
||||||
uint32_t Unpack_dbg_Sen_0_candb_dbg(dbg_Sen_0_t* _m, const uint8_t* _d, uint8_t dlc_)
|
uint32_t Unpack_dbg_Sen_0_candb_dbg(dbg_Sen_0_t* _m, const uint8_t* _d, uint8_t dlc_)
|
||||||
{
|
{
|
||||||
(void)dlc_;
|
(void)dlc_;
|
||||||
|
|
@ -960,14 +1298,18 @@ uint32_t Unpack_dbg_CCU_Info_candb_dbg(dbg_CCU_Info_t* _m, const uint8_t* _d, ui
|
||||||
{
|
{
|
||||||
(void)dlc_;
|
(void)dlc_;
|
||||||
_m->dbg_Info_MultMsg_Idx = (uint8_t) ( (_d[0] & (0x03U)) );
|
_m->dbg_Info_MultMsg_Idx = (uint8_t) ( (_d[0] & (0x03U)) );
|
||||||
|
_m->dbg_Info_CCU_Aroma_Cfg = (uint8_t) ( ((_d[0] >> 2U) & (0x0FU)) );
|
||||||
_m->dbg_Info_Calibration_Ver_Date = (uint32_t) ( ((_d[2] & (0xFFU)) << 14U) | ((_d[1] & (0xFFU)) << 6U) | ((_d[0] >> 2U) & (0x3FU)) );
|
_m->dbg_Info_Calibration_Ver_Date = (uint32_t) ( ((_d[2] & (0xFFU)) << 14U) | ((_d[1] & (0xFFU)) << 6U) | ((_d[0] >> 2U) & (0x3FU)) );
|
||||||
_m->dbg_Info_CCU_SW_Ver_Date = (uint32_t) ( ((_d[2] & (0xFFU)) << 14U) | ((_d[1] & (0xFFU)) << 6U) | ((_d[0] >> 2U) & (0x3FU)) );
|
_m->dbg_Info_CCU_SW_Ver_Date = (uint32_t) ( ((_d[2] & (0xFFU)) << 14U) | ((_d[1] & (0xFFU)) << 6U) | ((_d[0] >> 2U) & (0x3FU)) );
|
||||||
|
_m->dbg_Info_CCU_Algorithm_Cfg = (uint8_t) ( (_d[1] & (0x0FU)) );
|
||||||
|
_m->dbg_Info_CCU_RearHvac_Cfg = (uint8_t) ( ((_d[1] >> 4U) & (0x0FU)) );
|
||||||
_m->dbg_Info_Calibration_Ver_Rev = (uint8_t) ( (_d[3] & (0xFFU)) );
|
_m->dbg_Info_Calibration_Ver_Rev = (uint8_t) ( (_d[3] & (0xFFU)) );
|
||||||
_m->dbg_Info_CCU_SW_Ver_Rev = (uint8_t) ( (_d[3] & (0xFFU)) );
|
_m->dbg_Info_CCU_SW_Ver_Rev = (uint8_t) ( (_d[3] & (0xFFU)) );
|
||||||
_m->dbg_Info_ActivatedCAL = (uint8_t) ( (_d[4] & (0x0FU)) );
|
_m->dbg_Info_ActivatedCAL = (uint8_t) ( (_d[4] & (0x0FU)) );
|
||||||
_m->dbg_Info_MBD_Ver_Date = (uint32_t) ( ((_d[6] & (0xFFU)) << 14U) | ((_d[5] & (0xFFU)) << 6U) | ((_d[4] >> 2U) & (0x3FU)) );
|
_m->dbg_Info_MBD_Ver_Date = (uint32_t) ( ((_d[6] & (0xFFU)) << 14U) | ((_d[5] & (0xFFU)) << 6U) | ((_d[4] >> 2U) & (0x3FU)) );
|
||||||
_m->dbg_Info_CCU_Aroma_Cfg = (uint8_t) ( ((_d[4] >> 4U) & (0x0FU)) );
|
_m->dbg_Info_Rear_Installed_Act_Num = (uint8_t) ( ((_d[5] >> 4U) & (0x03U)) );
|
||||||
_m->dbg_Info_CCU_Algorithm_Cfg = (uint8_t) ( (_d[5] & (0x0FU)) );
|
_m->dbg_Info_ActNum_Mismatch = (uint8_t) ( ((_d[5] >> 6U) & (0x01U)) );
|
||||||
|
_m->dbg_Info_VIN_Mismatch = (uint8_t) ( ((_d[5] >> 7U) & (0x01U)) );
|
||||||
_m->dbg_Info_VehicleBody = (uint16_t) ( ((_d[7] & (0xFFU)) << 8U) | (_d[6] & (0xFFU)) );
|
_m->dbg_Info_VehicleBody = (uint16_t) ( ((_d[7] & (0xFFU)) << 8U) | (_d[6] & (0xFFU)) );
|
||||||
_m->dbg_Info_MBD_Ver_Rev = (uint8_t) ( (_d[7] & (0xFFU)) );
|
_m->dbg_Info_MBD_Ver_Rev = (uint8_t) ( (_d[7] & (0xFFU)) );
|
||||||
|
|
||||||
|
|
@ -988,12 +1330,12 @@ uint32_t Pack_dbg_CCU_Info_candb_dbg(dbg_CCU_Info_t* _m, __CoderDbcCanFrame_t__*
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_CCU_Info_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_CCU_Info_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
cframe->Data[0] |= (uint8_t) ( (_m->dbg_Info_MultMsg_Idx & (0x03U)) | ((_m->dbg_Info_Calibration_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_SW_Ver_Date & (0x3FU)) << 2U) );
|
cframe->Data[0] |= (uint8_t) ( (_m->dbg_Info_MultMsg_Idx & (0x03U)) | ((_m->dbg_Info_CCU_Aroma_Cfg & (0x0FU)) << 2U) | ((_m->dbg_Info_Calibration_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_SW_Ver_Date & (0x3FU)) << 2U) );
|
||||||
cframe->Data[1] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 6U) & (0xFFU)) );
|
cframe->Data[1] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 6U) & (0xFFU)) | (_m->dbg_Info_CCU_Algorithm_Cfg & (0x0FU)) | ((_m->dbg_Info_CCU_RearHvac_Cfg & (0x0FU)) << 4U) );
|
||||||
cframe->Data[2] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 14U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 14U) & (0xFFU)) );
|
cframe->Data[2] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 14U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 14U) & (0xFFU)) );
|
||||||
cframe->Data[3] |= (uint8_t) ( (_m->dbg_Info_Calibration_Ver_Rev & (0xFFU)) | (_m->dbg_Info_CCU_SW_Ver_Rev & (0xFFU)) );
|
cframe->Data[3] |= (uint8_t) ( (_m->dbg_Info_Calibration_Ver_Rev & (0xFFU)) | (_m->dbg_Info_CCU_SW_Ver_Rev & (0xFFU)) );
|
||||||
cframe->Data[4] |= (uint8_t) ( (_m->dbg_Info_ActivatedCAL & (0x0FU)) | ((_m->dbg_Info_MBD_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_Aroma_Cfg & (0x0FU)) << 4U) );
|
cframe->Data[4] |= (uint8_t) ( (_m->dbg_Info_ActivatedCAL & (0x0FU)) | ((_m->dbg_Info_MBD_Ver_Date & (0x3FU)) << 2U) );
|
||||||
cframe->Data[5] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 6U) & (0xFFU)) | (_m->dbg_Info_CCU_Algorithm_Cfg & (0x0FU)) );
|
cframe->Data[5] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_Rear_Installed_Act_Num & (0x03U)) << 4U) | ((_m->dbg_Info_ActNum_Mismatch & (0x01U)) << 6U) | ((_m->dbg_Info_VIN_Mismatch & (0x01U)) << 7U) );
|
||||||
cframe->Data[6] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 14U) & (0xFFU)) | (_m->dbg_Info_VehicleBody & (0xFFU)) );
|
cframe->Data[6] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 14U) & (0xFFU)) | (_m->dbg_Info_VehicleBody & (0xFFU)) );
|
||||||
cframe->Data[7] |= (uint8_t) ( ((_m->dbg_Info_VehicleBody >> 8U) & (0xFFU)) | (_m->dbg_Info_MBD_Ver_Rev & (0xFFU)) );
|
cframe->Data[7] |= (uint8_t) ( ((_m->dbg_Info_VehicleBody >> 8U) & (0xFFU)) | (_m->dbg_Info_MBD_Ver_Rev & (0xFFU)) );
|
||||||
|
|
||||||
|
|
@ -1009,12 +1351,12 @@ uint32_t Pack_dbg_CCU_Info_candb_dbg(dbg_CCU_Info_t* _m, uint8_t* _d, uint8_t* _
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_CCU_Info_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_CCU_Info_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
_d[0] |= (uint8_t) ( (_m->dbg_Info_MultMsg_Idx & (0x03U)) | ((_m->dbg_Info_Calibration_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_SW_Ver_Date & (0x3FU)) << 2U) );
|
_d[0] |= (uint8_t) ( (_m->dbg_Info_MultMsg_Idx & (0x03U)) | ((_m->dbg_Info_CCU_Aroma_Cfg & (0x0FU)) << 2U) | ((_m->dbg_Info_Calibration_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_SW_Ver_Date & (0x3FU)) << 2U) );
|
||||||
_d[1] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 6U) & (0xFFU)) );
|
_d[1] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 6U) & (0xFFU)) | (_m->dbg_Info_CCU_Algorithm_Cfg & (0x0FU)) | ((_m->dbg_Info_CCU_RearHvac_Cfg & (0x0FU)) << 4U) );
|
||||||
_d[2] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 14U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 14U) & (0xFFU)) );
|
_d[2] |= (uint8_t) ( ((_m->dbg_Info_Calibration_Ver_Date >> 14U) & (0xFFU)) | ((_m->dbg_Info_CCU_SW_Ver_Date >> 14U) & (0xFFU)) );
|
||||||
_d[3] |= (uint8_t) ( (_m->dbg_Info_Calibration_Ver_Rev & (0xFFU)) | (_m->dbg_Info_CCU_SW_Ver_Rev & (0xFFU)) );
|
_d[3] |= (uint8_t) ( (_m->dbg_Info_Calibration_Ver_Rev & (0xFFU)) | (_m->dbg_Info_CCU_SW_Ver_Rev & (0xFFU)) );
|
||||||
_d[4] |= (uint8_t) ( (_m->dbg_Info_ActivatedCAL & (0x0FU)) | ((_m->dbg_Info_MBD_Ver_Date & (0x3FU)) << 2U) | ((_m->dbg_Info_CCU_Aroma_Cfg & (0x0FU)) << 4U) );
|
_d[4] |= (uint8_t) ( (_m->dbg_Info_ActivatedCAL & (0x0FU)) | ((_m->dbg_Info_MBD_Ver_Date & (0x3FU)) << 2U) );
|
||||||
_d[5] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 6U) & (0xFFU)) | (_m->dbg_Info_CCU_Algorithm_Cfg & (0x0FU)) );
|
_d[5] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 6U) & (0xFFU)) | ((_m->dbg_Info_Rear_Installed_Act_Num & (0x03U)) << 4U) | ((_m->dbg_Info_ActNum_Mismatch & (0x01U)) << 6U) | ((_m->dbg_Info_VIN_Mismatch & (0x01U)) << 7U) );
|
||||||
_d[6] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 14U) & (0xFFU)) | (_m->dbg_Info_VehicleBody & (0xFFU)) );
|
_d[6] |= (uint8_t) ( ((_m->dbg_Info_MBD_Ver_Date >> 14U) & (0xFFU)) | (_m->dbg_Info_VehicleBody & (0xFFU)) );
|
||||||
_d[7] |= (uint8_t) ( ((_m->dbg_Info_VehicleBody >> 8U) & (0xFFU)) | (_m->dbg_Info_MBD_Ver_Rev & (0xFFU)) );
|
_d[7] |= (uint8_t) ( ((_m->dbg_Info_VehicleBody >> 8U) & (0xFFU)) | (_m->dbg_Info_MBD_Ver_Rev & (0xFFU)) );
|
||||||
|
|
||||||
|
|
@ -1749,12 +2091,12 @@ uint32_t Unpack_dbg_LIN_AirQS_Stat_candb_dbg(dbg_LIN_AirQS_Stat_t* _m, const uin
|
||||||
{
|
{
|
||||||
(void)dlc_;
|
(void)dlc_;
|
||||||
_m->LIN_AirQS_LinRespErr_Stat = (uint8_t) ( (_d[0] & (0x01U)) );
|
_m->LIN_AirQS_LinRespErr_Stat = (uint8_t) ( (_d[0] & (0x01U)) );
|
||||||
_m->LIN_AirQualSen_Stat = (uint8_t) ( ((_d[0] >> 1U) & (0x03U)) );
|
_m->LIN_AirQS_Stat = (uint8_t) ( ((_d[0] >> 1U) & (0x03U)) );
|
||||||
_m->LIN_AirQualSenCombined_Val = (uint8_t) ( ((_d[0] >> 3U) & (0x03U)) );
|
_m->LIN_AirQS_Combined_Stat = (uint8_t) ( ((_d[0] >> 3U) & (0x07U)) );
|
||||||
_m->LIN_AirQualSen_Error_Stat = (uint8_t) ( ((_d[1] >> 1U) & (0x03U)) );
|
_m->LIN_AirQS_Error_Stat = (uint8_t) ( ((_d[1] >> 1U) & (0x07U)) );
|
||||||
_m->LIN_AirQualSenCOlvl_Val = (uint8_t) ( ((_d[1] >> 4U) & (0x0FU)) );
|
_m->LIN_AirQS_COlvl_Stat = (uint8_t) ( ((_d[1] >> 4U) & (0x0FU)) );
|
||||||
_m->LIN_AirQualSenNOxlvl_Val = (uint8_t) ( (_d[2] & (0x0FU)) );
|
_m->LIN_AirQS_NOxlvl_Stat = (uint8_t) ( (_d[2] & (0x0FU)) );
|
||||||
_m->LIN_AirQualSenNH3lvl_Val = (uint8_t) ( ((_d[2] >> 4U) & (0x0FU)) );
|
_m->LIN_AirQS_NH3lvl_Stat = (uint8_t) ( ((_d[2] >> 4U) & (0x0FU)) );
|
||||||
|
|
||||||
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
||||||
_m->mon1.dlc_error = (dlc_ < dbg_LIN_AirQS_Stat_DLC);
|
_m->mon1.dlc_error = (dlc_ < dbg_LIN_AirQS_Stat_DLC);
|
||||||
|
|
@ -1773,9 +2115,9 @@ uint32_t Pack_dbg_LIN_AirQS_Stat_candb_dbg(dbg_LIN_AirQS_Stat_t* _m, __CoderDbcC
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_AirQS_Stat_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_AirQS_Stat_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
cframe->Data[0] |= (uint8_t) ( (_m->LIN_AirQS_LinRespErr_Stat & (0x01U)) | ((_m->LIN_AirQualSen_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQualSenCombined_Val & (0x03U)) << 3U) );
|
cframe->Data[0] |= (uint8_t) ( (_m->LIN_AirQS_LinRespErr_Stat & (0x01U)) | ((_m->LIN_AirQS_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQS_Combined_Stat & (0x07U)) << 3U) );
|
||||||
cframe->Data[1] |= (uint8_t) ( ((_m->LIN_AirQualSen_Error_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQualSenCOlvl_Val & (0x0FU)) << 4U) );
|
cframe->Data[1] |= (uint8_t) ( ((_m->LIN_AirQS_Error_Stat & (0x07U)) << 1U) | ((_m->LIN_AirQS_COlvl_Stat & (0x0FU)) << 4U) );
|
||||||
cframe->Data[2] |= (uint8_t) ( (_m->LIN_AirQualSenNOxlvl_Val & (0x0FU)) | ((_m->LIN_AirQualSenNH3lvl_Val & (0x0FU)) << 4U) );
|
cframe->Data[2] |= (uint8_t) ( (_m->LIN_AirQS_NOxlvl_Stat & (0x0FU)) | ((_m->LIN_AirQS_NH3lvl_Stat & (0x0FU)) << 4U) );
|
||||||
|
|
||||||
cframe->MsgId = (uint32_t) dbg_LIN_AirQS_Stat_CANID;
|
cframe->MsgId = (uint32_t) dbg_LIN_AirQS_Stat_CANID;
|
||||||
cframe->DLC = (uint8_t) dbg_LIN_AirQS_Stat_DLC;
|
cframe->DLC = (uint8_t) dbg_LIN_AirQS_Stat_DLC;
|
||||||
|
|
@ -1789,9 +2131,9 @@ uint32_t Pack_dbg_LIN_AirQS_Stat_candb_dbg(dbg_LIN_AirQS_Stat_t* _m, uint8_t* _d
|
||||||
{
|
{
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_AirQS_Stat_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_AirQS_Stat_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
_d[0] |= (uint8_t) ( (_m->LIN_AirQS_LinRespErr_Stat & (0x01U)) | ((_m->LIN_AirQualSen_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQualSenCombined_Val & (0x03U)) << 3U) );
|
_d[0] |= (uint8_t) ( (_m->LIN_AirQS_LinRespErr_Stat & (0x01U)) | ((_m->LIN_AirQS_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQS_Combined_Stat & (0x07U)) << 3U) );
|
||||||
_d[1] |= (uint8_t) ( ((_m->LIN_AirQualSen_Error_Stat & (0x03U)) << 1U) | ((_m->LIN_AirQualSenCOlvl_Val & (0x0FU)) << 4U) );
|
_d[1] |= (uint8_t) ( ((_m->LIN_AirQS_Error_Stat & (0x07U)) << 1U) | ((_m->LIN_AirQS_COlvl_Stat & (0x0FU)) << 4U) );
|
||||||
_d[2] |= (uint8_t) ( (_m->LIN_AirQualSenNOxlvl_Val & (0x0FU)) | ((_m->LIN_AirQualSenNH3lvl_Val & (0x0FU)) << 4U) );
|
_d[2] |= (uint8_t) ( (_m->LIN_AirQS_NOxlvl_Stat & (0x0FU)) | ((_m->LIN_AirQS_NH3lvl_Stat & (0x0FU)) << 4U) );
|
||||||
|
|
||||||
*_len = (uint8_t) dbg_LIN_AirQS_Stat_DLC;
|
*_len = (uint8_t) dbg_LIN_AirQS_Stat_DLC;
|
||||||
*_ide = (uint8_t) dbg_LIN_AirQS_Stat_IDE;
|
*_ide = (uint8_t) dbg_LIN_AirQS_Stat_IDE;
|
||||||
|
|
@ -1804,29 +2146,15 @@ uint32_t Unpack_dbg_LIN_Aroma_Stat_candb_dbg(dbg_LIN_Aroma_Stat_t* _m, const uin
|
||||||
{
|
{
|
||||||
(void)dlc_;
|
(void)dlc_;
|
||||||
_m->LIN_AromaLinRespErr_Stat = (uint8_t) ( (_d[0] & (0x01U)) );
|
_m->LIN_AromaLinRespErr_Stat = (uint8_t) ( (_d[0] & (0x01U)) );
|
||||||
_m->LIN_Aroma_1CartridgeSw = (uint8_t) ( ((_d[0] >> 1U) & (0x01U)) );
|
_m->LIN_Aroma_CartridgeSw = (uint8_t) ( ((_d[0] >> 1U) & (0x01U)) );
|
||||||
_m->LIN_Aroma_2CartridgeSw = (uint8_t) ( ((_d[0] >> 2U) & (0x01U)) );
|
|
||||||
_m->LIN_Aroma_3CartridgeSw = (uint8_t) ( ((_d[0] >> 3U) & (0x01U)) );
|
|
||||||
_m->LIN_Aroma_Error_Stat = (uint8_t) ( ((_d[0] >> 4U) & (0x03U)) );
|
_m->LIN_Aroma_Error_Stat = (uint8_t) ( ((_d[0] >> 4U) & (0x03U)) );
|
||||||
_m->LIN_Aroma_Intens = (uint8_t) ( ((_d[0] >> 6U) & (0x03U)) );
|
_m->LIN_Aroma_Intens = (uint8_t) ( ((_d[0] >> 6U) & (0x03U)) );
|
||||||
_m->LIN_Aroma_CartridgeSel = (uint8_t) ( (_d[1] & (0x03U)) );
|
_m->LIN_Aroma_CartridgeCapacity_ro = (uint8_t) ( (_d[1] & (0x0FU)) );
|
||||||
_m->LIN_Aroma_1CartridgeFlavor = (uint8_t) ( ((_d[1] >> 2U) & (0x0FU)) );
|
|
||||||
_m->LIN_Aroma_2CartridgeFlavor = (uint8_t) ( (_d[2] & (0x0FU)) );
|
|
||||||
_m->LIN_Aroma_3CartridgeFlavor = (uint8_t) ( ((_d[2] >> 4U) & (0x0FU)) );
|
|
||||||
_m->LIN_Aroma_1CartridgeCapacity_ro = (uint8_t) ( (_d[3] & (0x0FU)) );
|
|
||||||
#ifdef CANDB_DBG_USE_SIGFLOAT
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
_m->LIN_Aroma_1CartridgeCapacity_phys = (uint8_t) CANDB_DBG_LIN_Aroma_1CartridgeCapacity_ro_fromS(_m->LIN_Aroma_1CartridgeCapacity_ro);
|
_m->LIN_Aroma_CartridgeCapacity_phys = (uint8_t) CANDB_DBG_LIN_Aroma_CartridgeCapacity_ro_fromS(_m->LIN_Aroma_CartridgeCapacity_ro);
|
||||||
#endif // CANDB_DBG_USE_SIGFLOAT
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
_m->LIN_Aroma_2CartridgeCapacity_ro = (uint8_t) ( ((_d[3] >> 4U) & (0x0FU)) );
|
_m->LIN_Aroma_CartridgeFlavor = (uint8_t) ( ((_d[1] >> 4U) & (0x0FU)) );
|
||||||
#ifdef CANDB_DBG_USE_SIGFLOAT
|
|
||||||
_m->LIN_Aroma_2CartridgeCapacity_phys = (uint8_t) CANDB_DBG_LIN_Aroma_2CartridgeCapacity_ro_fromS(_m->LIN_Aroma_2CartridgeCapacity_ro);
|
|
||||||
#endif // CANDB_DBG_USE_SIGFLOAT
|
|
||||||
|
|
||||||
_m->LIN_Aroma_3CartridgeCapacity_ro = (uint8_t) ( (_d[4] & (0x0FU)) );
|
|
||||||
#ifdef CANDB_DBG_USE_SIGFLOAT
|
|
||||||
_m->LIN_Aroma_3CartridgeCapacity_phys = (uint8_t) CANDB_DBG_LIN_Aroma_3CartridgeCapacity_ro_fromS(_m->LIN_Aroma_3CartridgeCapacity_ro);
|
|
||||||
#endif // CANDB_DBG_USE_SIGFLOAT
|
|
||||||
|
|
||||||
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
#ifdef CANDB_DBG_USE_DIAG_MONITORS
|
||||||
_m->mon1.dlc_error = (dlc_ < dbg_LIN_Aroma_Stat_DLC);
|
_m->mon1.dlc_error = (dlc_ < dbg_LIN_Aroma_Stat_DLC);
|
||||||
|
|
@ -1846,16 +2174,11 @@ uint32_t Pack_dbg_LIN_Aroma_Stat_candb_dbg(dbg_LIN_Aroma_Stat_t* _m, __CoderDbcC
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_Aroma_Stat_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_Aroma_Stat_DLC); cframe->Data[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
#ifdef CANDB_DBG_USE_SIGFLOAT
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
_m->LIN_Aroma_1CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_1CartridgeCapacity_ro_toS(_m->LIN_Aroma_1CartridgeCapacity_phys);
|
_m->LIN_Aroma_CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_CartridgeCapacity_ro_toS(_m->LIN_Aroma_CartridgeCapacity_phys);
|
||||||
_m->LIN_Aroma_2CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_2CartridgeCapacity_ro_toS(_m->LIN_Aroma_2CartridgeCapacity_phys);
|
|
||||||
_m->LIN_Aroma_3CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_3CartridgeCapacity_ro_toS(_m->LIN_Aroma_3CartridgeCapacity_phys);
|
|
||||||
#endif // CANDB_DBG_USE_SIGFLOAT
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
cframe->Data[0] |= (uint8_t) ( (_m->LIN_AromaLinRespErr_Stat & (0x01U)) | ((_m->LIN_Aroma_1CartridgeSw & (0x01U)) << 1U) | ((_m->LIN_Aroma_2CartridgeSw & (0x01U)) << 2U) | ((_m->LIN_Aroma_3CartridgeSw & (0x01U)) << 3U) | ((_m->LIN_Aroma_Error_Stat & (0x03U)) << 4U) | ((_m->LIN_Aroma_Intens & (0x03U)) << 6U) );
|
cframe->Data[0] |= (uint8_t) ( (_m->LIN_AromaLinRespErr_Stat & (0x01U)) | ((_m->LIN_Aroma_CartridgeSw & (0x01U)) << 1U) | ((_m->LIN_Aroma_Error_Stat & (0x03U)) << 4U) | ((_m->LIN_Aroma_Intens & (0x03U)) << 6U) );
|
||||||
cframe->Data[1] |= (uint8_t) ( (_m->LIN_Aroma_CartridgeSel & (0x03U)) | ((_m->LIN_Aroma_1CartridgeFlavor & (0x0FU)) << 2U) );
|
cframe->Data[1] |= (uint8_t) ( (_m->LIN_Aroma_CartridgeCapacity_ro & (0x0FU)) | ((_m->LIN_Aroma_CartridgeFlavor & (0x0FU)) << 4U) );
|
||||||
cframe->Data[2] |= (uint8_t) ( (_m->LIN_Aroma_2CartridgeFlavor & (0x0FU)) | ((_m->LIN_Aroma_3CartridgeFlavor & (0x0FU)) << 4U) );
|
|
||||||
cframe->Data[3] |= (uint8_t) ( (_m->LIN_Aroma_1CartridgeCapacity_ro & (0x0FU)) | ((_m->LIN_Aroma_2CartridgeCapacity_ro & (0x0FU)) << 4U) );
|
|
||||||
cframe->Data[4] |= (uint8_t) ( (_m->LIN_Aroma_3CartridgeCapacity_ro & (0x0FU)) );
|
|
||||||
|
|
||||||
cframe->MsgId = (uint32_t) dbg_LIN_Aroma_Stat_CANID;
|
cframe->MsgId = (uint32_t) dbg_LIN_Aroma_Stat_CANID;
|
||||||
cframe->DLC = (uint8_t) dbg_LIN_Aroma_Stat_DLC;
|
cframe->DLC = (uint8_t) dbg_LIN_Aroma_Stat_DLC;
|
||||||
|
|
@ -1870,16 +2193,11 @@ uint32_t Pack_dbg_LIN_Aroma_Stat_candb_dbg(dbg_LIN_Aroma_Stat_t* _m, uint8_t* _d
|
||||||
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_Aroma_Stat_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
uint8_t i; for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_LIN_Aroma_Stat_DLC); _d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
#ifdef CANDB_DBG_USE_SIGFLOAT
|
#ifdef CANDB_DBG_USE_SIGFLOAT
|
||||||
_m->LIN_Aroma_1CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_1CartridgeCapacity_ro_toS(_m->LIN_Aroma_1CartridgeCapacity_phys);
|
_m->LIN_Aroma_CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_CartridgeCapacity_ro_toS(_m->LIN_Aroma_CartridgeCapacity_phys);
|
||||||
_m->LIN_Aroma_2CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_2CartridgeCapacity_ro_toS(_m->LIN_Aroma_2CartridgeCapacity_phys);
|
|
||||||
_m->LIN_Aroma_3CartridgeCapacity_ro = (uint8_t) CANDB_DBG_LIN_Aroma_3CartridgeCapacity_ro_toS(_m->LIN_Aroma_3CartridgeCapacity_phys);
|
|
||||||
#endif // CANDB_DBG_USE_SIGFLOAT
|
#endif // CANDB_DBG_USE_SIGFLOAT
|
||||||
|
|
||||||
_d[0] |= (uint8_t) ( (_m->LIN_AromaLinRespErr_Stat & (0x01U)) | ((_m->LIN_Aroma_1CartridgeSw & (0x01U)) << 1U) | ((_m->LIN_Aroma_2CartridgeSw & (0x01U)) << 2U) | ((_m->LIN_Aroma_3CartridgeSw & (0x01U)) << 3U) | ((_m->LIN_Aroma_Error_Stat & (0x03U)) << 4U) | ((_m->LIN_Aroma_Intens & (0x03U)) << 6U) );
|
_d[0] |= (uint8_t) ( (_m->LIN_AromaLinRespErr_Stat & (0x01U)) | ((_m->LIN_Aroma_CartridgeSw & (0x01U)) << 1U) | ((_m->LIN_Aroma_Error_Stat & (0x03U)) << 4U) | ((_m->LIN_Aroma_Intens & (0x03U)) << 6U) );
|
||||||
_d[1] |= (uint8_t) ( (_m->LIN_Aroma_CartridgeSel & (0x03U)) | ((_m->LIN_Aroma_1CartridgeFlavor & (0x0FU)) << 2U) );
|
_d[1] |= (uint8_t) ( (_m->LIN_Aroma_CartridgeCapacity_ro & (0x0FU)) | ((_m->LIN_Aroma_CartridgeFlavor & (0x0FU)) << 4U) );
|
||||||
_d[2] |= (uint8_t) ( (_m->LIN_Aroma_2CartridgeFlavor & (0x0FU)) | ((_m->LIN_Aroma_3CartridgeFlavor & (0x0FU)) << 4U) );
|
|
||||||
_d[3] |= (uint8_t) ( (_m->LIN_Aroma_1CartridgeCapacity_ro & (0x0FU)) | ((_m->LIN_Aroma_2CartridgeCapacity_ro & (0x0FU)) << 4U) );
|
|
||||||
_d[4] |= (uint8_t) ( (_m->LIN_Aroma_3CartridgeCapacity_ro & (0x0FU)) );
|
|
||||||
|
|
||||||
*_len = (uint8_t) dbg_LIN_Aroma_Stat_DLC;
|
*_len = (uint8_t) dbg_LIN_Aroma_Stat_DLC;
|
||||||
*_ide = (uint8_t) dbg_LIN_Aroma_Stat_IDE;
|
*_ide = (uint8_t) dbg_LIN_Aroma_Stat_IDE;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -19,6 +19,12 @@ void _FMon_MONO_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
void _FMon_dbg_Act_calibration_error_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
|
{
|
||||||
|
(void)_mon;
|
||||||
|
(void)msgid;
|
||||||
|
}
|
||||||
|
|
||||||
void _FMon_dbg_Logic_State_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
void _FMon_dbg_Logic_State_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
{
|
{
|
||||||
(void)_mon;
|
(void)_mon;
|
||||||
|
|
@ -85,6 +91,18 @@ void _FMon_dbg_Sen_Amb_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
(void)msgid;
|
(void)msgid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _FMon_dbg_Act_calibration_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
|
{
|
||||||
|
(void)_mon;
|
||||||
|
(void)msgid;
|
||||||
|
}
|
||||||
|
|
||||||
|
void _FMon_dbg_PID_tune_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
|
{
|
||||||
|
(void)_mon;
|
||||||
|
(void)msgid;
|
||||||
|
}
|
||||||
|
|
||||||
void _FMon_dbg_Sen_0_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
void _FMon_dbg_Sen_0_candb_dbg(FrameMonitor_t* _mon, uint32_t msgid)
|
||||||
{
|
{
|
||||||
(void)_mon;
|
(void)_mon;
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,7 @@ static eTimeEventDbgTransmit isEventTransmitter(tCanSpamDebugTransmitter *env) {
|
||||||
++env->dbg_PID_MultMsg_Idx;
|
++env->dbg_PID_MultMsg_Idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
env->can_id = Pack_dbg_Stat_PID_candb_dbg2(&ccu_candb_dbg_tx.dbg_stat_PID, env->dbg_PID_MultMsg_Idx,
|
env->can_id = Pack_dbg_Stat_PID_candb_dbg2(&ccu_candb_dbg_tx.dbg_PID_tune, env->dbg_PID_MultMsg_Idx,
|
||||||
env->canFrame.data,
|
env->canFrame.data,
|
||||||
&env->canFrame.dlc, &env->ide);
|
&env->canFrame.dlc, &env->ide);
|
||||||
|
|
||||||
|
|
@ -454,6 +454,36 @@ static eTimeEventDbgTransmit isEventTransmitter(tCanSpamDebugTransmitter *env) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (dbg_Act_calibration_error_SEND == 1)
|
||||||
|
if (env->time_dbg_Act_calibration_error_CYC < env->timeMs) {
|
||||||
|
env->time_dbg_Act_calibration_error_CYC = env->timeMs + dbg_Act_calibration_error_CYC;
|
||||||
|
|
||||||
|
env->can_id = Pack_dbg_Act_calibration_error_candb_dbg(&ccu_candb_dbg_tx.dbg_Act_calibration_error, env->canFrame.data,
|
||||||
|
&env->canFrame.dlc, &env->ide);
|
||||||
|
|
||||||
|
return event_dbg_Act_calibration_error_CYC;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (dbg_Act_calibration_SEND == 1)
|
||||||
|
if (env->time_dbg_Act_calibration_CYC < env->timeMs) {
|
||||||
|
env->time_dbg_Act_calibration_CYC = env->timeMs + dbg_Act_calibration_CYC;
|
||||||
|
|
||||||
|
if (env->dbg_Act_calib_MultMsg_Idx >= 7) {
|
||||||
|
env->dbg_Act_calib_MultMsg_Idx = 0;
|
||||||
|
} else {
|
||||||
|
++env->dbg_Act_calib_MultMsg_Idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
env->can_id = Pack_dbg_Act_calibration_candb_dbg2(&ccu_candb_dbg_tx.dbg_Act_calibration, env->dbg_Act_calib_MultMsg_Idx,
|
||||||
|
env->canFrame.data,
|
||||||
|
&env->canFrame.dlc, &env->ide);
|
||||||
|
|
||||||
|
return event_dbg_Act_calibration_CYC;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
return event_dbg_none;
|
return event_dbg_none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@
|
||||||
#define dbg_Sen_Eva_SEND 1
|
#define dbg_Sen_Eva_SEND 1
|
||||||
#define dbg_Sen_Incar_SEND 1
|
#define dbg_Sen_Incar_SEND 1
|
||||||
#define dbg_Stat_PID_SEND 1
|
#define dbg_Stat_PID_SEND 1
|
||||||
|
#define dbg_Act_calibration_error_SEND 1
|
||||||
|
#define dbg_Act_calibration_SEND 1
|
||||||
|
|
||||||
|
|
||||||
#define dbg_Act0_CYC 100
|
#define dbg_Act0_CYC 100
|
||||||
|
|
@ -73,6 +75,8 @@
|
||||||
#define dbg_Sen_Eva_CYC 100
|
#define dbg_Sen_Eva_CYC 100
|
||||||
#define dbg_Sen_Incar_CYC__ 100
|
#define dbg_Sen_Incar_CYC__ 100
|
||||||
#define dbg_Stat_PID_SEND_CYC 100
|
#define dbg_Stat_PID_SEND_CYC 100
|
||||||
|
#define dbg_Act_calibration_error_CYC 100
|
||||||
|
#define dbg_Act_calibration_CYC 100
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
event_dbg_none = 0x00,
|
event_dbg_none = 0x00,
|
||||||
|
|
@ -105,7 +109,9 @@ typedef enum {
|
||||||
event_dbg_Sen_Duct_CYC = 0x1B,
|
event_dbg_Sen_Duct_CYC = 0x1B,
|
||||||
event_dbg_Sen_Eva_CYC = 0x1C,
|
event_dbg_Sen_Eva_CYC = 0x1C,
|
||||||
event_dbg_Sen_Incar_CYC = 0x1D,
|
event_dbg_Sen_Incar_CYC = 0x1D,
|
||||||
event_dbg_Stat_PID_CYC = 0x1E
|
event_dbg_Stat_PID_CYC = 0x1E,
|
||||||
|
event_dbg_Act_calibration_error_CYC = 0x1F,
|
||||||
|
event_dbg_Act_calibration_CYC = 0x20
|
||||||
|
|
||||||
} eTimeEventDbgTransmit;
|
} eTimeEventDbgTransmit;
|
||||||
|
|
||||||
|
|
@ -154,6 +160,8 @@ typedef struct {
|
||||||
uint32_t time_dbg_Sen_Eva_CYC;
|
uint32_t time_dbg_Sen_Eva_CYC;
|
||||||
uint32_t time_dbg_Sen_Incar_CYC;
|
uint32_t time_dbg_Sen_Incar_CYC;
|
||||||
uint32_t time_dbg_Stat_PID_CYC;
|
uint32_t time_dbg_Stat_PID_CYC;
|
||||||
|
uint32_t time_dbg_Act_calibration_error_CYC;
|
||||||
|
uint32_t time_dbg_Act_calibration_CYC;
|
||||||
|
|
||||||
tLoggerInterface *logger;
|
tLoggerInterface *logger;
|
||||||
|
|
||||||
|
|
@ -165,6 +173,7 @@ typedef struct {
|
||||||
uint8_t dbg_Auto_Duct_MultMsg_Idx;
|
uint8_t dbg_Auto_Duct_MultMsg_Idx;
|
||||||
uint8_t dbg_Auto_AF_MultMsg_Idx;
|
uint8_t dbg_Auto_AF_MultMsg_Idx;
|
||||||
uint8_t dbg_PID_MultMsg_Idx;
|
uint8_t dbg_PID_MultMsg_Idx;
|
||||||
|
uint8_t dbg_Act_calib_MultMsg_Idx;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
osThreadId_t id;
|
osThreadId_t id;
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ uint32_t Pack_dbg_Sen_Incar_candb_dbg2(dbg_Sen_Incar_t* _m, uint8_t* _d, uint8_t
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_Stat_PID_t *_m, uint8_t dbg_PID_MultMsg_Idx, uint8_t *_d, uint8_t *_len,
|
uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_PID_tune_t *_m, uint8_t dbg_PID_MultMsg_Idx, uint8_t *_d, uint8_t *_len,
|
||||||
uint8_t *_ide) {
|
uint8_t *_ide) {
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
for (i = 0u; i < 8;
|
for (i = 0u; i < 8;
|
||||||
|
|
@ -81,47 +81,49 @@ uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_Stat_PID_t *_m, uint8_t dbg_PID_MultMs
|
||||||
|
|
||||||
dbg_Stat_PID_Frame0_t *dbg_Stat_PID_Frame0 = (dbg_Stat_PID_Frame0_t *) _d;
|
dbg_Stat_PID_Frame0_t *dbg_Stat_PID_Frame0 = (dbg_Stat_PID_Frame0_t *) _d;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
switch (dbg_PID_MultMsg_Idx) {
|
switch (dbg_PID_MultMsg_Idx) {
|
||||||
case 0:
|
case 0:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_FUL;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_FLU_P_ro;//_m->P_FUL;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_FUL;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_FLU_I_ro;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_FUL;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_FLU_D_ro;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_FUR;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_FRU_P_ro;//_m->P_FUR;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_FUR;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_FRU_I_ro;;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_FUR;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_FRU_D_ro;;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_FLL;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_FLL_P_ro;//_m->P_FLL;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_FLL;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_FLL_I_ro;//_m->I_FLL;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_FLL;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_FLL_D_ro;//_m->D_FLL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_FRL;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_FRL_P_ro;//_m->P_FRL;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_FRL;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_FRL_I_ro;//_m->I_FRL;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_FRL;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_FRL_D_ro;//_m->D_FRL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_RL;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_RL_P_ro;//_m->P_RL;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_RL;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_RL_I_ro;//_m->I_RL;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_RL;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_RL_D_ro;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
dbg_Stat_PID_Frame0->dbg_PID_MultMsg_Idx = dbg_PID_MultMsg_Idx;
|
||||||
dbg_Stat_PID_Frame0->dbg_P = _m->P_RR;
|
dbg_Stat_PID_Frame0->dbg_P = _m->PID_Temp_RR_P_ro;//_m->P_RR;
|
||||||
dbg_Stat_PID_Frame0->dbg_I = _m->I_RR;
|
dbg_Stat_PID_Frame0->dbg_I = _m->PID_Temp_RR_I_ro;;
|
||||||
dbg_Stat_PID_Frame0->dbg_D = _m->D_RR;
|
dbg_Stat_PID_Frame0->dbg_D = _m->PID_Temp_RR_D_ro;;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -129,9 +131,83 @@ uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_Stat_PID_t *_m, uint8_t dbg_PID_MultMs
|
||||||
*_len = 8;
|
*_len = 8;
|
||||||
*_ide = 0;
|
*_ide = 0;
|
||||||
|
|
||||||
return (0x3f7U);
|
return (dbg_PID_tune_CANID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_candb_dbg2(dbg_Act_calibration_t *_m, uint8_t dbg_Act_calibration_Idx, uint8_t *_d, uint8_t *_len,
|
||||||
|
uint8_t *_ide) {
|
||||||
|
uint8_t i;
|
||||||
|
for (i = 0u; i < 8;
|
||||||
|
_d[i++] = CANDB_DBG_INITIAL_BYTE_VALUE);
|
||||||
|
|
||||||
|
dbg_Act_calibration_Frame0_t *dbg_Act_calibration_Frame0 = (dbg_Act_calibration_Frame0_t *) _d;
|
||||||
|
|
||||||
|
switch (dbg_Act_calibration_Idx) {
|
||||||
|
case 0:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_00_Def;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_01_Vent_SFL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_02_Vent_CFL;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_03_Foot_1FL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_04_Foot_2FL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_05_Vent_CFR;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_06_Vent_SFR;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_07_Foot_1FR;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_08_Foot_2FR;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_09_Vent_SRL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_10_Vent_CRL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_11_Foot_RL;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_12_Vent_CRR;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_13_Vent_SRR;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_14_Foot_RR;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 5:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_15_TempU_FL;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_16_TempL_FL;;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_17_TempU_FR;;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 6:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_18_TempL_FR;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_19_Temp_RL;;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_20_Temp_RR;;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 7:
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act_calib_MultMsg_Idx = dbg_Act_calibration_Idx;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act0 = _m->dbg_Act_calib_21_Rec;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act1 = _m->dbg_Act_calib_22_OSA;;
|
||||||
|
dbg_Act_calibration_Frame0->dbg_Act2 = _m->dbg_Act_calib_23_SealingValve;;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*_len = 8;
|
||||||
|
*_ide = 0;
|
||||||
|
|
||||||
|
return (dbg_Act_calibration_CANID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t Pack_dbg_Sen_Incar_candb_dbg2(dbg_Sen_Incar_t *_m, uint8_t *_d, uint8_t *_len, uint8_t *_ide) {
|
uint32_t Pack_dbg_Sen_Incar_candb_dbg2(dbg_Sen_Incar_t *_m, uint8_t *_d, uint8_t *_len, uint8_t *_ide) {
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Sen_Incar_DLC);
|
for (i = 0u; i < CANDB_DBG_VALIDATE_DLC(dbg_Sen_Incar_DLC);
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,15 @@ typedef struct {
|
||||||
uint32_t reserved0: 24;
|
uint32_t reserved0: 24;
|
||||||
} __attribute__((packed)) dbg_Stat_PID_Frame0_t;
|
} __attribute__((packed)) dbg_Stat_PID_Frame0_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint8_t dbg_Act_calib_MultMsg_Idx;
|
||||||
|
uint16_t dbg_Act0;
|
||||||
|
uint16_t dbg_Act1;
|
||||||
|
uint16_t dbg_Act2;
|
||||||
|
uint8_t reserved0;
|
||||||
|
} __attribute__((packed)) dbg_Act_calibration_Frame0_t;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Упаковка данных датчиков салона (исправленная версия)
|
* @brief Упаковка данных датчиков салона (исправленная версия)
|
||||||
* @param _m Указатель на структуру с данными
|
* @param _m Указатель на структуру с данными
|
||||||
|
|
@ -156,8 +165,10 @@ uint32_t Pack_dbg_Auto_Duct_candb_dbg2(dbg_Auto_Duct_t *_m, uint8_t *_d, uint8_t
|
||||||
uint32_t Pack_dbg_Auto_AF_candb_dbg2(dbg_Auto_AF_t *_m, uint8_t *_d, uint8_t *_len, uint8_t *_ide);
|
uint32_t Pack_dbg_Auto_AF_candb_dbg2(dbg_Auto_AF_t *_m, uint8_t *_d, uint8_t *_len, uint8_t *_ide);
|
||||||
|
|
||||||
|
|
||||||
uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_Stat_PID_t *_m, uint8_t dbg_PID_MultMsg_Idx, uint8_t *_d, uint8_t *_len, uint8_t *_ide);
|
uint32_t Pack_dbg_Stat_PID_candb_dbg2(dbg_PID_tune_t *_m, uint8_t dbg_PID_MultMsg_Idx, uint8_t *_d, uint8_t *_len, uint8_t *_ide);
|
||||||
|
|
||||||
|
uint32_t Pack_dbg_Act_calibration_candb_dbg2(dbg_Act_calibration_t *_m, uint8_t dbg_Act_calibration_Idx, uint8_t *_d, uint8_t *_len,
|
||||||
|
uint8_t *_ide);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1020,7 +1020,7 @@ static _Noreturn void ModelTask_Thread(tModelTask *env) {
|
||||||
memcpy(&env->ccu_candb_dbg_tx.dbg_LIN_Aroma_Stat, &rtY.dbg_LIN_Aroma_Stat_t_model, sizeof(env->ccu_candb_dbg_tx.dbg_LIN_Aroma_Stat));
|
memcpy(&env->ccu_candb_dbg_tx.dbg_LIN_Aroma_Stat, &rtY.dbg_LIN_Aroma_Stat_t_model, sizeof(env->ccu_candb_dbg_tx.dbg_LIN_Aroma_Stat));
|
||||||
|
|
||||||
memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Demist, &rtY.dbg_Sen_Demist_model_out, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Demist));
|
memcpy(&env->ccu_candb_dbg_tx.dbg_Sen_Demist, &rtY.dbg_Sen_Demist_model_out, sizeof(env->ccu_candb_dbg_tx.dbg_Sen_Demist));
|
||||||
memcpy(&env->ccu_candb_dbg_tx.dbg_stat_PID, &rtY.dbg_PID_valve_model_out, sizeof(env->ccu_candb_dbg_tx.dbg_stat_PID));
|
memcpy(&env->ccu_candb_dbg_tx.dbg_PID_tune, &rtY.dbg_PID_valve_model_out, sizeof(env->ccu_candb_dbg_tx.dbg_PID_tune));
|
||||||
|
|
||||||
//конец--------------------------------------------------ВЫХОД МОДЕЛИ ДЛЯ CAN-------------------------------------------
|
//конец--------------------------------------------------ВЫХОД МОДЕЛИ ДЛЯ CAN-------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue