Skip to content

Commit

Permalink
deploy: 66ee54a
Browse files Browse the repository at this point in the history
  • Loading branch information
timrulebosch committed Nov 14, 2024
1 parent eb5f106 commit 24a58ea
Show file tree
Hide file tree
Showing 81 changed files with 271 additions and 138 deletions.
2 changes: 1 addition & 1 deletion 404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion about/index.html

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions apis/clib/examples/counter.c

This file was deleted.

40 changes: 40 additions & 0 deletions apis/clib/examples/mdf_file.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2024 Robert Bosch GmbH

#include <stdint.h>
#include <dse/clib/mdf/mdf.h>

#define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0]))

void mdf_api_example(void)
{
const char* signal[] = { "SigA", "SigB", "SigC", "SigD" };
double scalar[] = { 0, 1, 2, 3 };

// Configure the MDF Channel Groups.
MdfChannelGroup groups[] = {
{
.name = "Physical",
.signal = signal,
.scalar = scalar,
.count = ARRAY_SIZE(signal),
},
};

// Open a file stream for writing MDF data.
FILE* f = fopen("tsetfile.MF4", "w");

// Create the MDF Descriptor.
MdfDesc mdf = mdf_create(f, groups, ARRAY_SIZE(groups));

// Write a number of samples to the MDF file stream.
mdf_start_blocks(&mdf);
for (double timestamp = 0.0; timestamp < 0.010; timestamp += 0.0005) {
for (size_t i = 0; i < ARRAY_SIZE(scalar); i++) {
scalar[i] += 1;
}
mdf_write_records(&mdf, timestamp);
}

// Close the file stream.
fclose(f);
}
7 changes: 4 additions & 3 deletions apis/clib/index.html

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions apis/clib/index.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C Lib API Reference on Dynamic Simulation Environment</title><link>https://boschglobal.github.io/dse.doc/apis/clib/</link><description>Recent content in C Lib API Reference on Dynamic Simulation Environment</description><generator>Hugo -- gohugo.io</generator><atom:link href="https://boschglobal.github.io/dse.doc/apis/clib/index.xml" rel="self" type="application/rss+xml"/><item><title>Marshal API Reference</title><link>https://boschglobal.github.io/dse.doc/apis/clib/marshal/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://boschglobal.github.io/dse.doc/apis/clib/marshal/</guid><description>marshal_generate_signalmap Creates a signal map between signals (i.e. the external signal interface) and the source (i.e. the internal interface to the target).
Parameters signal (MarshalMapSpec) A map spec for the signals to be mapped (i.e. the representation of the signal interface). source (MarshalMapSpec) A map spec for the source values to be mapped (i.e. the representation of the target). ex_signals (SimpleSet*) A set used to keep track of signals between calls (to this function) and prevent duplicate mappings.</description></item></channel></rss>
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C Lib API Reference on Dynamic Simulation Environment</title><link>https://boschglobal.github.io/dse.doc/apis/clib/</link><description>Recent content in C Lib API Reference on Dynamic Simulation Environment</description><generator>Hugo -- gohugo.io</generator><atom:link href="https://boschglobal.github.io/dse.doc/apis/clib/index.xml" rel="self" type="application/rss+xml"/><item><title>Marshal API Reference</title><link>https://boschglobal.github.io/dse.doc/apis/clib/marshal/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://boschglobal.github.io/dse.doc/apis/clib/marshal/</guid><description>Marshal API The Marshal API supports two modes of operation:
Marshalling of intrinsic data types between source and target where the target represents externally defined data structures. Marshalling of signal maps between a signal interface and the source data objects (of the marshalling sub-system). When these operations are combined it becomes possible to map signals to externally defined data structures (i.e. C style structs).
Component Diagram @startuml data-marshal-interface skinparam nodesep 55 skinparam ranksep 40 title Marshal Interface interface &amp;#34;Signals&amp;#34; as sig package &amp;#34;Controller&amp;#34; { component &amp;#34;Source&amp;#34; as sou component &amp;#34;Target&amp;#34; as tar } sig -right-&amp;gt; sou : out sig &amp;lt;-right- sou : in sou -right-&amp;gt; tar : out sou &amp;lt;-right- tar : in center footer Dynamic Simulation Environment @enduml marshal_type_size Return the size of a MarshalType (in bytes).</description></item><item><title>Mdf API Reference</title><link>https://boschglobal.github.io/dse.doc/apis/clib/mdf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://boschglobal.github.io/dse.doc/apis/clib/mdf/</guid><description>MDF API The MDF API (a part of the DSE C Lib) provides methods for creating an MDF4 data stream. Data is saved according to the ASAM Standards.
Because of the streaming design the exact number of samples written to an MDF file is not known when the MDF file is initially created. Accordingly, to indicate this condition, the follwing flags are set in the MDF file:
Update of cycle counters for CG-/CABLOCK required.</description></item></channel></rss>
41 changes: 22 additions & 19 deletions apis/clib/marshal/index.html

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions apis/clib/mdf/index.html

Large diffs are not rendered by default.

Binary file added apis/clib/mdf/mdf-physical-order.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions apis/fmi/fmimcl/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/fmi/fmimodelc/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/fmi/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/gateway/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/mcl/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/model/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/runtime/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/schema/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/modelc/simmock/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/ncodec/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/network/functions/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/network/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apis/network/network/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion categories/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/arch/gateway/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/arch/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/arch/mcl/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/arch/signalvector/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/contribution/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/debug/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/debug/modelc/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/documentation/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/ncodec/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/testing/cmocka/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/testing/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/testing/simmock/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/devel/testing/testscript/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/fmi/fmigateway/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/fmi/fmimcl/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/fmi/fmimodelc/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/fmi/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/network/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/simer/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 24a58ea

Please sign in to comment.