Esempio n. 1
0
static void c11_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c11_mxArrayInData, const char_T *c11_varName, void *c11_outData)
{
  const mxArray *c11_nargout;
  const char_T *c11_identifier;
  emlrtMsgIdentifier c11_thisId;
  real_T c11_y;
  SFc11_kinematicsInstanceStruct *chartInstance;
  chartInstance = (SFc11_kinematicsInstanceStruct *)chartInstanceVoid;
  c11_nargout = sf_mex_dup(c11_mxArrayInData);
  c11_identifier = c11_varName;
  c11_thisId.fIdentifier = c11_identifier;
  c11_thisId.fParent = NULL;
  c11_y = c11_emlrt_marshallIn(chartInstance, sf_mex_dup(c11_nargout),
    &c11_thisId);
  sf_mex_destroy(&c11_nargout);
  *(real_T *)c11_outData = c11_y;
  sf_mex_destroy(&c11_mxArrayInData);
}
static void set_sim_state_c11_Batman_Code(SFc11_Batman_CodeInstanceStruct
  *chartInstance, const mxArray *c11_st)
{
  const mxArray *c11_u;
  uint16_T c11_uv0[12];
  int32_T c11_i1;
  uint16_T (*c11_cell_temperatures_out)[12];
  c11_cell_temperatures_out = (uint16_T (*)[12])ssGetOutputPortSignal
    (chartInstance->S, 1);
  chartInstance->c11_doneDoubleBufferReInit = TRUE;
  c11_u = sf_mex_dup(c11_st);
  c11_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c11_u, 0)),
                       "cell_temperatures_out", c11_uv0);
  for (c11_i1 = 0; c11_i1 < 12; c11_i1++) {
    (*c11_cell_temperatures_out)[c11_i1] = c11_uv0[c11_i1];
  }

  chartInstance->c11_is_active_c11_Batman_Code = c11_f_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c11_u, 1)),
     "is_active_c11_Batman_Code");
  sf_mex_destroy(&c11_u);
  c11_update_debugger_state_c11_Batman_Code(chartInstance);
  sf_mex_destroy(&c11_st);
}