Skip to content

Commit a907f33

Browse files
committed
deploy: 8be0827
1 parent 3584739 commit a907f33

107 files changed

Lines changed: 502 additions & 304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

about/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

apis/clib/examples/schedule.c

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Copyright 2025 Robert Bosch GmbH
2+
3+
#include <stddef.h>
4+
#include <stdio.h>
5+
#include <dse/clib/schedule/schedule.h>
6+
7+
void task_init(void)
8+
{
9+
printf("task_init\n");
10+
}
11+
void task_1ms(void)
12+
{
13+
printf("task_1ms\n");
14+
}
15+
void task_5ms(void)
16+
{
17+
printf("task_1ms\n");
18+
}
19+
20+
void schedule_api_example(void)
21+
{
22+
// Configure the schedule.
23+
Schedule s = { 0 };
24+
schedule_configure(
25+
&s, (ScheduleVTable){ 0 }, (ScheduleTaskVTable){ 0 }, 0.001, NULL);
26+
schedule_add(&s, task_init, 0);
27+
schedule_add(&s, task_1ms, 1);
28+
schedule_add(&s, task_5ms, 5);
29+
30+
// Progress simulation for 10 ms.
31+
for (double sim_time = 0; sim_time <= 0.01001; sim_time += 0.0005) {
32+
schedule_tick(&s, sim_time);
33+
}
34+
35+
// Destroy the schedule.
36+
schedule_destroy(&s);
37+
}

apis/clib/index.html

Lines changed: 6 additions & 5 deletions
Large diffs are not rendered by default.

apis/clib/index.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
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).
33
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 Typedefs MarshalGroup typedef struct MarshalGroup { char* name; int count; MarshalKind kind; MarshalDir dir; MarshalType type; struct { uint32_t* ref; struct { int32_t* _int32; uint64_t* _uint64; double* _double; char** _string; void** _binary; void* ptr; } _binary_len; } target; struct { int offset; struct { double* scalar; void** binary; } binary_len; } source; struct { MarshalStringEncode* string_encode; MarshalStringDecode* string_decode; } functions; uint64_t [4] __reserved__; } MarshalMapSpec typedef struct MarshalMapSpec { const char* name; int count; bool is_binary; const char** signal; struct { double* scalar; void** binary; } binary_len; uint32_t* binary_buffer_size; uint64_t [4] __reserved__; } MarshalSignalMap typedef struct MarshalSignalMap { char* name; int count; bool is_binary; struct { int* index; struct { double* scalar; void** binary; } binary_len; uint32_t* binary_buffer_size; } signal; struct { int* index; struct { double* scalar; void** binary; } binary_len; } source; uint64_t [4] __reserved__; } MarshalStruct typedef struct MarshalStruct { char* name; int count; void* handle; MarshalKind kind; MarshalDir dir; struct { MarshalType* type; int* offset; int* length; } target; struct { int* index; void** pdata; struct { double* scalar; void** binary; } binary_len; uint32_t* binary_buffer_size; } source; uint64_t [4] __reserved__; } Functions marshal_generate_signalmap Creates a signal map between signals (i.</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.
44
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:
5-
Update of cycle counters for CG-/CABLOCK required.</description></item></channel></rss>
5+
Update of cycle counters for CG-/CABLOCK required.</description></item><item><title>Schedule API Reference</title><link>https://boschglobal.github.io/dse.doc/apis/clib/schedule/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://boschglobal.github.io/dse.doc/apis/clib/schedule/</guid><description>Schedule API The Schedule API proves a task schedule with configurable beat and an optional delay. Interfaces of the Schedule object allow for customization of the schedule behaviour, these include:
6+
ScheduleVTable - tick and marshalling call interfaces. ScheduleTaskVTable - Support custom task call interfaces, the default is a simple void (*)(void) function call. Component Diagram @startuml schedule-api skinparam nodesep 55 skinparam ranksep 40 title Schedule API component &amp;#34;Schedule&amp;#34; as s component &amp;#34;ScheduleItem&amp;#34; as sI component &amp;#34;ScheduleTask&amp;#34; as sT interface &amp;#34;ScheduleVTable&amp;#34; as sVT interface &amp;#34;ScheduleTaskVTable&amp;#34; as sTVT component &amp;#34;Integration&amp;#34; as vT component &amp;#34;Target&amp;#34; as task s --( sVT s --( sTVT sVT -- vT sTVT -- vT s ---&amp;gt; sI : [0.</description></item></channel></rss>

apis/clib/marshal/index.html

Lines changed: 6 additions & 5 deletions
Large diffs are not rendered by default.

apis/clib/mdf/index.html

Lines changed: 5 additions & 4 deletions
Large diffs are not rendered by default.

apis/clib/schedule/index.html

Lines changed: 139 additions & 0 deletions
Large diffs are not rendered by default.
20.1 KB

apis/fmi/fmigateway/index.html

Lines changed: 5 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)