X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.fmil.core%2Fnative%2FFMILibrary%2FTest%2FFMI1%2Ffmu_dummy%2Ffmu1_model_defines.h;fp=org.simantics.fmil.core%2Fnative%2FFMILibrary%2FTest%2FFMI1%2Ffmu_dummy%2Ffmu1_model_defines.h;h=9fc4426659eb6dd5c8f474e60f01058790757bb2;hb=4bed8078f3f6d15b8539d7357b8815f8bfeec2c4;hp=0000000000000000000000000000000000000000;hpb=87cc423aefd98832c6c8d0979afc21551f8ceca3;p=simantics%2Ffmil.git diff --git a/org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h b/org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h new file mode 100644 index 0000000..9fc4426 --- /dev/null +++ b/org.simantics.fmil.core/native/FMILibrary/Test/FMI1/fmu_dummy/fmu1_model_defines.h @@ -0,0 +1,70 @@ +/* +Copyright (C) 2012 Modelon AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the BSD style license. + +the Free Software Foundation, version 3 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +FMILIB_License.txt file for more details. + +You should have received a copy of the FMILIB_License.txt file +along with this program. If not, contact Modelon AB . +*/ + +/* This header is used to generate the FMU test DLL and in the C API test that uses the DLL */ +#ifndef FMU1_MODEL_DEFINES_H_ + +#define STRINGIFY(a) #a +#define STRINGIFY2(a) STRINGIFY(a) +#define MODEL_IDENTIFIER_STR STRINGIFY2(MODEL_IDENTIFIER) + +#define BUFFER 1024 +#define MAGIC_TEST_VALUE 13.0 /* A test value for some functions */ + +/* BouncingBall model with redundant values */ +/* ValueReferences for the variables and parameters in the model */ +/* States */ +#define VAR_R_HIGHT 0 +#define VAR_R_HIGHT_SPEED 1 +/* Real */ +#define VAR_R_GRATIVY 2 +#define VAR_R_BOUNCE_CONF 3 + +/* Event indicators */ +#define EVENT_HIGHT 0 + +/* Event indicators */ +#define VAR_S_LOGGER_TEST 0 + +/* Sizes */ +#define N_STATES 2 +#define N_EVENT_INDICATORS 1 +#define N_REAL 4 +#define N_INTEGER 4 +#define N_BOOLEAN 4 +#define N_STRING 4 + +#define N_INPUT_REAL 2 /* CS only */ +#define N_INPUT_REAL_MAX_ORDER 2 /* CS only */ +#define N_OUTPUT_REAL 2 /* CS only */ +#define N_OUTPUT_REAL_MAX_ORDER 2 /* CS only */ + + +#define FMI_VERSION "1.0" +#if defined(FMI1_TYPES_H_) +#define FMI_PLATFORM_TYPE fmi1_get_platform() +#elif defined(fmiModelTypesPlatform) +#define FMI_PLATFORM_TYPE fmiModelTypesPlatform +#elif defined(fmiPlatform) +#define FMI_PLATFORM_TYPE fmiPlatform +#else +#error "Either fmiPlatform or fmiModelTypesPlatform must be defined" +#endif +#define FMI_GUID "123" + + +#endif /* End of header FMU1_MODEL_DEFINES_H_ */ \ No newline at end of file