1#ifndef __GC_calibration_XPCOPTIONS_H___
2#define __GC_calibration_XPCOPTIONS_H___
3#include "simstruc_types.h"
4#ifndef MT
5#define MT 0 /* MT may be undefined by simstruc_types.h */
6#endif
7
8#include "GC_calibration.h"
9#define XPCMDSSUPPORT 0
10#define MDSTASKSNUM 0
11#define FULLMULTITHREAD 1
12#define SIZEOF_PARAMS (-1 * (int)sizeof(P_GC_calibration_T))
13#define SIMMODE 0
14#define LOGTET 0
15#define LOGBUFSIZE 100000
16#define PROFILINGFLAG 1
17#define EVENTNUMBER 5000
18#define IRQ_NO 0
19#define IO_IRQ 0
20#define WWW_ACCESS_LEVEL 0
21#define CPUCLOCK 0
22#define MAXOVERLOAD 0
23#define MAXOVERLOADLEN 0
24#define XPCMODELSTACKSIZEKB 2048
25#define XPCSTARTUPFLAG 1
26#define PTLOADPARAMFLAG 0
27#define DOUBLEBUFFERING 0
28#define SLRTFTZOFFFLAG 0
29
30/* Change all stepsize using the newBaseRateStepSize */
31void GC_calibration_ChangeStepSize(real_T newBaseRateStepSize,
32 RT_MODEL_GC_calibration_T *const GC_calibration_M)
33{
34 real_T ratio = newBaseRateStepSize / 0.0005;
35
36 /* update non-zore stepsize of periodic
37 * sample time. Stepsize of asynchronous
38 * sample time is not changed in this function */
39 GC_calibration_M->Timing.stepSize0 = GC_calibration_M->Timing.stepSize0 *
40 ratio;
41 GC_calibration_M->Timing.stepSize = GC_calibration_M->Timing.stepSize * ratio;
42}
43
44void XPCCALLCONV changeStepSize(real_T stepSize)
45{
46 /* Change all stepsize using the newBaseRateStepSize */
47 GC_calibration_ChangeStepSize(stepSize, GC_calibration_M);
48}
49
50void XPCCALLCONV SLRTSetErrorStatus(const char * errMsg)
51{
52 rtmSetErrorStatus(GC_calibration_M, errMsg);
53}
54
55#endif /* __GC_calibration_XPCOPTIONS_H___ */
56