/* Include files */
#include <stddef.h>
#include "blas.h"
#include "alldpll_sfun.h"
#include "c2_alldpll.h"
#define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber)
#define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber)
#include "alldpll_sfun_debug_macros.h"
#define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(sfGlobalDebugInstanceStruct,S);
/* Type Definitions */
/* Named Constants */
#define c2_event_ref (0)
#define c2_event_var (1)
#define CALL_EVENT (-1)
#define c2_IN_NO_ACTIVE_CHILD ((uint8_T)0U)
#define c2_IN_Ahead ((uint8_T)1U)
#define c2_IN_Behind ((uint8_T)2U)
#define c2_IN_InPhase ((uint8_T)3U)
/* Variable Declarations */
/* Variable Definitions */
static real_T _sfTime_;
/* Function Declarations */
static void initialize_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void initialize_params_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance);
static void enable_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void disable_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void c2_update_debugger_state_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance);
static const mxArray *get_sim_state_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance);
static void set_sim_state_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_st);
static void c2_set_sim_state_side_effects_c2_alldpll(SFc2_alldpllInstanceStruct *
chartInstance);
static void finalize_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void sf_gateway_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void c2_chartstep_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void initSimStructsc2_alldpll(SFc2_alldpllInstanceStruct *chartInstance);
static void init_script_number_translation(uint32_T c2_machineNumber, uint32_T
c2_chartNumber, uint32_T c2_instanceNumber);
static const mxArray *c2_sf_marshallOut(void *chartInstanceVoid, void *c2_inData);
static int8_T c2_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_b_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static int32_T c2_b_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_c_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static uint8_T c2_c_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_b_tp_Ahead, const char_T *c2_identifier);
static uint8_T c2_d_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_d_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static real_T c2_e_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_s, const char_T *c2_identifier);
static real_T c2_f_emlrt_marshallIn(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_g_emlrt_marshallIn(SFc2_alldpllInstanceStruct
*chartInstance, const mxArray *c2_b_setSimStateSideEffectsInfo, const char_T
*c2_identifier);
static const mxArray *c2_h_emlrt_marshallIn(SFc2_alldpllInstanceStruct
*chartInstance, const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void init_dsm_address_info(SFc2_alldpllInstanceStruct *chartInstance);
/* Function Definitions */
static void initialize_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance)
{
real_T *c2_s;
c2_s = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
_sfTime_ = sf_get_time(chartInstance->S);
chartInstance->c2_doSetSimStateSideEffects = 0U;
chartInstance->c2_setSimStateSideEffectsInfo = NULL;
chartInstance->c2_tp_Ahead = 0U;
chartInstance->c2_tp_Behind = 0U;
chartInstance->c2_tp_InPhase = 0U;
chartInstance->c2_is_active_c2_alldpll = 0U;
chartInstance->c2_is_c2_alldpll = c2_IN_NO_ACTIVE_CHILD;
if (!(sf_get_output_port_reusable(chartInstance->S, 1) != 0)) {
*c2_s = 0.0;
}
}
static void initialize_params_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance)
{
(void)chartInstance;
}
static void enable_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance)
{
_sfTime_ = sf_get_time(chartInstance->S);
}
static void disable_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance)
{
_sfTime_ = sf_get_time(chartInstance->S);
}
static void c2_update_debugger_state_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance)
{
uint32_T c2_prevAniVal;
c2_prevAniVal = _SFD_GET_ANIMATION();
_SFD_SET_ANIMATION(0U);
_SFD_SET_HONOR_BREAKPOINTS(0U);
if (chartInstance->c2_is_active_c2_alldpll == 1U) {
_SFD_CC_CALL(CHART_ACTIVE_TAG, 0U, chartInstance->c2_sfEvent);
}
if (chartInstance->c2_is_c2_alldpll == c2_IN_Ahead) {
_SFD_CS_CALL(STATE_ACTIVE_TAG, 0U, chartInstance->c2_sfEvent);
} else {
_SFD_CS_CALL(STATE_INACTIVE_TAG, 0U, chartInstance->c2_sfEvent);
}
if (chartInstance->c2_is_c2_alldpll == c2_IN_InPhase) {
_SFD_CS_CALL(STATE_ACTIVE_TAG, 2U, chartInstance->c2_sfEvent);
} else {
_SFD_CS_CALL(STATE_INACTIVE_TAG, 2U, chartInstance->c2_sfEvent);
}
if (chartInstance->c2_is_c2_alldpll == c2_IN_Behind) {
_SFD_CS_CALL(STATE_ACTIVE_TAG, 1U, chartInstance->c2_sfEvent);
} else {
_SFD_CS_CALL(STATE_INACTIVE_TAG, 1U, chartInstance->c2_sfEvent);
}
_SFD_SET_ANIMATION(c2_prevAniVal);
_SFD_SET_HONOR_BREAKPOINTS(1U);
_SFD_ANIMATE();
}
static const mxArray *get_sim_state_c2_alldpll(SFc2_alldpllInstanceStruct
*chartInstance)
{
const mxArray *c2_st;
const mxArray *c2_y = NULL;
real_T c2_hoistedGlobal;
real_T c2_u;
const mxArray *c2_b_y = NULL;
uint8_T c2_b_hoistedGlobal;
uint8_T c2_b_u;
const mxArray *c2_c_y = NULL;
uint8_T c2_c_hoistedGlobal;
uint8_T c2_c_u;
const mxArray *c2_d_y = NULL;
real_T *c2_s;
c2_s = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
c2_st = NULL;
c2_st = NULL;
c2_y = NULL;
sf_mex_assign(&c2_y, sf_mex_createcellmatrix(3, 1), false);
c2_hoistedGlobal = *c2_s;
c2_u = c2_hoistedGlobal;
c2_b_y = NULL;
sf_mex_assign(&c2_b_y, sf_mex_create("y", &c2_u, 0, 0U, 0U, 0U, 0), false);
sf_mex_setcell(c2_y, 0, c2_b_y);
c2_b_hoistedGlobal = chartInstance->c2_is_active_c2_alldpll;
c2_b_u = c2_b_hoistedGlobal;
c2_c_y = NULL;
sf_mex_assign(&c2_c_y, sf_mex_create("y", &c2_b_u, 3, 0U, 0U, 0U, 0), false);
sf_mex_setcell(c2_y, 1, c2_c_y);
c2_c_hoistedGlobal = chartInstance->c2_is_c2_alldpll;
c2_c_u = c2_c_hoistedGlobal;
c2_d_y = NULL;
sf_mex_assign(&c2_d_y, sf_mex_create("y", &c2_c_u, 3, 0U, 0U, 0U, 0), false);
sf_mex_setcell(c2_y, 2, c2_d_y);
sf_mex_assign(&c2_st, c2_y, false);
return c2_st;
}
static void set_sim_state_c2_alldpll(SFc2_alldpllInstanceStruct *chartInstance,
const mxArray *c2_st)
{
const mxArray *c2_u;
real_T *c2_s;
c2_s = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
c2_u = sf_mex_dup(c2_st);
*c2_s = c2_e_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
"s");


Matlab领域
- 粉丝: 3w+
- 资源: 3985
最新资源
- 编程基础_Python_数据分析_学习模块_1741399126.zip
- 机器人学_Python代码_算法实现_教学辅助_1741398277.zip
- 云计算_容器技术_Docker_Python编程环境_1741401213.zip
- 编程语言_Python_官方网站代码库_开源贡献_1741402440.zip
- 金融量化_TqSdk_交易策略_开发包_1741402164.zip
- 编程教育_Python_arcade_塔防游戏_1741403487.zip
- Python_网络爬虫_代码样例_教学辅助_1741399218.zip
- 编程学习_Python练习空间_1741399992.zip
- 基于人脸识别的实验室管理系统(软硬件代码齐全)
- 包含了数百个使用Python编写的GUI示例.zip
- 神经网络与深度学习_集成脚本_Python352_Thean_1741401355.zip
- 自动化机器学习_样本迁移_Google云平台_教学示例_1741400278.zip
- 1741610014055.jpeg
- 图数据库Neo4j十大应用案例
- 概率论_卡尔曼滤波_贝叶斯滤波_入门教程_1741399929.zip
- 机器学习_Python_入门教程_学习辅助_1741399744.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


