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

📄 c2812adcpwmtest.h

📁 由MATLAB生成的AD的源代码
💻 H
字号:
/*
 * File: c2812adcpwmtest.h
 *
 * Real-Time Workshop code generated for Simulink model c2812adcpwmtest.
 *
 * Model version                        : 1.138
 * Real-Time Workshop file version      : 6.3  (R14SP3)  26-Jul-2005
 * Real-Time Workshop file generated on : Thu Dec 11 22:05:31 2008
 * TLC version                          : 6.3 (Aug  5 2005)
 * C source code generated on           : Thu Dec 11 22:05:34 2008
 */

#ifndef _RTW_HEADER_c2812adcpwmtest_h_
#define _RTW_HEADER_c2812adcpwmtest_h_

#ifndef _c2812adcpwmtest_COMMON_INCLUDES_
# define _c2812adcpwmtest_COMMON_INCLUDES_
#include <math.h>
#include <float.h>
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#include "DSP281x_Device.h"
#include "rt_nonfinite.h"
#endif                                  /* _c2812adcpwmtest_COMMON_INCLUDES_ */

#include "c2812adcpwmtest_types.h"

/* Macros for accessing real-time model data structure  */

#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
#endif

#ifndef rtmStepTask
# define rtmStepTask(rtm, idx) ((rtm)->Timing.TaskCounters.TID[(idx)] == 0)
#endif

/* Block signals (auto storage) */
typedef struct {
  uint16_T C28xADC;                     /* '<Root>/C28x ADC' */
} BlockIO_c2812adcpwmtest;

/* Parameters (auto storage) */
struct _Parameters_c2812adcpwmtest {
  uint16_T Gain1_Gain;                  /* Computed Parameter: Gain
                                         * '<Root>/Gain1'
                                         */
};

/* Real-time Model Data Structure */
struct RT_MODEL_c2812adcpwmtest {
  const char_T *errorStatus;

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    struct {
      uint8_T TID[2];
    } TaskCounters;
  } Timing;
};

/* Block parameters (auto storage) */
extern Parameters_c2812adcpwmtest c2812adcpwmtest_P;

/* Block signals (auto storage) */
extern BlockIO_c2812adcpwmtest c2812adcpwmtest_B;

/* Model entry point functions */
extern void c2812adcpwmtest_SetEventsForThisBaseStep(boolean_T *eventFlags);
extern void c2812adcpwmtest_initialize(boolean_T firstTime);
extern void c2812adcpwmtest_step(int_T tid);
extern void c2812adcpwmtest_terminate(void);

/* Real-time Model object */
extern RT_MODEL_c2812adcpwmtest *c2812adcpwmtest_M;

/* 
 * The generated code includes comments that allow you to trace directly 
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : c2812adcpwmtest
 * '<S1>'   : c2812adcpwmtest/F2812 eZdsp
 * '<S2>'   : c2812adcpwmtest/Subsystem
 * '<S3>'   : c2812adcpwmtest/Subsystem 
 */

#endif                                  /* _RTW_HEADER_c2812adcpwmtest_h_ */

/* File trailer for Real-Time Workshop generated code.
 *
 * [EOF]
 */

⌨️ 快捷键说明

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