Esempio n. 1
0
static void set_sim_state_c2_Serial(SFc2_SerialInstanceStruct *chartInstance,
  const mxArray *c2_st)
{
  const mxArray *c2_u;
  uint8_T c2_uv0[256];
  int32_T c2_i1;
  int32_T *c2_length;
  uint8_T (*c2_data)[256];
  c2_length = (int32_T *)ssGetOutputPortSignal(chartInstance->S, 2);
  c2_data = (uint8_T (*)[256])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c2_doneDoubleBufferReInit = true;
  c2_u = sf_mex_dup(c2_st);
  c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
                        "data", c2_uv0);
  for (c2_i1 = 0; c2_i1 < 256; c2_i1++) {
    (*c2_data)[c2_i1] = c2_uv0[c2_i1];
  }

  *c2_length = c2_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u,
    1)), "length");
  chartInstance->c2_is_active_c2_Serial = c2_f_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c2_u, 2)), "is_active_c2_Serial");
  sf_mex_destroy(&c2_u);
  c2_update_debugger_state_c2_Serial(chartInstance);
  sf_mex_destroy(&c2_st);
}
Esempio n. 2
0
static void set_sim_state_c2_untitled1(SFc2_untitled1InstanceStruct
  *chartInstance, const mxArray *c2_st)
{
  const mxArray *c2_u;
  chartInstance->c2_doneDoubleBufferReInit = true;
  c2_u = sf_mex_dup(c2_st);
  chartInstance->c2_is_active_c2_untitled1 = c2_c_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c2_u, 0)), "is_active_c2_untitled1");
  sf_mex_destroy(&c2_u);
  c2_update_debugger_state_c2_untitled1(chartInstance);
  sf_mex_destroy(&c2_st);
}
static void set_sim_state_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile
  (SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct
   *chartInstance, const mxArray *c2_st)
{
  const mxArray *c2_u;
  chartInstance->c2_doneDoubleBufferReInit = true;
  c2_u = sf_mex_dup(c2_st);
  chartInstance->c2_is_active_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile =
    c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
    "is_active_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile");
  sf_mex_destroy(&c2_u);
  c2_update_debugger_state_c2_ARP_02_RPSsmile_GloveAtomicBradNotIm(chartInstance);
  sf_mex_destroy(&c2_st);
}
static void set_sim_state_c2_ARP_02_RPSsmile_WirelessGloveSHORE
(SFc2_ARP_02_RPSsmile_WirelessGloveSHOREInstanceStruct *chartInstance, const
 mxArray *c2_st)
{
    const mxArray *c2_u;
    chartInstance->c2_doneDoubleBufferReInit = true;
    c2_u = sf_mex_dup(c2_st);
    chartInstance->c2_is_active_c2_ARP_02_RPSsmile_WirelessGloveSHORE =
        c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
                              "is_active_c2_ARP_02_RPSsmile_WirelessGloveSHORE");
    sf_mex_destroy(&c2_u);
    c2_update_debugger_state_c2_ARP_02_RPSsmile_WirelessGloveSHORE(chartInstance);
    sf_mex_destroy(&c2_st);
}
static void set_sim_state_c2_sf_newtons_cradle
  (SFc2_sf_newtons_cradleInstanceStruct *chartInstance, const mxArray *c2_st)
{
  const mxArray *c2_u;
  c2_u = sf_mex_dup(c2_st);
  chartInstance->c2_is_active_c2_sf_newtons_cradle = c2_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
     "is_active_c2_sf_newtons_cradle");
  chartInstance->c2_is_c2_sf_newtons_cradle = c2_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c2_u, 1)), "is_c2_sf_newtons_cradle");
  sf_mex_assign(&chartInstance->c2_setSimStateSideEffectsInfo,
                c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c2_u, 2)), "setSimStateSideEffectsInfo"), TRUE);
  sf_mex_destroy(&c2_u);
  chartInstance->c2_doSetSimStateSideEffects = 1U;
  sf_mex_destroy(&c2_st);
}
Esempio n. 6
0
static void c2_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c2_mxArrayInData, const char_T *c2_varName, void *c2_outData)
{
  const mxArray *c2_nargout;
  const char_T *c2_identifier;
  emlrtMsgIdentifier c2_thisId;
  real_T c2_y;
  SFc2_hapticsSimBlk_pdInstanceStruct *chartInstance;
  chartInstance = (SFc2_hapticsSimBlk_pdInstanceStruct *)chartInstanceVoid;
  c2_nargout = sf_mex_dup(c2_mxArrayInData);
  c2_identifier = c2_varName;
  c2_thisId.fIdentifier = c2_identifier;
  c2_thisId.fParent = NULL;
  c2_y = c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c2_nargout), &c2_thisId);
  sf_mex_destroy(&c2_nargout);
  *(real_T *)c2_outData = c2_y;
  sf_mex_destroy(&c2_mxArrayInData);
}
Esempio n. 7
0
static void c2_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c2_mxArrayInData, const char_T *c2_varName, void *c2_outData)
{
  const mxArray *c2_b_sfEvent;
  const char_T *c2_identifier;
  emlrtMsgIdentifier c2_thisId;
  int32_T c2_y;
  SFc2_Demo_AU_VA1InstanceStruct *chartInstance;
  chartInstance = (SFc2_Demo_AU_VA1InstanceStruct *)chartInstanceVoid;
  c2_b_sfEvent = sf_mex_dup(c2_mxArrayInData);
  c2_identifier = c2_varName;
  c2_thisId.fIdentifier = c2_identifier;
  c2_thisId.fParent = NULL;
  c2_y = c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c2_b_sfEvent),
    &c2_thisId);
  sf_mex_destroy(&c2_b_sfEvent);
  *(int32_T *)c2_outData = c2_y;
  sf_mex_destroy(&c2_mxArrayInData);
}
Esempio n. 8
0
static void set_sim_state_c2_SATest(SFc2_SATestInstanceStruct *chartInstance,
  const mxArray *c2_st)
{
  const mxArray *c2_u;
  real_T *c2_i;
  c2_i = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c2_doneDoubleBufferReInit = TRUE;
  c2_u = sf_mex_dup(c2_st);
  *c2_i = c2_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u, 0)),
    "i");
  chartInstance->c2_j = c2_b_emlrt_marshallIn(chartInstance, sf_mex_dup
    (sf_mex_getcell(c2_u, 1)), "j");
  chartInstance->c2_is_active_c2_SATest = c2_c_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c2_u, 2)),
    "is_active_c2_SATest");
  sf_mex_destroy(&c2_u);
  c2_update_debugger_state_c2_SATest(chartInstance);
  sf_mex_destroy(&c2_st);
}
Esempio n. 9
0
static void c2_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c2_mxArrayInData, const char_T *c2_varName, void *c2_outData)
{
  const mxArray *c2_newq;
  const char_T *c2_identifier;
  emlrtMsgIdentifier c2_thisId;
  real_T c2_y[6];
  int32_T c2_i31;
  SFc2_kinematicsInstanceStruct *chartInstance;
  chartInstance = (SFc2_kinematicsInstanceStruct *)chartInstanceVoid;
  c2_newq = sf_mex_dup(c2_mxArrayInData);
  c2_identifier = c2_varName;
  c2_thisId.fIdentifier = c2_identifier;
  c2_thisId.fParent = NULL;
  c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c2_newq), &c2_thisId, c2_y);
  sf_mex_destroy(&c2_newq);
  for (c2_i31 = 0; c2_i31 < 6; c2_i31++) {
    (*(real_T (*)[6])c2_outData)[c2_i31] = c2_y[c2_i31];
  }

  sf_mex_destroy(&c2_mxArrayInData);
}
Esempio n. 10
0
static void set_sim_state_c2_mdl5(SFc2_mdl5InstanceStruct *chartInstance, const
  mxArray *c2_st)
{
  const mxArray *c2_u;
  real_T *c2_idx;
  c2_idx = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c2_doneDoubleBufferReInit = true;
  c2_u = sf_mex_dup(c2_st);
  *c2_idx = c2_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c2_u,
    0)), "idx");
  chartInstance->c2_i1 = c2_emlrt_marshallIn(chartInstance, sf_mex_dup
    (sf_mex_getcell(c2_u, 1)), "i1");
  chartInstance->c2_is_active_c2_mdl5 = c2_e_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c2_u, 2)), "is_active_c2_mdl5");
  sf_mex_assign(&chartInstance->c2_setSimStateSideEffectsInfo,
                c2_g_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c2_u, 3)), "setSimStateSideEffectsInfo"), true);
  sf_mex_destroy(&c2_u);
  chartInstance->c2_doSetSimStateSideEffects = 1U;
  c2_update_debugger_state_c2_mdl5(chartInstance);
  sf_mex_destroy(&c2_st);
}