⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c4_multitones_forhop_hard1.c

📁 FFH, pre-hopping anti-jamming system
💻 C
📖 第 1 页 / 共 4 页
字号:
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_j_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_k_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_l_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_m_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_n_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_o_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_p_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  int32_T c4_i15;
  real_T c4_c_u[1025];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i15 = 0; c4_i15 < 1025; c4_i15 = c4_i15 + 1) {
    c4_c_u[c4_i15] = (*(real_T (*)[1025])c4_b_u)[c4_i15];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 1025));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_q_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_r_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_s_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_t_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_u_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_v_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  int32_T c4_i16;
  real_T c4_c_u[100];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i16 = 0; c4_i16 < 100; c4_i16 = c4_i16 + 1) {
    c4_c_u[c4_i16] = (*(real_T (*)[100])c4_b_u)[c4_i16];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 100));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_w_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  int32_T c4_i17;
  real_T c4_c_u[100];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i17 = 0; c4_i17 < 100; c4_i17 = c4_i17 + 1) {
    c4_c_u[c4_i17] = (*(real_T (*)[100])c4_b_u)[c4_i17];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 100));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_x_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_y_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_ab_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_bb_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

const mxArray
*sf_c4_multitones_forhop_hard1_get_eml_resolved_functions_info(void)
{
  const mxArray *c4_nameCaptureInfo = NULL;
  c4_nameCaptureInfo = NULL;
  sf_mex_assign(&c4_nameCaptureInfo, sf_mex_create(NULL, "nameCaptureInfo", 0,
    0U, 1U, 2, 0, 1));
  return c4_nameCaptureInfo;
}

static real_T *c4_u(void)
{
  return (real_T *)ssGetInputPortSignal(chartInstance.S, 0);
}

static real_T *c4_y(void)
{
  return (real_T *)ssGetOutputPortSignal(chartInstance.S, 1);
}

static real_T *c4_a(void)
{
  return (real_T *)ssGetInputPortSignal(chartInstance.S, 1);
}

static real_T *c4_b(void)
{
  return (real_T *)ssGetInputPortSignal(chartInstance.S, 2);
}

static real_T *c4_c(void)
{
  return (real_T *)ssGetInputPortSignal(chartInstance.S, 3);
}

static void init_dsm_address_info(void)
{
}

/* SFunction Glue Code */
void sf_c4_multitones_forhop_hard1_get_check_sum(mxArray *plhs[])
{
  ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(1412805178U);
  ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(1167578679U);
  ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(176769802U);
  ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(2586146804U);
}

mxArray *sf_c4_multitones_forhop_hard1_get_autoinheritance_info(void)
{
  const char *autoinheritanceFields[] =
  {"checksum","inputs","parameters","outputs"};
  mxArray *mxAutoinheritanceInfo =
  mxCreateStructMatrix(1,1,4,autoinheritanceFields);
  {
    mxArray *mxChecksum = mxCreateDoubleMatrix(4,1,mxREAL);
    double *pr = mxGetPr(mxChecksum);
    pr[0] = (double)(180599568U);
    pr[1] = (double)(3047041013U);
    pr[2] = (double)(4169557090U);
    pr[3] = (double)(2231655606U);
    mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum);
  }
  {
    const char *dataFields[] = {"size","type","complexity"};
    mxArray *mxData = mxCreateStructMatrix(1,4,3,dataFields);
    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1025);
      pr[1] = (double)(1);
      mxSetField(mxData,0,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};
      mxArray *mxType = mxCreateStructMatrix(1,1,3,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"aliasId",mxCreateDoubleScalar(0));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,0,"type",mxType);
    }
    mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(32);
      pr[1] = (double)(1);
      mxSetField(mxData,1,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};
      mxArray *mxType = mxCreateStructMatrix(1,1,3,typeFields);
      mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
      mxSetField(mxType,0,"aliasId",mxCreateDoubleScalar(0));
      mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
      mxSetField(mxData,1,"type",mxType);
    }
    mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));
    {
      mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
      double *pr = mxGetPr(mxSize);
      pr[0] = (double)(1);
      pr[1] = (double)(1);
      mxSetField(mxData,2,"size",mxSize);
    }
    {
      const char *typeFields[] = {"base","aliasId","fixpt"};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -