1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Add NEW_FRAME to SampleFlags

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-09-07 10:15:29 +02:00 committed by Steffen Vogel
parent 97b769a80d
commit 79077c9bb9
2 changed files with 11 additions and 8 deletions

View file

@ -49,8 +49,9 @@ enum class SampleFlags {
HAS_TS_ORIGIN | HAS_TS_RECEIVED, // Include origin timestamp in output.
HAS_ALL = (1 << 5) - 1, // Enable all output options.
NEW_FRAME = (1 << 16), // This sample is the last of a running simulation case
NEW_SIMULATION =
(1 << 16), // This sample is the first of a new simulation case
(1 << 17) | NEW_FRAME // This sample is the first of a new simulation case
};
struct Sample {

View file

@ -20,9 +20,11 @@ SampleFlags = {
HAS_OFFSET = 4, -- "(1 << 3)" Include offset (received - origin timestamp) in output.
HAS_SEQUENCE = 8, -- "(1 << 4)" Include sequence number in output.
HAS_DATA = 16, -- "(1 << 5)" Include values in output.
HAS_ALL = 15, -- "(1 << 6) -1" Enable all output options.
NEW_SIMULATION = 65536, -- "(1 << 16)" This sample is the first of a new simulation case
NEW_FRAME = 65536, -- "(1 << 16)" This sample is the first of a new simulation case
NEW_SIMULATION = 131072, -- "(1 << 16)" This sample is the first of a new simulation case
ALL = 2147483647, -- "INT_MAX" Enable all output options.
}