static void set_sim_state_c5_YCbCrTesting(SFc5_YCbCrTestingInstanceStruct *chartInstance, const mxArray *c5_st) { const mxArray *c5_u; real32_T c5_fv0[64]; int32_T c5_i2; real32_T (*c5_out)[64]; c5_out = (real32_T (*)[64])ssGetOutputPortSignal(chartInstance->S, 1); c5_u = sf_mex_dup(c5_st); c5_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c5_u, 0)), "out", c5_fv0); for (c5_i2 = 0; c5_i2 < 64; c5_i2++) { (*c5_out)[c5_i2] = c5_fv0[c5_i2]; } c5_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c5_u, 1)), "prev_out", c5_fv0); for (c5_i2 = 0; c5_i2 < 64; c5_i2++) { chartInstance->c5_prev_out[c5_i2] = c5_fv0[c5_i2]; } chartInstance->c5_is_active_c5_YCbCrTesting = c5_e_emlrt_marshallIn (chartInstance, sf_mex_dup(sf_mex_getcell(c5_u, 2)), "is_active_c5_YCbCrTesting"); sf_mex_destroy(&c5_u); sf_mex_destroy(&c5_st); }
static void c5_b_sf_marshallIn(void *chartInstanceVoid, const mxArray *c5_mxArrayInData, const char_T *c5_varName, void *c5_outData) { const mxArray *c5_positiveInput; const char_T *c5_identifier; emlrtMsgIdentifier c5_thisId; boolean_T c5_y; SFc5_testing_ControlInstanceStruct *chartInstance; chartInstance = (SFc5_testing_ControlInstanceStruct *)chartInstanceVoid; c5_positiveInput = sf_mex_dup(c5_mxArrayInData); c5_identifier = c5_varName; c5_thisId.fIdentifier = c5_identifier; c5_thisId.fParent = NULL; c5_y = c5_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c5_positiveInput), &c5_thisId); sf_mex_destroy(&c5_positiveInput); *(boolean_T *)c5_outData = c5_y; sf_mex_destroy(&c5_mxArrayInData); }
static void c5_b_sf_marshallIn(void *chartInstanceVoid, const mxArray *c5_mxArrayInData, const char_T *c5_varName, void *c5_outData) { const mxArray *c5_aVarTruthTableCondition_8; const char_T *c5_identifier; emlrtMsgIdentifier c5_thisId; boolean_T c5_y; SFc5_Demo_AU_VAInstanceStruct *chartInstance; chartInstance = (SFc5_Demo_AU_VAInstanceStruct *)chartInstanceVoid; c5_aVarTruthTableCondition_8 = sf_mex_dup(c5_mxArrayInData); c5_identifier = c5_varName; c5_thisId.fIdentifier = c5_identifier; c5_thisId.fParent = NULL; c5_y = c5_c_emlrt_marshallIn(chartInstance, sf_mex_dup (c5_aVarTruthTableCondition_8), &c5_thisId); sf_mex_destroy(&c5_aVarTruthTableCondition_8); *(boolean_T *)c5_outData = c5_y; sf_mex_destroy(&c5_mxArrayInData); }
static void c5_b_sf_marshallIn(void *chartInstanceVoid, const mxArray *c5_mxArrayInData, const char_T *c5_varName, void *c5_outData) { const mxArray *c5_b_sfEvent; const char_T *c5_identifier; emlrtMsgIdentifier c5_thisId; int32_T c5_y; SFc5_testYarpReadSHOREInstanceStruct *chartInstance; chartInstance = (SFc5_testYarpReadSHOREInstanceStruct *)chartInstanceVoid; c5_b_sfEvent = sf_mex_dup(c5_mxArrayInData); c5_identifier = c5_varName; c5_thisId.fIdentifier = c5_identifier; c5_thisId.fParent = NULL; c5_y = c5_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c5_b_sfEvent), &c5_thisId); sf_mex_destroy(&c5_b_sfEvent); *(int32_T *)c5_outData = c5_y; sf_mex_destroy(&c5_mxArrayInData); }