2 Copyright (C) 2012 Modelon AB
\r
4 This program is free software: you can redistribute it and/or modify
\r
5 it under the terms of the BSD style license.
7 the Free Software Foundation, version 3 of the License.
\r
9 This program is distributed in the hope that it will be useful,
\r
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 FMILIB_License.txt file for more details.
\r
14 You should have received a copy of the FMILIB_License.txt file
\r
15 along with this program. If not, contact Modelon AB <http://www.modelon.com>.
\r
18 /* This header is used to generate the FMU test DLL and in the C API test that uses the DLL */
\r
19 #ifndef FMU1_MODEL_DEFINES_H_
\r
21 #define STRINGIFY(a) #a
\r
22 #define STRINGIFY2(a) STRINGIFY(a)
\r
23 #define MODEL_IDENTIFIER_STR STRINGIFY2(MODEL_IDENTIFIER)
\r
26 #define MAGIC_TEST_VALUE 13.0 /* A test value for some functions */
\r
28 /* BouncingBall model with redundant values */
\r
29 /* ValueReferences for the variables and parameters in the model */
\r
31 #define VAR_R_HIGHT 0
\r
32 #define VAR_R_HIGHT_SPEED 1
\r
34 #define VAR_R_GRATIVY 2
\r
35 #define VAR_R_BOUNCE_CONF 3
\r
37 /* Event indicators */
\r
38 #define EVENT_HIGHT 0
\r
40 /* Event indicators */
\r
41 #define VAR_S_LOGGER_TEST 0
\r
45 #define N_EVENT_INDICATORS 1
\r
51 #define N_INPUT_REAL 2 /* CS only */
\r
52 #define N_INPUT_REAL_MAX_ORDER 2 /* CS only */
\r
53 #define N_OUTPUT_REAL 2 /* CS only */
\r
54 #define N_OUTPUT_REAL_MAX_ORDER 2 /* CS only */
\r
57 #define FMI_VERSION "1.0"
\r
58 #if defined(FMI1_TYPES_H_)
\r
59 #define FMI_PLATFORM_TYPE fmi1_get_platform()
\r
60 #elif defined(fmiModelTypesPlatform)
\r
61 #define FMI_PLATFORM_TYPE fmiModelTypesPlatform
\r
62 #elif defined(fmiPlatform)
\r
63 #define FMI_PLATFORM_TYPE fmiPlatform
\r
65 #error "Either fmiPlatform or fmiModelTypesPlatform must be defined"
\r
67 #define FMI_GUID "123"
\r
70 #endif /* End of header FMU1_MODEL_DEFINES_H_ */