]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/src/CAPI/include/FMI2/fmi2_capi.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / CAPI / include / FMI2 / fmi2_capi.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/src/CAPI/include/FMI2/fmi2_capi.h b/org.simantics.fmil.core/native/FMILibrary/src/CAPI/include/FMI2/fmi2_capi.h
new file mode 100644 (file)
index 0000000..7c58446
--- /dev/null
@@ -0,0 +1,542 @@
+/*
+    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.
+
+     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 <http://www.modelon.com>.
+*/
+
+
+#ifndef FMI2_CAPI_H_
+#define FMI2_CAPI_H_
+
+#include <FMI2/fmi2_types.h>
+#include <FMI2/fmi2_functions.h>
+#include <FMI2/fmi2_enums.h>
+#include <JM/jm_portability.h>
+#include <JM/jm_callbacks.h>
+\r
+typedef struct fmi2_capi_t fmi2_capi_t;
+
+#ifdef __cplusplus 
+extern "C" {
+#endif
+
+/** \file fmi2_capi.h
+       \brief Public interfaces for the FMI CAPI library. 
+       */
+
+/** \addtogroup fmi2_capi Standard FMI 2.0 "C" API\r
+ * \brief The "C" API loads and frees the FMI functions and it is through these functions all the communication with the FMU occurs. The FMI import library wraps these functions in a more convenient way.\r
+ *  @{\r
+ */
+
+/**    \addtogroup fmi2_capi_const_destroy FMI 2.0 Utility functions\r
+ *             \brief Utility functions used to load and free the FMI functions.\r
+ *     \addtogroup fmi2_capi_me FMI 2.0 (ME) Model Exchange functions\r
+ *             \brief List of Model Exchange wrapper functions. Common functions are not listed.\r
+ *     \addtogroup fmi2_capi_cs FMI 2.0 (CS) Co-Simulation functions \r
+ *             \brief List of Co-Simulation wrapper functions. Common functions are not listed.\r
+ *     \addtogroup fmi2_capi_common FMI 2.0 (ME & CS) Common functions\r
+ *             \brief List of wrapper functions that are in common for both Model Exchange and Co-Simulation.\r
+ */
+
+
+/** \addtogroup fmi2_capi_const_destroy\r
+ *  @{\r
+ */
+
+/**\r
+ * \brief Free a C-API struct. All memory allocated since the struct was created is freed.\r
+ * \r
+ * @param fmu A model description object returned by fmi2_import_allocate.\r
+ */
+void fmi2_capi_destroy_dllfmu(fmi2_capi_t* fmu);
+
+/**\r
+ * \brief Create a C-API struct. The C-API struct is a placeholder for the FMI DLL functions.\r
+ * \r
+ * @param callbacks ::jm_callbacks used to construct library objects.\r
+ * @param dllPath Full path to the FMU shared library.\r
+ * @param modelIdentifier The model indentifier.\r
+ * @param standard FMI standard that the function should load.\r
+ * @param callBackFunctions callbacks passed to the FMU.\r
+ * @return Error status. If the function returns with an error, it is not allowed to call any of the other C-API functions.\r
+ */
+fmi2_capi_t* fmi2_capi_create_dllfmu(jm_callbacks* callbacks, const char* dllPath, const char* modelIdentifier, const fmi2_callback_functions_t* callBackFunctions, fmi2_fmu_kind_enu_t standard);
+
+/**\r
+ * \brief Loads the FMI functions from the shared library. The shared library must be loaded before this function can be called, see fmi2_import_create_dllfmu.\r
+ * \r
+ * @param fmu A model description object returned by fmi2_import_allocate.\r
+ * @param capabilities An array of capability flags according to fmi2_capabilities_enu_t order.\r
+ * @return Error status. If the function returns with an error, no other C-API functions than fmi2_import_free_dll and fmi2_import_destroy_dllfmu are allowed to be called.\r
+ */
+jm_status_enu_t fmi2_capi_load_fcn(fmi2_capi_t* fmu, unsigned int capabilities[]);
+
+/**\r
+ * \brief Loads the FMU´s shared library. The shared library functions are not loaded in this call, see fmi2_import_create_dllfmu.\r
+ * \r
+ * @param fmu A model description object returned by fmi2_import_allocate.\r
+ * @return Error status. If the function returns with an error, no other C-API functions than fmi2_import_destroy_dllfmu are allowed to be called.\r
+ */
+jm_status_enu_t fmi2_capi_load_dll(fmi2_capi_t* fmu);
+
+/**\r
+ * \brief Frees the handle to the FMU´s shared library. After this function returnes, no other C-API functions than fmi2_import_destroy_dllfmu and fmi2_import_create_dllfmu are allowed to be called.\r
+ * \r
+ * @param fmu A model description object returned by fmi2_import_allocate that has loaded the FMU´s shared library, see fmi2_import_create_dllfmu.\r
+ * @return Error status.\r
+ */
+jm_status_enu_t fmi2_capi_free_dll(fmi2_capi_t* fmu);
+\r
+/**\r
+ * \brief Set CAPI debug mode flag. Setting to non-zero prevents DLL unloading in fmi1_capi_free_dll\r
+ *  while all the memory is deallocated. This is to support valgrind debugging. \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param mode The debug mode to set.\r
+ */\r
+void fmi2_capi_set_debug_mode(fmi2_capi_t* fmu, int mode);
+
+/**\r
+ * \brief Get CAPI debug mode flag that was set with fmi1_capi_set_debug_mode()\r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function. */\r
+int fmi2_capi_get_debug_mode(fmi2_capi_t* fmu);
+
+/**\r
+ * \brief Get the FMU kind loaded by the CAPI\r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function. */\r
+fmi2_fmu_kind_enu_t fmi2_capi_get_fmu_kind(fmi2_capi_t* fmu);
+
+
+/**@} */
+
+/** \addtogroup fmi2_capi_common\r
+ *  @{\r
+ */
+
+/**\r
+ * \brief Calls the FMI function fmiGetVersion() \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @return FMI version.\r
+ */
+const char* fmi2_capi_get_version(fmi2_capi_t* fmu);
+
+/**\r
+ * \brief Calls the FMI function fmiSetDebugLogging(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param loggingOn Enable or disable the debug logger.\r
+ * @param nCategories Number of categories to log.\r
+ * @param categories Which categories to log.\r
+ *\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_debug_logging(fmi2_capi_t* fmu, fmi2_boolean_t loggingOn, size_t nCategories, fmi2_string_t categories[]);
+
+/**
+ * \brief Calls the FMI function fmiInstantiate(...) 
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function. 
+ * @param instanceName The name of the instance.
+ * @param fmuType fmi2_model_exchange or fmi2_cosimulation.
+ * @param fmuGUID The GUID identifier.
+ * @param fmuResourceLocation Access path to the FMU archive resources.
+ * @param visible Indicates whether or not the simulator application window shoule be visible.
+ * @param loggingOn Enable or disable the debug logger.
+ * @return An instance of a model.
+ */
+fmi2_component_t fmi2_capi_instantiate(fmi2_capi_t* fmu,
+    fmi2_string_t instanceName, fmi2_type_t fmuType, fmi2_string_t fmuGUID,
+    fmi2_string_t fmuResourceLocation, fmi2_boolean_t visible,
+    fmi2_boolean_t loggingOn);
+
+/**\r
+ * \brief Calls the FMI function fmiFreeInstance(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ */
+void fmi2_capi_free_instance(fmi2_capi_t* fmu);
+
+
+/**
+ * \brief Calls the FMI function fmiSetupExperiment(...)
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @param toleranceDefined True if the @p tolerance argument is to be used
+ * @param tolerance Solvers internal to the FMU should use this tolerance or finer, if @p toleranceDefined is true
+ * @param startTime Start time of the experiment
+ * @param stopTimeDefined True if the @p stopTime argument is to be used
+ * @param stopTime Stop time of the experiment, if @p stopTimeDefined is true
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_setup_experiment(fmi2_capi_t* fmu,
+    fmi2_boolean_t toleranceDefined, fmi2_real_t tolerance,
+    fmi2_real_t startTime, fmi2_boolean_t stopTimeDefined,
+    fmi2_real_t stopTime);
+
+/**
+ * \brief Calls the FMI function fmiEnterInitializationMode(...)
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_enter_initialization_mode(fmi2_capi_t* fmu);
+
+/**
+ * \brief Calls the FMI function fmiExitInitializationMode(...)
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_exit_initialization_mode(fmi2_capi_t* fmu);
+
+/**
+ * \brief Calls the FMI function fmiTerminate(...)
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_terminate(fmi2_capi_t* fmu);
+
+/**
+ * \brief Calls the FMI function fmiReset(...) 
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_reset(fmi2_capi_t* fmu);
+
+
+/**\r
+ * \brief Calls the FMI function fmiSetReal(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_real(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_real_t    value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiSetInteger(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_integer(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_integer_t value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiSetBoolean(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_boolean(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_boolean_t value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiSetString(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_string(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_string_t  value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiGetReal(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_real(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, fmi2_real_t    value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiGetInteger(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_integer(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, fmi2_integer_t value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiGetBoolean(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_boolean(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, fmi2_boolean_t value[]);
+
+/**\r
+ * \brief Calls the FMI function fmiGetString(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_string(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, fmi2_string_t  value[]);
+
+
+/**\r
+ * \brief Calls the FMI function fmiGetTypesPlatform(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @return The platform the FMU was compiled for.\r
+ */
+const char* fmi2_capi_get_types_platform(fmi2_capi_t* fmu);
+\r
+fmi2_status_t fmi2_capi_get_fmu_state           (fmi2_capi_t* fmu, fmi2_FMU_state_t* s);\r
+fmi2_status_t fmi2_capi_set_fmu_state           (fmi2_capi_t* fmu, fmi2_FMU_state_t s);\r
+fmi2_status_t fmi2_capi_free_fmu_state          (fmi2_capi_t* fmu, fmi2_FMU_state_t* s);\r
+fmi2_status_t fmi2_capi_serialized_fmu_state_size(fmi2_capi_t* fmu, fmi2_FMU_state_t s, size_t* sz);\r
+fmi2_status_t fmi2_capi_serialize_fmu_state     (fmi2_capi_t* fmu, fmi2_FMU_state_t s , fmi2_byte_t data[], size_t sz);\r
+fmi2_status_t fmi2_capi_de_serialize_fmu_state  (fmi2_capi_t* fmu, const fmi2_byte_t data[], size_t sz, fmi2_FMU_state_t* s);\r
+\r
+/* Getting directional derivatives */
+fmi2_status_t fmi2_capi_get_directional_derivative(fmi2_capi_t* fmu, const fmi2_value_reference_t v_ref[], size_t nv,\r
+                                                                   const fmi2_value_reference_t z_ref[], size_t nz,\r
+                                                                   const fmi2_real_t dv[], fmi2_real_t dz[]);
+/**@} */
+
+/** \addtogroup fmi2_capi_me\r
+ *  @{\r
+ */
+
+/**
+ * \brief Calls the FMI function fmiEnterEventMode(...) 
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_enter_event_mode(fmi2_capi_t* fmu);
+
+/**
+ * \brief Calls the FMI function fmiNewDiscreteStates(...) 
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @param eventInfo Pointer to fmi2_event_info_t structure that will be filled in.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_new_discrete_states(fmi2_capi_t* fmu, fmi2_event_info_t* eventInfo);
+
+/**
+ * \brief Calls the FMI function fmiEnterContinuousTimeMode(...) 
+ * 
+ * @param fmu C-API struct that has succesfully loaded the FMI function.
+ * @return FMI status.
+ */
+fmi2_status_t fmi2_capi_enter_continuous_time_mode(fmi2_capi_t* fmu);
+
+
+/**\r
+ * \brief Calls the FMI function fmiSetTime(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param time Set the current time.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_time(fmi2_capi_t* fmu, fmi2_real_t time);
+
+/**\r
+ * \brief Calls the FMI function fmiSetContinuousStates(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param x Array of state values.\r
+ * @param nx Number of states.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_continuous_states(fmi2_capi_t* fmu, const fmi2_real_t x[], size_t nx);
+
+/**\r
+ * \brief Calls the FMI function fmiCompletedIntegratorStep(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param noSetFMUStatePriorToCurrentPoint True if fmiSetFMUState will no
+          longer be called for time instants prior to current time in this
+          simulation run.
+ * @param enterEventMode (Output) Call fmiEnterEventMode indicator.
+ * @param terminateSimulation (Output) Terminate simulation indicator.
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_completed_integrator_step(fmi2_capi_t* fmu,
+    fmi2_boolean_t noSetFMUStatePriorToCurrentPoint,
+    fmi2_boolean_t* enterEventMode, fmi2_boolean_t* terminateSimulation);
+
+/**\r
+ * \brief Calls the FMI function fmiGetDerivatives(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param derivatives (Output) Array of the derivatives.\r
+ * @param nx Number of derivatives.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_derivatives(fmi2_capi_t* fmu, fmi2_real_t derivatives[]    , size_t nx);
+
+/**\r
+ * \brief Calls the FMI function fmiGetEventIndicators(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param eventIndicators (Output) The event indicators.\r
+ * @param ni Number of event indicators.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_event_indicators(fmi2_capi_t* fmu, fmi2_real_t eventIndicators[], size_t ni);
+
+/**\r
+ * \brief Calls the FMI function fmiGetContinuousStates(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param states (Output) Array of state values.\r
+ * @param nx Number of states.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_continuous_states(fmi2_capi_t* fmu, fmi2_real_t states[], size_t nx);
+
+/**\r
+ * \brief Calls the FMI function fmiGetNominalsOfContinuousStates(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param x_nominal (Output) The nominal values.\r
+ * @param nx Number of nominal values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_nominals_of_continuous_states(fmi2_capi_t* fmu, fmi2_real_t x_nominal[], size_t nx);
+
+/**@} */
+
+/** \addtogroup fmi2_capi_cs\r
+ *  @{\r
+ */
+
+/**\r
+ * \brief Calls the FMI function fmiSetRealInputDerivatives(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully load the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param order        Array of derivative orders.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_set_real_input_derivatives(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_integer_t order[], const  fmi2_real_t value[]);                                                  
+
+/**\r
+ * \brief Calls the FMI function fmiGetOutputDerivatives(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param order        Array of derivative orders.\r
+ * @param value (Output) Array of variable values.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_real_output_derivatives(fmi2_capi_t* fmu, const fmi2_value_reference_t vr[], size_t nvr, const fmi2_integer_t order[], fmi2_real_t value[]);                                              
+
+/**\r
+ * \brief Calls the FMI function fmiCancelStep(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_cancel_step(fmi2_capi_t* fmu);
+
+/**\r
+ * \brief Calls the FMI function fmiDoStep(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param currentCommunicationPoint Current communication point of the master.\r
+ * @param communicationStepSize Communication step size.\r
+ * @param newStep Indicates whether or not the last communication step was accepted by the master.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_do_step(fmi2_capi_t* fmu, fmi2_real_t currentCommunicationPoint, fmi2_real_t communicationStepSize, fmi2_boolean_t newStep);
+
+/**\r
+ * \brief Calls the FMI function fmiGetStatus(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI status value.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_status(fmi2_capi_t* fmu, const fmi2_status_kind_t s, fmi2_status_t*  value);
+
+/**\r
+ * \brief Calls the FMI function fmiGetRealStatus(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI real value.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_real_status(fmi2_capi_t* fmu, const fmi2_status_kind_t s, fmi2_real_t*    value);
+\r
+/**\r
+ * \brief Calls the FMI function fmiGetIntegerStatus(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI integer value.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_integer_status(fmi2_capi_t* fmu, const fmi2_status_kind_t s, fmi2_integer_t* value);
+
+/**\r
+ * \brief Calls the FMI function fmiGetBooleanStatus(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI boolean value.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_boolean_status(fmi2_capi_t* fmu, const fmi2_status_kind_t s, fmi2_boolean_t* value);
+
+/**\r
+ * \brief Calls the FMI function fmiGetStringStatus(...) \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI string value.\r
+ * @return FMI status.\r
+ */
+fmi2_status_t fmi2_capi_get_string_status(fmi2_capi_t* fmu, const fmi2_status_kind_t s, fmi2_string_t*  value);
+
+/** @}*/
+/** @}*/
+
+#ifdef __cplusplus 
+}
+#endif
+
+#endif /* End of header file FMI2_CAPI_H_ */