File: Controller_private.h

    1   /*
    2    * Controller_private.h
    3    *
    4    * Code generation for model "Controller".
    5    *
    6    * Model version              : 1.1303
    7    * Simulink Coder version : 8.3 (R2012b) 20-Jul-2012
    8    * C++ source code generated on : Sun Jun 01 14:58:10 2014
    9    *
   10    * Target selection: grt.tlc
   11    * Note: GRT includes extra infrastructure and instrumentation for prototyping
   12    * Embedded hardware selection: Generic->32-bit x86 compatible
   13    * Code generation objectives: Unspecified
   14    * Validation result: Not run
   15    */
   16   #ifndef RTW_HEADER_Controller_private_h_
   17   #define RTW_HEADER_Controller_private_h_
   18   #include "rtwtypes.h"
   19   
   20   /* Private macros used by the generated code to access rtModel */
   21   #ifndef rtmSetFirstInitCond
   22   # define rtmSetFirstInitCond(rtm, val) ((rtm)->Timing.firstInitCondFlag = (val))
   23   #endif
   24   
   25   #ifndef rtmIsFirstInitCond
   26   # define rtmIsFirstInitCond(rtm)       ((rtm)->Timing.firstInitCondFlag)
   27   #endif
   28   
   29   #ifndef rtmIsMajorTimeStep
   30   # define rtmIsMajorTimeStep(rtm)       (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)
   31   #endif
   32   
   33   #ifndef rtmIsMinorTimeStep
   34   # define rtmIsMinorTimeStep(rtm)       (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)
   35   #endif
   36   
   37   #ifndef rtmSetTFinal
   38   # define rtmSetTFinal(rtm, val)        ((rtm)->Timing.tFinal = (val))
   39   #endif
   40   
   41   #ifndef rtmGetTPtr
   42   # define rtmGetTPtr(rtm)               ((rtm)->Timing.t)
   43   #endif
   44   
   45   #ifndef rtmSetTPtr
   46   # define rtmSetTPtr(rtm, val)          ((rtm)->Timing.t = (val))
   47   #endif
   48   
   49   #ifndef __RTWTYPES_H__
   50   #error This file requires rtwtypes.h to be included
   51   #else
   52   #ifdef TMWTYPES_PREVIOUSLY_INCLUDED
   53   #error This file requires rtwtypes.h to be included before tmwtypes.h
   54   #else
   55   
   56   /* Check for inclusion of an incorrect version of rtwtypes.h */
   57   #ifndef RTWTYPES_ID_C08S16I32L32N32F1
   58   #error This code was generated with a different "rtwtypes.h" than the file included
   59   #endif                                 /* RTWTYPES_ID_C08S16I32L32N32F1 */
   60   #endif                                 /* TMWTYPES_PREVIOUSLY_INCLUDED */
   61   #endif                                 /* __RTWTYPES_H__ */
   62   
   63   extern real_T rt_powd_snf(real_T u0, real_T u1);
   64   
   65   /* Exported functions */
   66   extern real_T rt_urand_Upu32_Yd_f_pw_snf(uint32_T *u);
   67   extern real_T rt_nrand_Upu32_Yd_f_pw_snf(uint32_T *u);
   68   extern real_T rt_atan2d_snf(real_T u0, real_T u1);
   69   
   70   /* Exported functions */
   71   real_T rt_TDelayInterpolate(
   72     real_T tMinusDelay,                  /* tMinusDelay = currentSimTime - delay */
   73     real_T tStart,
   74     real_T *tBuf,
   75     real_T *uBuf,
   76     int_T bufSz,
   77     int_T *lastIdx,
   78     int_T oldestIdx,
   79     int_T newIdx,
   80     real_T initOutput,
   81     boolean_T discrete,
   82     boolean_T minorStepAndTAtLastMajorOutput)
   83     ;
   84   extern void Controller_MATLABFunction_Init(void);
   85   extern void Controller_MATLABFunction(void);
   86   
   87   /* private model entry point functions */
   88   extern void Controller_derivatives(void);
   89   
   90   #endif                                 /* RTW_HEADER_Controller_private_h_ */
   91