static void c11_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c11_mxArrayInData, const char_T *c11_varName, void *c11_outData)
{
  const mxArray *c11_b_sfEvent;
  const char_T *c11_identifier;
  emlrtMsgIdentifier c11_thisId;
  int32_T c11_y;
  SFc11_Batman_CodeInstanceStruct *chartInstance;
  chartInstance = (SFc11_Batman_CodeInstanceStruct *)chartInstanceVoid;
  c11_b_sfEvent = sf_mex_dup(c11_mxArrayInData);
  c11_identifier = c11_varName;
  c11_thisId.fIdentifier = c11_identifier;
  c11_thisId.fParent = NULL;
  c11_y = c11_e_emlrt_marshallIn(chartInstance, sf_mex_dup(c11_b_sfEvent),
    &c11_thisId);
  sf_mex_destroy(&c11_b_sfEvent);
  *(int32_T *)c11_outData = c11_y;
  sf_mex_destroy(&c11_mxArrayInData);
}
Esempio n. 2
0
static void set_sim_state_c11_kinematics(SFc11_kinematicsInstanceStruct
  *chartInstance, const mxArray *c11_st)
{
  const mxArray *c11_u;
  real_T c11_dv0[6];
  int32_T c11_i1;
  real_T (*c11_vehicle_rates)[6];
  c11_vehicle_rates = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c11_doneDoubleBufferReInit = TRUE;
  c11_u = sf_mex_dup(c11_st);
  c11_b_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c11_u, 0)),
    "vehicle_rates", c11_dv0);
  for (c11_i1 = 0; c11_i1 < 6; c11_i1++) {
    (*c11_vehicle_rates)[c11_i1] = c11_dv0[c11_i1];
  }

  chartInstance->c11_is_active_c11_kinematics = c11_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c11_u, 1)),
     "is_active_c11_kinematics");
  sf_mex_destroy(&c11_u);
  c11_update_debugger_state_c11_kinematics(chartInstance);
  sf_mex_destroy(&c11_st);
}