Обновление
This commit is contained in:
parent
e44d523c90
commit
94e0bb8337
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,45 +1,239 @@
|
||||||
/*
|
/*
|
||||||
* File: HVAC_model_private.h
|
* File: HVAC_model_private.h
|
||||||
*
|
*
|
||||||
* Code generated for Simulink model 'HVAC_model'.
|
* Code generated for Simulink model 'HVAC_model'.
|
||||||
*
|
*
|
||||||
* Model version : 1.625
|
* Model version : 1.760
|
||||||
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
* C/C++ source code generated on : Tue Feb 17 18:15:10 2026
|
* C/C++ source code generated on : Fri Apr 3 18:15:49 2026
|
||||||
*
|
*
|
||||||
* Target selection: ert.tlc
|
* Target selection: ert.tlc
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||||
* Emulation hardware selection:
|
* Emulation hardware selection:
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
* Differs from embedded hardware (MATLAB Host)
|
||||||
* Code generation objectives: Unspecified
|
* Code generation objectives: Unspecified
|
||||||
* Validation result: Not run
|
* Validation result: Not run
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HVAC_model_private_h_
|
#ifndef HVAC_model_private_h_
|
||||||
#define HVAC_model_private_h_
|
#define HVAC_model_private_h_
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "HVAC_model_types.h"
|
#include "HVAC_model.h"
|
||||||
#include "HVAC_model.h"
|
#include "HVAC_model_types.h"
|
||||||
|
|
||||||
extern int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const
|
/* Includes for objects with custom storage classes */
|
||||||
double table[], uint32_t maxIndex);
|
#include "Rs_Cal_Base.h"
|
||||||
extern void IfActionSubsystem3(int8_t rtu_stepIn, int8_t *rty_step);
|
#ifndef UCHAR_MAX
|
||||||
extern void InitialCPOSMin(double rtu_LOGGER, int8_t rtu_step, int8_t *rty_y);
|
#include <limits.h>
|
||||||
extern void NormalMode(double rtu_LOGGER, int8_t rtu_step, int8_t *rty_y);
|
#endif
|
||||||
extern void MovetopositionMin(double rtu_LOGGER, int8_t rtu_step, int8_t *rty_y);
|
|
||||||
extern void MINPOSITION(int16_t rty_y[9], double rtu_LOGGER);
|
#if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
|
||||||
extern void InitialCPOSMax(double rtu_LOGGER, int8_t rtu_step, int8_t *rty_y);
|
#error Code was generated for compiler with different sized uchar/char. \
|
||||||
extern void MovetopositionMax(int8_t rtu_step, double rtu_LOGGER, int8_t *rty_y);
|
Consider adjusting Test hardware word size settings on the \
|
||||||
extern void MINPOSITION_g(int16_t rty_y[9], double rtu_LOGGER);
|
Hardware Implementation pane to match your compiler word sizes as \
|
||||||
extern void WriteIgnition(double rtu_LOGGER, int8_t rtu_step);
|
defined in limits.h of the compiler. Alternatively, you can \
|
||||||
extern void IfActionSubsystem3_m(int8_t rtu_stepIn, int8_t *rty_step);
|
select the Test hardware is the same as production hardware option and \
|
||||||
extern void IfActionSubsystem3_n(int8_t rtu_stepIn, int8_t *rty_step);
|
select the Enable portable word sizes option on the Code Generation > \
|
||||||
|
Verification pane for ERT based targets, which will disable the \
|
||||||
#endif /* HVAC_model_private_h_ */
|
preprocessor word size checks.
|
||||||
|
#endif
|
||||||
/*
|
|
||||||
* File trailer for generated code.
|
#if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
|
||||||
*
|
#error Code was generated for compiler with different sized ushort/short. \
|
||||||
* [EOF]
|
Consider adjusting Test hardware word size settings on the \
|
||||||
*/
|
Hardware Implementation pane to match your compiler word sizes as \
|
||||||
|
defined in limits.h of the compiler. Alternatively, you can \
|
||||||
|
select the Test hardware is the same as production hardware option and \
|
||||||
|
select the Enable portable word sizes option on the Code Generation > \
|
||||||
|
Verification pane for ERT based targets, which will disable the \
|
||||||
|
preprocessor word size checks.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
|
||||||
|
#error Code was generated for compiler with different sized uint/int. \
|
||||||
|
Consider adjusting Test hardware word size settings on the \
|
||||||
|
Hardware Implementation pane to match your compiler word sizes as \
|
||||||
|
defined in limits.h of the compiler. Alternatively, you can \
|
||||||
|
select the Test hardware is the same as production hardware option and \
|
||||||
|
select the Enable portable word sizes option on the Code Generation > \
|
||||||
|
Verification pane for ERT based targets, which will disable the \
|
||||||
|
preprocessor word size checks.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
|
||||||
|
#error Code was generated for compiler with different sized ulong/long. \
|
||||||
|
Consider adjusting Test hardware word size settings on the \
|
||||||
|
Hardware Implementation pane to match your compiler word sizes as \
|
||||||
|
defined in limits.h of the compiler. Alternatively, you can \
|
||||||
|
select the Test hardware is the same as production hardware option and \
|
||||||
|
select the Enable portable word sizes option on the Code Generation > \
|
||||||
|
Verification pane for ERT based targets, which will disable the \
|
||||||
|
preprocessor word size checks.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */
|
||||||
|
extern double rt_roundd(double u);
|
||||||
|
extern uint16_t look1_iu16bs16lu64n32_binlcse(uint16_t u0, const int16_t bp0[],
|
||||||
|
const uint16_t table[], uint32_t maxIndex);
|
||||||
|
extern uint32_t binsearch_u32s16(int16_t u, const int16_t bp[], uint32_t
|
||||||
|
startIndex, uint32_t maxIndex);
|
||||||
|
extern uint8_t look2_iu8bu8s16lu64n32_binlcse(uint8_t u0, uint8_t u1, const
|
||||||
|
uint8_t bp0[], const int16_t bp1[], const uint8_t table[], const uint32_t
|
||||||
|
maxIndex[], uint32_t stride);
|
||||||
|
extern int16_t look1_iu16tdIs16_binlcs(uint16_t u0, const uint16_t bp0[], const
|
||||||
|
double table[], uint32_t maxIndex);
|
||||||
|
extern uint32_t plook_u32s16_bincka(int16_t u, const int16_t bp[], uint32_t
|
||||||
|
maxIndex);
|
||||||
|
extern void get_tg_FLL_for_LVL(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp,
|
||||||
|
int16_t *rty_vals);
|
||||||
|
extern void get_tg_FLL_for_LVL_j(uint8_t rtu_ambient_Lvl, uint8_t rtu_set_tmp,
|
||||||
|
int16_t *rty_vals);
|
||||||
|
extern void g_assFLOW_BI_AMB_TGT_n(uint8_t rtu_LVL, int16_t
|
||||||
|
*rty_c_g_assFLOW_BI_AMB_TGT);
|
||||||
|
extern void Bilevel(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9],
|
||||||
|
uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
||||||
|
extern void g_assFLOW_BI_AMB_TGT_e(uint8_t rtu_LVL, int16_t
|
||||||
|
*rty_c_g_assFLOW_BI2_AMB_TGT);
|
||||||
|
extern void Bilevel2(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9],
|
||||||
|
uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
||||||
|
extern void g_aucFLOW_AF_FOOT_VALVE_MAX_e(uint8_t rtu_LVL, uint8_t
|
||||||
|
*rty_c_g_aucFLOW_AF_FOOT_VALVE_MAX);
|
||||||
|
extern void g_assFLOW_AF_AMB_TGT_g(uint8_t rtu_LVL, int16_t
|
||||||
|
*rty_c_g_assFLOW_AF_AMB_TGT);
|
||||||
|
extern void Afoot(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1[9],
|
||||||
|
uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
||||||
|
extern void g_aucFLOW_AFSM_FOOT_VALVE_MAX_f(uint8_t rtu_LVL, uint8_t
|
||||||
|
*rty_c_g_aucFLOW_AFSM_FOOT_VALVE_MAX);
|
||||||
|
extern void Afoot_Summer(int16_t rtu_Amb_Fb, uint8_t rtu_LVL, uint16_t rty_Out1
|
||||||
|
[9], uint8_t rtu_setTempFL, uint8_t rtu_setTempFR);
|
||||||
|
extern void left(uint8_t rtu_idx, uint16_t rty_vals[9]);
|
||||||
|
extern void StopMode(int8_t rtu_stepIn, int8_t *rty_step, const uint8_t
|
||||||
|
*rtd_Busy_private_a, uint8_t rtd_COM_private_h[9], const
|
||||||
|
uint8_t *rtd_Error_Connect_private_f, uint8_t
|
||||||
|
rtd_MODE_private_a[9]);
|
||||||
|
extern void g_assSTART_ENTER_INCAR_a(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void Level3(int8_t *rty_step1, const uint16_t *rtd_ECT, const uint8_t
|
||||||
|
*rtd_LEVEL, const double *rtd_MODE_DRIVER);
|
||||||
|
extern void Level0(int8_t *rty_step);
|
||||||
|
extern void incarfilterdown(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void incarfilterup(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void g_assSTART_COOLANT_STEP0_TO_1_k(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void uwayvalvestatus(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Dtg_FrontLower_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Dtg_FrontUpper_X(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Incartempgotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void blowerFR(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
|
extern void modeFRstep1(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void windowheating(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Timegotofromstep1tostep2(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void ECTminmax(uint8_t rtu_LVL, int16_t rty_out[2]);
|
||||||
|
extern void blowerminmax(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
||||||
|
extern void Level4(int8_t *rty_step, uint16_t *rtd_Blower_FL, uint16_t
|
||||||
|
*rtd_Blower_FR, uint8_t *rtd_Dtg_FLL, uint8_t *rtd_Dtg_FLR,
|
||||||
|
uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR, const uint16_t
|
||||||
|
*rtd_ECT, uint8_t *rtd_El_window_heating, const int16_t
|
||||||
|
*rtd_Incar_FL, uint8_t *rtd_Incar_filter_down_value, uint8_t *
|
||||||
|
rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t *
|
||||||
|
rtd_Mode_FL, uint8_t *rtd_Mode_FR, double *rtd_Recirculation,
|
||||||
|
uint8_t *rtd_Valve_3_way, const int8_t
|
||||||
|
*rtd_step_start_controle_front, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level4 *localDW);
|
||||||
|
extern void uwayvalvestatus_m(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void timeforstep(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void timeforstep_a(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Timegotofromstep2tostep3(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void blowerstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
|
extern void blowertimeforstep(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
|
extern void step_l(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void timeforstep_f(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void windowheating_k(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void autodemistautodefog(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Level3_d(int8_t *rty_step, uint8_t *rtd_Autodefog, uint16_t
|
||||||
|
*rtd_Blower_FL, uint16_t *rtd_Blower_FR, const uint16_t
|
||||||
|
*rtd_Blower_logic_FL, uint8_t *rtd_Dtg_FLL, uint8_t
|
||||||
|
*rtd_Dtg_FLR, uint8_t *rtd_Dtg_FUL, uint8_t *rtd_Dtg_FUR,
|
||||||
|
const uint8_t *rtd_Dtg_logic_FLL, const uint8_t
|
||||||
|
*rtd_Dtg_logic_FUL, uint8_t *rtd_El_window_heating, const
|
||||||
|
bool *rtd_HI_logic_on, uint8_t *rtd_Incar_filter_down_value,
|
||||||
|
uint8_t *rtd_Incar_filter_up_value, const uint8_t
|
||||||
|
*rtd_LEVEL, uint8_t *rtd_Mode_FL, uint8_t *rtd_Mode_FR,
|
||||||
|
const uint8_t *rtd_Mode_logic_FL, double *rtd_Recirculation,
|
||||||
|
uint8_t *rtd_Valve_3_way, const int8_t
|
||||||
|
*rtd_step_start_controle_front, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level3_h *localDW);
|
||||||
|
extern void Step3(int8_t *rty_step, int8_t *rtd_start_control_finished_front);
|
||||||
|
extern void g_ausSTART_ENTER_SETTEMP_p(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void g_assSTART_ENTER_INCAR_l(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void g_assSTART_ENTER_COOLANT_i(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void Level4_i(int8_t *rty_step1, const uint16_t *rtd_ECT, const int16_t
|
||||||
|
*rtd_Incar_RR, const uint8_t *rtd_LEVEL, const double
|
||||||
|
*rtd_MODE_RR_passenger);
|
||||||
|
extern void incarfilterdown_j(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void incarfilterup_d(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void g_assSTART_COOLANT_STEP0_TO_1_g(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void Level4_h(int8_t *rty_step1, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
|
const uint16_t *rtd_ECT, uint8_t
|
||||||
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
|
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL,
|
||||||
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, uint8_t
|
||||||
|
*rtd_Valve_2_way, uint8_t *rtd_Valve_3_way);
|
||||||
|
extern void uwayvalve(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Dtg_rear(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Incartempgotofromstep1tostep2_b(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void Timegotofromstep1tostep2_h(uint8_t rtu_LVL, int16_t *rty_out);
|
||||||
|
extern void moderearstep1(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Level0_h(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
|
const int16_t *rtd_Incar_RR, uint8_t
|
||||||
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
|
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL,
|
||||||
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
||||||
|
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
||||||
|
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level0_p *localDW);
|
||||||
|
extern void blowerstartfinish(uint8_t rtu_LVL, uint16_t rty_out[2]);
|
||||||
|
extern void ECTminmax_h(uint8_t rtu_LVL, int16_t rty_out[2]);
|
||||||
|
extern void Level4_d(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
|
*rtd_Blower_RR, uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR,
|
||||||
|
const uint16_t *rtd_ECT, const int16_t *rtd_Incar_RR,
|
||||||
|
uint8_t *rtd_Incar_filter_down_value, uint8_t
|
||||||
|
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL,
|
||||||
|
uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR, double
|
||||||
|
*rtd_Recirculation, uint8_t *rtd_Valve_2_way, const int8_t *
|
||||||
|
rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level4_m *localDW);
|
||||||
|
extern void timeforstep_fu(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void blowerstep_j(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
|
extern void blowertimeforstep_a(uint8_t rtu_LVL, uint16_t *rty_out);
|
||||||
|
extern void step_c(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void timeforstep_h(uint8_t rtu_LVL, uint8_t *rty_out);
|
||||||
|
extern void Level0_j(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
|
*rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR,
|
||||||
|
uint8_t *rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t
|
||||||
|
*rtd_Dtg_logic_RR, uint8_t *rtd_Incar_filter_down_value,
|
||||||
|
uint8_t *rtd_Incar_filter_up_value, const uint8_t
|
||||||
|
*rtd_LEVEL, uint8_t *rtd_Mode_RL, uint8_t *rtd_Mode_RR,
|
||||||
|
const uint8_t *rtd_Mode_logic_RR, double *rtd_Recirculation,
|
||||||
|
uint8_t *rtd_Valve_2_way, const int8_t
|
||||||
|
*rtd_step_start_controle_rear, const uint32_t *rtd_t_now,
|
||||||
|
DW_Level0_n *localDW);
|
||||||
|
extern void Level2(int8_t *rty_step, uint16_t *rtd_Blower_RL, uint16_t
|
||||||
|
*rtd_Blower_RR, const uint16_t *rtd_Blower_logic_RR, uint8_t *
|
||||||
|
rtd_Dtg_RL, uint8_t *rtd_Dtg_RR, const uint8_t
|
||||||
|
*rtd_Dtg_logic_RR, const bool *rtd_HI_logic_on, uint8_t
|
||||||
|
*rtd_Incar_filter_down_value, uint8_t
|
||||||
|
*rtd_Incar_filter_up_value, const uint8_t *rtd_LEVEL, uint8_t
|
||||||
|
*rtd_Mode_RL, uint8_t *rtd_Mode_RR, const uint8_t
|
||||||
|
*rtd_Mode_logic_RR, double *rtd_Recirculation, uint8_t
|
||||||
|
*rtd_Valve_2_way, const int8_t *rtd_step_start_controle_rear,
|
||||||
|
const uint32_t *rtd_t_now, DW_Level2 *localDW);
|
||||||
|
|
||||||
|
#endif /* HVAC_model_private_h_ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* File trailer for generated code.
|
||||||
|
*
|
||||||
|
* [EOF]
|
||||||
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,209 +1,287 @@
|
||||||
/*
|
/*
|
||||||
* File: HVAC_model_types.h
|
* File: HVAC_model_types.h
|
||||||
*
|
*
|
||||||
* Code generated for Simulink model 'HVAC_model'.
|
* Code generated for Simulink model 'HVAC_model'.
|
||||||
*
|
*
|
||||||
* Model version : 1.625
|
* Model version : 1.760
|
||||||
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
* C/C++ source code generated on : Tue Feb 17 18:15:10 2026
|
* C/C++ source code generated on : Fri Apr 3 18:15:49 2026
|
||||||
*
|
*
|
||||||
* Target selection: ert.tlc
|
* Target selection: ert.tlc
|
||||||
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
* Embedded hardware selection: ARM Compatible->ARM Cortex-M
|
||||||
* Emulation hardware selection:
|
* Emulation hardware selection:
|
||||||
* Differs from embedded hardware (MATLAB Host)
|
* Differs from embedded hardware (MATLAB Host)
|
||||||
* Code generation objectives: Unspecified
|
* Code generation objectives: Unspecified
|
||||||
* Validation result: Not run
|
* Validation result: Not run
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HVAC_model_types_h_
|
#ifndef HVAC_model_types_h_
|
||||||
#define HVAC_model_types_h_
|
#define HVAC_model_types_h_
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusError_
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusError_
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusError_
|
#define DEFINED_TYPEDEF_FOR_CmdBusError_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t CCU_IncarTempErrF_Stat;
|
uint8_t CCU_IncarTempErrF_Stat;
|
||||||
uint8_t CCU_IncarTempErrR_Stat;
|
uint8_t CCU_IncarTempErrR_Stat;
|
||||||
uint8_t CCU_DuctTempSenErrF_Stat;
|
uint8_t CCU_DuctTempSenErrF_Stat;
|
||||||
uint8_t CCU_DuctTempSenErrR_Stat;
|
uint8_t CCU_DuctTempSenErrR_Stat;
|
||||||
uint8_t CCU_EvaTempSenErrF_Stat;
|
uint8_t CCU_EvaTempSenErrF_Stat;
|
||||||
uint8_t CCU_EvaTempSenErrR_Stat;
|
uint8_t CCU_EvaTempSenErrR_Stat;
|
||||||
uint8_t CCU_DeflectorSwErrF_Stat;
|
uint8_t CCU_DeflectorSwErrF_Stat;
|
||||||
uint8_t CCU_DeflectorSwErrR_Stat;
|
uint8_t CCU_DeflectorSwErrR_Stat;
|
||||||
uint8_t CCU_PressSenErr_Stat;
|
uint8_t CCU_PressSenErr_Stat;
|
||||||
uint8_t CCU_AmbienTemptSenErr_Stat;
|
uint8_t CCU_AmbienTemptSenErr_Stat;
|
||||||
uint8_t CCU_SealingValveErr_Stat;
|
uint8_t CCU_SealingValveErr_Stat;
|
||||||
uint8_t CCU_ETXVerr_Stat;
|
uint8_t CCU_ETXVerr_Stat;
|
||||||
uint8_t CCU_HVACfanOrTXVerrF_Stat;
|
uint8_t CCU_HVACfanOrTXVerrF_Stat;
|
||||||
uint8_t CCU_HVACfanOrTXVerrR_Stat;
|
uint8_t CCU_HVACfanOrTXVerrR_Stat;
|
||||||
uint8_t CCU_ActuatorErrF_Stat;
|
uint8_t CCU_ActuatorErrF_Stat;
|
||||||
uint8_t CCU_ActuatorErrR_Stat;
|
uint8_t CCU_ActuatorErrR_Stat;
|
||||||
uint8_t CCU_UltravioletErr_Stat;
|
uint8_t CCU_UltravioletErr_Stat;
|
||||||
uint8_t CCU_VinRecordErr_Stat;
|
uint8_t CCU_VinRecordErr_Stat;
|
||||||
uint8_t CCU_AirQualSenErr_Stat;
|
uint8_t CCU_AirQualSenErr_Stat;
|
||||||
uint8_t CCU_CommErr_Stat;
|
uint8_t CCU_CommErr_Stat;
|
||||||
uint8_t CCU_TWVerr_Stat;
|
uint8_t CCU_TWVerr_Stat;
|
||||||
uint8_t CCU_IonizationErr_Stat;
|
uint8_t CCU_IonizationErr_Stat;
|
||||||
uint8_t CCU_AromaErr_Stat;
|
uint8_t CCU_AromaErr_Stat;
|
||||||
} CmdBusError;
|
} CmdBusError;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusADCData_
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
#define DEFINED_TYPEDEF_FOR_CmdBusADCData_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int8_t Battery;
|
uint16_t Sensor_Ambient_Temp;
|
||||||
int16_t AMB;
|
uint16_t IGN_ANS;
|
||||||
int16_t Incar_FL;
|
uint16_t Sensor_AC_Pressure;
|
||||||
int16_t Incar_FR;
|
uint16_t Sensor_Incar_Temp_FL;
|
||||||
int16_t Incar_RL;
|
uint16_t Sensor_Incar_Temp_RL;
|
||||||
int16_t Incar_RR;
|
uint16_t Sensor_Rear_Evap_Temp;
|
||||||
int16_t Eva_F;
|
uint16_t Sensor_Evap_Temp;
|
||||||
int16_t Eva_R;
|
uint16_t Sensor_Rear_Duct1;
|
||||||
int16_t Pressure;
|
uint16_t Sensor_Rear_Duct2;
|
||||||
int16_t Duct_FL_Upper;
|
uint16_t Sensor_Front_Duct1;
|
||||||
int16_t Duct_FL_Lower;
|
uint16_t Sensor_Front_Duct2;
|
||||||
int16_t Duct_FR_Upper;
|
uint16_t Sensor_Front_Duct3;
|
||||||
int16_t Duct_FR_Lower;
|
uint16_t Sensor_Front_Duct4;
|
||||||
int16_t Duct_RL;
|
uint16_t Sensor_Rear_Duct3;
|
||||||
int16_t Duct_RR;
|
uint16_t Sensor_Rear_Duct4;
|
||||||
int16_t Duct_Side_FL;
|
uint16_t Sensor_Incar_Temp_FR;
|
||||||
int16_t Duct_Side_FR;
|
uint16_t Sensor_Incar_Temp_RR;
|
||||||
int16_t Duct_Side_RL;
|
uint16_t Sensor_Rear_Duct5;
|
||||||
int16_t Duct_Side_RR;
|
uint16_t Sensor_Rear_Duct6;
|
||||||
int8_t AQS;
|
uint16_t Reserve_Sensor_Duct_Temp_1;
|
||||||
} CmdBusStatus;
|
uint16_t Sensor_Front_Duct5;
|
||||||
|
uint16_t Sensor_Front_Duct6;
|
||||||
#endif
|
uint16_t BTS5120_2EKA_ShutoffValvePowerTXV1;
|
||||||
|
uint16_t BTS5120_2EKA_ShutoffValvePowerTXV2;
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusADCData_
|
uint16_t Pressure_DIAG;
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusADCData_
|
uint16_t BTS5180_2EKA_ShutOFFValveFront;
|
||||||
|
uint16_t BTS5180_2EKA_ShutOFFValveRear;
|
||||||
typedef struct {
|
uint16_t BTS5180_2EKA_TwoWayValve;
|
||||||
uint16_t Sensor_Ambient_Temp;
|
uint16_t BTS5180_2EKA_ReservePowerSupply;
|
||||||
uint16_t IGN_ANS;
|
uint16_t BTS5180_2EKA_FrontIncarMotor;
|
||||||
uint16_t Sensor_AC_Pressure;
|
uint16_t BTS5180_2EKA_RearIncarMotor;
|
||||||
uint16_t Sensor_Incar_Temp_FL;
|
uint16_t BTS5180_2EKA_ChannelPTCPower1;
|
||||||
uint16_t Sensor_Incar_Temp_RL;
|
uint16_t BTS5180_2EKA_ChannelPTCPower2;
|
||||||
uint16_t Sensor_Rear_Evap_Temp;
|
uint16_t Reserve_Sensor_Duct_Temp_2;
|
||||||
uint16_t Sensor_Evap_Temp;
|
uint16_t VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB;
|
||||||
uint16_t Sensor_Rear_Duct1;
|
uint16_t VN7008AJ_DIAG_RearLINActuatorPowerDriverC;
|
||||||
uint16_t Sensor_Rear_Duct2;
|
uint16_t PBATT_CHECK;
|
||||||
uint16_t Sensor_Front_Duct1;
|
uint16_t VN7008AJ_FrontLINActuatorPowerDriverAB;
|
||||||
uint16_t Sensor_Front_Duct2;
|
uint16_t VN7008AJ_RearLINActuatorPowerDriverC;
|
||||||
uint16_t Sensor_Front_Duct3;
|
} CmdBusADCData;
|
||||||
uint16_t Sensor_Front_Duct4;
|
|
||||||
uint16_t Sensor_Rear_Duct3;
|
#endif
|
||||||
uint16_t Sensor_Rear_Duct4;
|
|
||||||
uint16_t Sensor_Incar_Temp_FR;
|
#ifndef DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU1_Bus_
|
||||||
uint16_t Sensor_Incar_Temp_RR;
|
#define DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU1_Bus_
|
||||||
uint16_t Sensor_Rear_Duct5;
|
|
||||||
uint16_t Sensor_Rear_Duct6;
|
typedef struct {
|
||||||
uint16_t Reserve_Sensor_Duct_Temp_1;
|
uint8_t FIU_TargetTempFL_Val_ro;
|
||||||
uint16_t Sensor_Front_Duct5;
|
uint8_t FIU_FootTempCorFL_Req;
|
||||||
uint16_t Sensor_Front_Duct6;
|
uint8_t FIU_TargetTempFR_Val_ro;
|
||||||
uint16_t BTS5120_2EKA_ShutoffValvePowerTXV1;
|
uint8_t FIU_FootTempCorFR_Req;
|
||||||
uint16_t BTS5120_2EKA_ShutoffValvePowerTXV2;
|
uint8_t FIU_CCmodeFL_Req;
|
||||||
uint16_t Pressure_DIAG;
|
uint8_t FIU_AirDirectionFL_Def_Req;
|
||||||
uint16_t BTS5180_2EKA_ShutOFFValveFront;
|
uint8_t FIU_AirDirectionFL_Face_Req;
|
||||||
uint16_t BTS5180_2EKA_ShutOFFValveRear;
|
uint8_t FIU_AirDirectionFL_Foot_Req;
|
||||||
uint16_t BTS5180_2EKA_TwoWayValve;
|
uint8_t FIU_CCmodeFR_Req;
|
||||||
uint16_t BTS5180_2EKA_ReservePowerSupply;
|
uint8_t FIU_AirDirectionFR_Def_Req;
|
||||||
uint16_t BTS5180_2EKA_FrontIncarMotor;
|
uint8_t FIU_AirDirectionFR_Face_Req;
|
||||||
uint16_t BTS5180_2EKA_RearIncarMotor;
|
uint8_t FIU_AirDirectionFR_Foot_Req;
|
||||||
uint16_t BTS5180_2EKA_ChannelPTCPower1;
|
uint8_t FIU_BlowerSpeedFL_Req;
|
||||||
uint16_t BTS5180_2EKA_ChannelPTCPower2;
|
uint8_t FIU_BlowerSpeedFR_Req;
|
||||||
uint16_t Reserve_Sensor_Duct_Temp_2;
|
uint8_t FIU_CCautoModeFL_Req;
|
||||||
uint16_t VN7008AJ_DIAG_FrontLINActuatorPowerDriverAB;
|
uint8_t FIU_CCautoModeFR_Req;
|
||||||
uint16_t VN7008AJ_DIAG_RearLINActuatorPowerDriverC;
|
uint8_t FIU_Recirculation_Req;
|
||||||
uint16_t PBATT_CHECK;
|
uint8_t FIU_DeflectorSwDL_Req;
|
||||||
uint16_t VN7008AJ_FrontLINActuatorPowerDriverAB;
|
uint8_t FIU_DeflectorSwDR_Req;
|
||||||
uint16_t VN7008AJ_RearLINActuatorPowerDriverC;
|
uint8_t FIU_ACfrontOFF_Req;
|
||||||
} CmdBusADCData;
|
uint8_t FIU_DeflectorSwFPL_Req;
|
||||||
|
uint8_t FIU_DeflectorSwFPR_Req;
|
||||||
#endif
|
uint8_t FIU_FrontZoneSync_Req;
|
||||||
|
} CmdCAN_FIU_CCU1_Bus;
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusADCDataKey_
|
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusADCDataKey_
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
#ifndef DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU2_Bus_
|
||||||
uint8_t ST_ReservePower;
|
#define DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU2_Bus_
|
||||||
uint8_t ST_BATTChiller;
|
|
||||||
uint8_t EmergencyAirCleanSwitch;
|
typedef struct {
|
||||||
uint8_t FireExtinguishSwitch;
|
uint8_t FIU_TargetTempRL_Val_ro;
|
||||||
uint8_t Ign_Wakeup;
|
uint8_t FIU_FootTempCorRL_Req;
|
||||||
} CmdBusADCDataKey;
|
uint8_t FIU_TargetTempRR_Val_ro;
|
||||||
|
uint8_t FIU_FootTempCorRR_Req;
|
||||||
#endif
|
uint8_t FIU_CCmodeRL_Req;
|
||||||
|
uint8_t FIU_AirDirectionRL_Def_Req;
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBus_
|
uint8_t FIU_AirDirectionRL_Face_Req;
|
||||||
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBus_
|
uint8_t FIU_AirDirectionRL_Foot_Req;
|
||||||
|
uint8_t FIU_CCmodeRR_Req;
|
||||||
typedef struct {
|
uint8_t FIU_AirDirectionRR_Def_Req;
|
||||||
uint16_t POS[9];
|
uint8_t FIU_AirDirectionRR_Face_Req;
|
||||||
uint8_t BUS_ADR[9];
|
uint8_t FIU_AirDirectionRR_Foot_Req;
|
||||||
uint8_t MODE[9];
|
uint8_t FIU_BlowerSpeedRL_Req;
|
||||||
uint8_t COM[9];
|
uint8_t FIU_BlowerSpeedRR_Req;
|
||||||
uint8_t Stall_SET[9];
|
uint8_t FIU_CCautoModeRL_Req;
|
||||||
uint8_t Lnoise_SET[9];
|
uint8_t FIU_CCautoModeRR_Req;
|
||||||
uint8_t Autos_SET[9];
|
uint8_t FIU_DeflectorSwRLB_Req;
|
||||||
uint8_t Speed_SET[9];
|
uint8_t FIU_DeflectorSwFCL_Req;
|
||||||
uint8_t Coils_Stop_SET[9];
|
uint8_t FIU_ACrearOFF_Req;
|
||||||
} ActuatorCmdBus;
|
uint8_t FIU_DeflectorSwFCR_Req;
|
||||||
|
uint8_t FIU_DeflectorSwRRB_Req;
|
||||||
#endif
|
uint8_t FIU_RearZoneSync_Req;
|
||||||
|
} CmdCAN_FIU_CCU2_Bus;
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
|
||||||
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
#ifndef DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU3_Bus_
|
||||||
int16_t in_CPOS_ALL[9];
|
#define DEFINED_TYPEDEF_FOR_CmdCAN_FIU_CCU3_Bus_
|
||||||
int8_t in_Act_Emrf_Slave[9];
|
|
||||||
int8_t in_Mode_Slave[9];
|
typedef struct {
|
||||||
int8_t in_Act_Err1_Supply[9];
|
uint8_t FIU_Aroma_Req;
|
||||||
int8_t in_Act_Err2_Communication[9];
|
uint8_t FIU_AromaIntens_Req;
|
||||||
int8_t in_Act_Err3_Temperature[9];
|
uint8_t FIU_Rest_Req;
|
||||||
int8_t in_Act_Err4_Permanent_Electrical[9];
|
uint8_t FIU_Ionization_Req;
|
||||||
int8_t in_Act_Stall_Slave[9];
|
uint8_t FIU_RLfootBlowDis_Req;
|
||||||
int8_t in_Act_Reset[9];
|
uint8_t FIU_RRfootBlowDis_Req;
|
||||||
uint8_t Busy;
|
uint8_t FIU_ACmax_Req;
|
||||||
uint8_t Error_Connect;
|
uint8_t FIU_Defrost_Req;
|
||||||
} ActuatorCmdBusInput;
|
uint8_t FIU_Ultraviolet_Req;
|
||||||
|
} CmdCAN_FIU_CCU3_Bus;
|
||||||
#endif
|
|
||||||
|
#endif
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_CmdBusStatus_
|
||||||
typedef struct {
|
|
||||||
uint8_t pwmPercentFront;
|
typedef struct {
|
||||||
uint8_t pwmPercentRear;
|
int8_t Battery;
|
||||||
uint8_t pwmPercentFrontReserved;
|
int16_t AMB;
|
||||||
uint8_t pwmPercentRearReserved;
|
int16_t Incar_FL;
|
||||||
} CmdBusPWMGet;
|
int16_t Incar_FR;
|
||||||
|
int16_t Incar_RL;
|
||||||
#endif
|
int16_t Incar_RR;
|
||||||
|
int16_t Eva_F;
|
||||||
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPwm_
|
int16_t Eva_R;
|
||||||
#define DEFINED_TYPEDEF_FOR_CmdBusPwm_
|
int16_t Pressure;
|
||||||
|
int16_t Duct_FL_Upper;
|
||||||
typedef struct {
|
int16_t Duct_FL_Lower;
|
||||||
uint8_t pwmPercentFront;
|
int16_t Duct_FR_Upper;
|
||||||
uint8_t pwmPercentRear;
|
int16_t Duct_FR_Lower;
|
||||||
uint8_t pwmPercentFrontReserved;
|
int16_t Duct_RL;
|
||||||
uint8_t pwmPercentRearReserved;
|
int16_t Duct_RR;
|
||||||
} CmdBusPwm;
|
int16_t Duct_Side_FL;
|
||||||
|
int16_t Duct_Side_FR;
|
||||||
#endif
|
int16_t Duct_Side_RL;
|
||||||
|
int16_t Duct_Side_RR;
|
||||||
/* Forward declaration for rtModel */
|
int8_t AQS;
|
||||||
typedef struct tag_RTM RT_MODEL;
|
} CmdBusStatus;
|
||||||
|
|
||||||
#endif /* HVAC_model_types_h_ */
|
#endif
|
||||||
|
|
||||||
/*
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusADCDataKey_
|
||||||
* File trailer for generated code.
|
#define DEFINED_TYPEDEF_FOR_CmdBusADCDataKey_
|
||||||
*
|
|
||||||
* [EOF]
|
typedef struct {
|
||||||
*/
|
uint8_t ST_ReservePower;
|
||||||
|
uint8_t ST_BATTChiller;
|
||||||
|
uint8_t EmergencyAirCleanSwitch;
|
||||||
|
uint8_t FireExtinguishSwitch;
|
||||||
|
uint8_t Ign_Wakeup;
|
||||||
|
} CmdBusADCDataKey;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBus_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBus_
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint16_t POS[9];
|
||||||
|
uint8_t BUS_ADR[9];
|
||||||
|
uint8_t MODE[9];
|
||||||
|
uint8_t COM[9];
|
||||||
|
uint8_t Stall_SET[9];
|
||||||
|
uint8_t Lnoise_SET[9];
|
||||||
|
uint8_t Autos_SET[9];
|
||||||
|
uint8_t Speed_SET[9];
|
||||||
|
uint8_t Coils_Stop_SET[9];
|
||||||
|
} ActuatorCmdBus;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_ActuatorCmdBusInput_
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int16_t in_CPOS_ALL[9];
|
||||||
|
int8_t in_Act_Emrf_Slave[9];
|
||||||
|
int8_t in_Mode_Slave[9];
|
||||||
|
int8_t in_Act_Err1_Supply[9];
|
||||||
|
int8_t in_Act_Err2_Communication[9];
|
||||||
|
int8_t in_Act_Err3_Temperature[9];
|
||||||
|
int8_t in_Act_Err4_Permanent_Electrical[9];
|
||||||
|
int8_t in_Act_Stall_Slave[9];
|
||||||
|
int8_t in_Act_Reset[9];
|
||||||
|
uint8_t Busy;
|
||||||
|
uint8_t Error_Connect;
|
||||||
|
} ActuatorCmdBusInput;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_CmdBusPWMGet_
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint8_t pwmPercentFront;
|
||||||
|
uint8_t pwmPercentRear;
|
||||||
|
uint8_t pwmPercentFrontReserved;
|
||||||
|
uint8_t pwmPercentRearReserved;
|
||||||
|
} CmdBusPWMGet;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DEFINED_TYPEDEF_FOR_CmdBusPwm_
|
||||||
|
#define DEFINED_TYPEDEF_FOR_CmdBusPwm_
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint8_t pwmPercentFront;
|
||||||
|
uint8_t pwmPercentRear;
|
||||||
|
uint8_t pwmPercentFrontReserved;
|
||||||
|
uint8_t pwmPercentRearReserved;
|
||||||
|
} CmdBusPwm;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Forward declaration for rtModel */
|
||||||
|
typedef struct tag_RTM RT_MODEL;
|
||||||
|
|
||||||
|
#endif /* HVAC_model_types_h_ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* File trailer for generated code.
|
||||||
|
*
|
||||||
|
* [EOF]
|
||||||
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue