ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Macros | Enumerations | Functions | Variables
DFIG_Model_To_Code.cpp File Reference
#include "DFIG_Model_To_Code.h"
#include <math.h>
#include <stdlib.h>
Include dependency graph for DFIG_Model_To_Code.cpp:

Classes

struct  BigEndianIEEEDouble
 
struct  LittleEndianIEEEDouble
 
struct  IEEESingle
 

Macros

#define NumBitsPerChar   8U
 
#define rtmIsMajorTimeStep(rtm)   (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)
 
#define rtmIsMinorTimeStep(rtm)   (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)
 
#define rtmSetTPtr(rtm, val)   ((rtm)->Timing.t = (val))
 
#define CodeFormat   S-Function
 
#define S_FUNCTION_NAME   simulink_only_sfcn
 
#define S_FUNCTION_LEVEL   2
 
#define RTW_GENERATED_S_FUNCTION
 
#define rtmGetDataMapInfo(rtm)   NULL
 
#define rtmSetDataMapInfo(rtm, val)
 
#define RTW_SFUNCTION_DEFINES
 
#define _RTW_COMMON_DEFINES_
 
#define INTERP(x, x1, x2, y1, y2)   ( (y1)+(((y2) - (y1))/((x2) - (x1)))*((x)-(x1)) )
 
#define ZEROTECHNIQUE
 

Enumerations

enum  ZeroTechnique { NORMAL_INTERP , AVERAGE_VALUE , MIDDLE_VALUE }
 

Functions

void DFIG_Model_To_Code_derivatives ()
 
real_T rtGetInf (void)
 
real32_T rtGetInfF (void)
 
real_T rtGetMinusInf (void)
 
real32_T rtGetMinusInfF (void)
 
int_T rt_GetLookupIndex (const real_T *x, int_T xlen, real_T u)
 
real_T rt_Lookup (const real_T *x, int_T xlen, real_T u, const real_T *y)
 
void rt_InitInfAndNaN (size_t realSize)
 
boolean_T rtIsInf (real_T value)
 
boolean_T rtIsInfF (real32_T value)
 
boolean_T rtIsNaN (real_T value)
 
boolean_T rtIsNaNF (real32_T value)
 
real_T rtGetNaN (void)
 
real32_T rtGetNaNF (void)
 

Variables

real_T rtInf
 
real_T rtMinusInf
 
real_T rtNaN
 
real32_T rtInfF
 
real32_T rtMinusInfF
 
real32_T rtNaNF
 

Macro Definition Documentation

◆ _RTW_COMMON_DEFINES_

#define _RTW_COMMON_DEFINES_

◆ CodeFormat

#define CodeFormat   S-Function

◆ INTERP

#define INTERP (   x,
  x1,
  x2,
  y1,
  y2 
)    ( (y1)+(((y2) - (y1))/((x2) - (x1)))*((x)-(x1)) )

◆ NumBitsPerChar

#define NumBitsPerChar   8U

◆ rtmGetDataMapInfo

#define rtmGetDataMapInfo (   rtm)    NULL

◆ rtmIsMajorTimeStep

#define rtmIsMajorTimeStep (   rtm)    (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)

◆ rtmIsMinorTimeStep

#define rtmIsMinorTimeStep (   rtm)    (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)

◆ rtmSetDataMapInfo

#define rtmSetDataMapInfo (   rtm,
  val 
)

◆ rtmSetTPtr

#define rtmSetTPtr (   rtm,
  val 
)    ((rtm)->Timing.t = (val))

◆ RTW_GENERATED_S_FUNCTION

#define RTW_GENERATED_S_FUNCTION

◆ RTW_SFUNCTION_DEFINES

#define RTW_SFUNCTION_DEFINES

◆ S_FUNCTION_LEVEL

#define S_FUNCTION_LEVEL   2

◆ S_FUNCTION_NAME

#define S_FUNCTION_NAME   simulink_only_sfcn

◆ ZEROTECHNIQUE

#define ZEROTECHNIQUE

Enumeration Type Documentation

◆ ZeroTechnique

Enumerator
NORMAL_INTERP 
AVERAGE_VALUE 
MIDDLE_VALUE 

Function Documentation

◆ DFIG_Model_To_Code_derivatives()

void DFIG_Model_To_Code_derivatives ( )

◆ rt_GetLookupIndex()

int_T rt_GetLookupIndex ( const real_T x,
int_T  xlen,
real_T  u 
)

Referenced by rt_Lookup().

Here is the caller graph for this function:

◆ rt_InitInfAndNaN()

void rt_InitInfAndNaN ( size_t  realSize)

References rtGetInf(), rtGetInfF(), rtGetMinusInf(), rtGetMinusInfF(), rtGetNaN(), rtGetNaNF(), rtInf, rtInfF, rtMinusInf, rtMinusInfF, rtNaN, and rtNaNF.

Referenced by DFIG_Model_To_CodeModelClass::initialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rt_Lookup()

real_T rt_Lookup ( const real_T x,
int_T  xlen,
real_T  u,
const real_T y 
)

References rt_GetLookupIndex().

Referenced by DFIG_Model_To_CodeModelClass::step().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtGetInf()

real_T rtGetInf ( void  )

References NumBitsPerChar, rtGetInfF(), LittleEndianIEEEDouble::wordH, and LittleEndianIEEEDouble::words.

Referenced by rt_InitInfAndNaN().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtGetInfF()

real32_T rtGetInfF ( void  )

References IEEESingle::wordL, IEEESingle::wordLreal, and IEEESingle::wordLuint.

Referenced by rt_InitInfAndNaN(), and rtGetInf().

Here is the caller graph for this function:

◆ rtGetMinusInf()

real_T rtGetMinusInf ( void  )

References NumBitsPerChar, rtGetMinusInfF(), LittleEndianIEEEDouble::wordH, and LittleEndianIEEEDouble::words.

Referenced by rt_InitInfAndNaN().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtGetMinusInfF()

real32_T rtGetMinusInfF ( void  )

References IEEESingle::wordL, IEEESingle::wordLreal, and IEEESingle::wordLuint.

Referenced by rt_InitInfAndNaN(), and rtGetMinusInf().

Here is the caller graph for this function:

◆ rtGetNaN()

real_T rtGetNaN ( void  )

References NumBitsPerChar, rtGetNaNF(), LittleEndianIEEEDouble::wordH, and LittleEndianIEEEDouble::words.

Referenced by rt_InitInfAndNaN().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtGetNaNF()

real32_T rtGetNaNF ( void  )

References IEEESingle::wordL, IEEESingle::wordLreal, and IEEESingle::wordLuint.

Referenced by rt_InitInfAndNaN(), and rtGetNaN().

Here is the caller graph for this function:

◆ rtIsInf()

boolean_T rtIsInf ( real_T  value)

References rtInf, and rtMinusInf.

◆ rtIsInfF()

boolean_T rtIsInfF ( real32_T  value)

References rtInfF, and rtMinusInfF.

◆ rtIsNaN()

boolean_T rtIsNaN ( real_T  value)

◆ rtIsNaNF()

boolean_T rtIsNaNF ( real32_T  value)

Variable Documentation

◆ rtInf

real_T rtInf

◆ rtInfF

real32_T rtInfF

Referenced by rt_InitInfAndNaN(), and rtIsInfF().

◆ rtMinusInf

real_T rtMinusInf

Referenced by rt_InitInfAndNaN(), and rtIsInf().

◆ rtMinusInfF

real32_T rtMinusInfF

Referenced by rt_InitInfAndNaN(), and rtIsInfF().

◆ rtNaN

real_T rtNaN

Referenced by rt_InitInfAndNaN().

◆ rtNaNF

real32_T rtNaNF

Referenced by rt_InitInfAndNaN().