]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h
Update license, copyright and description for FMIL Library
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / Test / FMI1 / fmu_dummy / fmu1_model_defines.h
1 /*\r
2 Copyright (C) 2012 Modelon AB\r
3 \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.
6 \r
7 the Free Software Foundation, version 3 of the License.\r
8 \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
13 \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
16 */\r
17 \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
20 \r
21 #define STRINGIFY(a)                    #a\r
22 #define STRINGIFY2(a)                   STRINGIFY(a)\r
23 #define MODEL_IDENTIFIER_STR    STRINGIFY2(MODEL_IDENTIFIER)\r
24 \r
25 #define BUFFER                                  1024\r
26 #define MAGIC_TEST_VALUE                13.0    /* A test value for some functions  */\r
27 \r
28 /* BouncingBall model with redundant values */\r
29 /* ValueReferences for the variables and parameters in the model */\r
30 /* States */\r
31 #define VAR_R_HIGHT                             0\r
32 #define VAR_R_HIGHT_SPEED               1\r
33 /* Real */\r
34 #define VAR_R_GRATIVY                   2\r
35 #define VAR_R_BOUNCE_CONF               3\r
36 \r
37 /* Event indicators */\r
38 #define EVENT_HIGHT                             0\r
39 \r
40 /* Event indicators */\r
41 #define VAR_S_LOGGER_TEST               0\r
42 \r
43 /* Sizes */\r
44 #define N_STATES                                2\r
45 #define N_EVENT_INDICATORS              1\r
46 #define N_REAL                                  4\r
47 #define N_INTEGER                               4\r
48 #define N_BOOLEAN                               4\r
49 #define N_STRING                                4\r
50 \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
55 \r
56 \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
64 #else\r
65 #error "Either fmiPlatform or fmiModelTypesPlatform must be defined"\r
66 #endif\r
67 #define FMI_GUID                        "123"\r
68 \r
69 \r
70 #endif /* End of header FMU1_MODEL_DEFINES_H_ */