Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shared_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
monticore
EmbeddedMontiArc
simulators
shared_cpp
Commits
9fc62e42
Commit
9fc62e42
authored
Aug 30, 2021
by
Jean Meurice
Browse files
Options
Downloads
Patches
Plain Diff
library_interface cleanup
parent
c465e62e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
library_interface.h
+1
-11
1 addition, 11 deletions
library_interface.h
with
1 addition
and
11 deletions
library_interface.h
+
1
−
11
View file @
9fc62e42
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment