11 #ifndef RTW_CONTINUOUS_H__
12 #define RTW_CONTINUOUS_H__
14 #ifdef MATLAB_MEX_FILE
55 typedef real_T (*rtMdlDiscreteEventsFcn)(
void *pModel,
56 int_T rtmNumSampTimes,
58 int_T *rtmSampleHitPtr,
59 int_T *rtmPerTaskSampleHits);
75 rtMdlDiscreteEventsFcn rtmDiscreteEventsFcn;
79 #define rtmiSetRTModelPtr(M,rtmp) ((M).rtModelPtr = (rtmp))
80 #define rtmiGetRTModelPtr(M) (M).rtModelPtr
82 #define rtmiSetInitSizesFcn(M,fp) \
83 ((M).rtmInitSizesFcn = ((rtMdlInitializeSizesFcn)(fp)))
84 #define rtmiSetInitSampTimesFcn(M,fp) \
85 ((M).rtmInitSampTimesFcn = ((rtMdlInitializeSampleTimesFcn)(fp)))
86 #define rtmiSetStartFcn(M,fp) \
87 ((M).rtmStartFcn = ((rtMdlStartFcn)(fp)))
88 #define rtmiSetOutputsFcn(M,fp) \
89 ((M).rtmOutputsFcn = ((rtMdlOutputsFcn)(fp)))
90 #define rtmiSetUpdateFcn(M,fp) \
91 ((M).rtmUpdateFcn = ((rtMdlUpdateFcn)(fp)))
92 #define rtmiSetDervisFcn(M,fp) \
93 ((M).rtmDervisFcn = ((rtMdlDerivativesFcn)(fp)))
94 #define rtmiSetProjectionFcn(M,fp) \
95 ((M).rtmProjectionFcn = ((rtMdlProjectionFcn)(fp)))
96 #define rtmiSetMassMatrixFcn(M,fp) \
97 ((M).rtmMassMatrixFcn = ((rtMdlMassMatrixFcn)(fp)))
98 #define rtmiSetForcingFunctionFcn(M,fp) \
99 ((M).rtmForcingFunctionFcn = ((rtMdlForcingFunctionFcn)(fp)))
100 #define rtmiSetTerminateFcn(M,fp) \
101 ((M).rtmTerminateFcn = ((rtMdlTerminateFcn)(fp)))
103 #define rtmiSetDiscreteEventsFcn(M,fp) \
104 ((M).rtmDiscreteEventsFcn = ((rtMdlDiscreteEventsFcn)(fp)))
107 #define rtmiInitializeSizes(M) \
108 ((*(M).rtmInitSizesFcn)((M).rtModelPtr))
109 #define rtmiInitializeSampleTimes(M) \
110 ((*(M).rtmInitSampTimesFcn)((M).rtModelPtr))
111 #define rtmiStart(M) \
112 ((*(M).rtmStartFcn)((M).rtModelPtr))
113 #define rtmiOutputs(M, tid) \
114 ((*(M).rtmOutputsFcn)((M).rtModelPtr,tid))
115 #define rtmiUpdate(M, tid) \
116 ((*(M).rtmUpdateFcn)((M).rtModelPtr,tid))
117 #define rtmiDerivatives(M) \
118 ((*(M).rtmDervisFcn)((M).rtModelPtr))
119 #define rtmiProjection(M) \
120 ((*(M).rtmProjectionFcn)((M).rtModelPtr))
121 #define rtmiMassMatrix(M) \
122 ((*(M).rtmMassMatrixFcn)((M).rtModelPtr))
123 #define rtmiForcingFunction(M) \
124 ((*(M).rtmForcingFunctionFcn)((M).rtModelPtr))
125 #define rtmiTerminate(M) \
126 ((*(M).rtmTerminateFcn)((M).rtModelPtr))
128 #define rtmiDiscreteEvents(M,x1,x2,x3,x4) \
129 ((*(M).rtmDiscreteEventsFcn)((M).rtModelPtr,(x1),(x2),(x3),(x4)))
void(* rtMdlForcingFunctionFcn)(void *rtModel)
Definition: rtw_continuous.h:52
void(* rtMdlDerivativesFcn)(void *rtModel)
Definition: rtw_continuous.h:49
struct _RTWRTModelMethodsInfo_tag RTWRTModelMethodsInfo
void(* rtMdlMassMatrixFcn)(void *rtModel)
Definition: rtw_continuous.h:51
ssMatrixType
Definition: rtw_continuous.h:21
@ SS_MATRIX_NONE
Definition: rtw_continuous.h:22
@ SS_MATRIX_TIMEDEP
Definition: rtw_continuous.h:24
@ SS_MATRIX_CONSTANT
Definition: rtw_continuous.h:23
@ SS_MATRIX_STATEDEP
Definition: rtw_continuous.h:25
void(* rtMdlUpdateFcn)(void *rtModel, int_T tid)
Definition: rtw_continuous.h:48
void(* rtMdlProjectionFcn)(void *rtModel)
Definition: rtw_continuous.h:50
void(* rtMdlInitializeSampleTimesFcn)(void *rtModel)
Definition: rtw_continuous.h:45
void(* rtMdlOutputsFcn)(void *rtModel, int_T tid)
Definition: rtw_continuous.h:47
void(* rtMdlStartFcn)(void *rtModel)
Definition: rtw_continuous.h:46
SimTimeStep
Definition: rtw_continuous.h:35
@ MAJOR_TIME_STEP
Definition: rtw_continuous.h:37
@ MINOR_TIME_STEP
Definition: rtw_continuous.h:36
void(* rtMdlTerminateFcn)(void *rtModel)
Definition: rtw_continuous.h:53
void(* rtMdlInitializeSizesFcn)(void *rtModel)
Definition: rtw_continuous.h:44
SolverMode
Definition: rtw_continuous.h:28
@ SOLVER_MODE_MULTITASKING
Definition: rtw_continuous.h:32
@ SOLVER_MODE_SINGLETASKING
Definition: rtw_continuous.h:31
@ SOLVER_MODE_AUTO
Definition: rtw_continuous.h:29
double real_T
Definition: rtwtypes.h:64
int int_T
Definition: rtwtypes.h:67
Definition: rtw_continuous.h:62
rtMdlStartFcn rtmStartFcn
Definition: rtw_continuous.h:66
rtMdlUpdateFcn rtmUpdateFcn
Definition: rtw_continuous.h:68
void * rtModelPtr
Definition: rtw_continuous.h:63
rtMdlProjectionFcn rtmProjectionFcn
Definition: rtw_continuous.h:70
rtMdlOutputsFcn rtmOutputsFcn
Definition: rtw_continuous.h:67
rtMdlInitializeSampleTimesFcn rtmInitSampTimesFcn
Definition: rtw_continuous.h:65
rtMdlDerivativesFcn rtmDervisFcn
Definition: rtw_continuous.h:69
rtMdlMassMatrixFcn rtmMassMatrixFcn
Definition: rtw_continuous.h:71
rtMdlForcingFunctionFcn rtmForcingFunctionFcn
Definition: rtw_continuous.h:72
rtMdlTerminateFcn rtmTerminateFcn
Definition: rtw_continuous.h:73
rtMdlInitializeSizesFcn rtmInitSizesFcn
Definition: rtw_continuous.h:64