|
Gateway C ABI
|
The value of a datapoint. More...
#include <datapoint_value.h>
Data Fields | ||
| GCDatapointValueType | type | |
| The type of the datapoint value This type depends on the datapoint's value field. | ||
| union { | ||
| uint64_t timestampNs | ||
| uint64_t u64 | ||
| uint32_t u32 | ||
| int64_t i64 | ||
| int32_t i32 | ||
| float f32 | ||
| double f64 | ||
| uint8_t dp | ||
| bool b | ||
| } | value | |
| The value of the datapoint. | ||
| GCDatapointIdentifier | datapoint_id | |
| The identifier for the datapoint. | ||
| GCDatapointValueQuality | quality | |
| Represents the quality of the datapoint value. | ||
| uint64_t | timestamp | |
| The timestamp when the value was generated in nanoseconds since the Unix epoch. | ||
The value of a datapoint.
It is used to publish data and also to receive data from the core via subscription or trough the RealtimeDatabase.
| bool sGCDatapointValue::b |
| GCDatapointIdentifier sGCDatapointValue::datapoint_id |
The identifier for the datapoint.
Each datapoint has it's own datapoint identifier, this is used to identify the datapoint in the system. This can be retrieved from the datapoint configuration.
| uint8_t sGCDatapointValue::dp |
| float sGCDatapointValue::f32 |
| double sGCDatapointValue::f64 |
| int32_t sGCDatapointValue::i32 |
| int64_t sGCDatapointValue::i64 |
| GCDatapointValueQuality sGCDatapointValue::quality |
Represents the quality of the datapoint value.
This is a bit field mimicking the same structure as the one used in IEC-61850-8-1 for quality.
| uint64_t sGCDatapointValue::timestamp |
The timestamp when the value was generated in nanoseconds since the Unix epoch.
| uint64_t sGCDatapointValue::timestampNs |
| GCDatapointValueType sGCDatapointValue::type |
The type of the datapoint value This type depends on the datapoint's value field.
| uint32_t sGCDatapointValue::u32 |
| uint64_t sGCDatapointValue::u64 |
| union { ... } sGCDatapointValue::value |
The value of the datapoint.