Gateway C ABI
Loading...
Searching...
No Matches
sGCDatapointValue Struct Reference

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.
 

Detailed Description

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.

Field Documentation

◆ b

bool sGCDatapointValue::b

◆ datapoint_id

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.

◆ dp

uint8_t sGCDatapointValue::dp

◆ f32

float sGCDatapointValue::f32

◆ f64

double sGCDatapointValue::f64

◆ i32

int32_t sGCDatapointValue::i32

◆ i64

int64_t sGCDatapointValue::i64

◆ quality

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.

See also
IEC-61850-8-1

◆ timestamp

uint64_t sGCDatapointValue::timestamp

The timestamp when the value was generated in nanoseconds since the Unix epoch.

◆ timestampNs

uint64_t sGCDatapointValue::timestampNs

◆ type

GCDatapointValueType sGCDatapointValue::type

The type of the datapoint value This type depends on the datapoint's value field.

See also
GCDatapointValueType

◆ u32

uint32_t sGCDatapointValue::u32

◆ u64

uint64_t sGCDatapointValue::u64

◆ [union]

union { ... } sGCDatapointValue::value

The value of the datapoint.


The documentation for this struct was generated from the following file: