Skip to content
Snippets Groups Projects
Commit 9fc62e42 authored by Jean Meurice's avatar Jean Meurice
Browse files

library_interface cleanup

parent c465e62e
No related branches found
No related tags found
No related merge requests found
...@@ -17,23 +17,13 @@ ...@@ -17,23 +17,13 @@
extern "C" { extern "C" {
// These are the functions that any autopilot must implement in order to be loaded and executed by the hardware_emulator // See https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/simulators/simulation/-/wikis/dev-docs/concepts/Library-Interface
// These are wrappers around the "autopilot interface functions" (program.h)
// These are simpler entry points so that the hardware_emulator can more easily communicate with the autopilot
// (Simple pure C types & simple function calling standards)
// Returns The JSON string of the DynamicInterface
EXPORT const char* DI__get_interface(); EXPORT const char* DI__get_interface();
// Port data-exchange functions
// If is_json != 0, the data is a JSON string
// Else the data is binary: First 4 bytes of data -> size of the rest
// Same for the returned data from DI__get_port()
EXPORT void DI__set_port(int i, const char* data, int is_json); EXPORT void DI__set_port(int i, const char* data, int is_json);
EXPORT const char* DI__get_port(int i, int is_json); EXPORT const char* DI__get_port(int i, int is_json);
// Methods
EXPORT void DI__init(); EXPORT void DI__init();
EXPORT void DI__execute(double delta_sec); EXPORT void DI__execute(double delta_sec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment