libtase2
2.4.0
TASE.2/ICCP Protocol Source Code Library for C/C++
|
Typedefs | |
typedef struct sTase2_PointValue * | Tase2_PointValue |
A TASE.2 point value with type information. | |
typedef uint8_t | Tase2_DataFlags |
typedef uint8_t | Tase2_DataState |
typedef uint8_t | Tase2_DataStateSupplemental |
typedef uint8_t | Tase2_SingleEventFlags |
typedef uint8_t | Tase2_EventFlags |
typedef uint8_t | Tase2_PackedEventFlags |
Enumerations | |
enum | Tase2_PointValueError { TASE2_POINT_VALUE_ERROR_OK = 0 , TASE2_POINT_VALUE_ERROR_WRONG_TYPE = 1 } |
Functions | |
TASE2_API Tase2_PointValueType | Tase2_PointValue_getType (Tase2_PointValue self) |
Get the (estimated) type of the point value. | |
TASE2_API Tase2_ClientError | Tase2_PointValue_getError (Tase2_PointValue self) |
Get the error code (when point value type is TASE2_VALUE_TYPE_ERROR) | |
TASE2_API void | Tase2_PointValue_setType (Tase2_PointValue self, Tase2_PointValueType type) |
Set the type of a point value. | |
TASE2_API void | Tase2_PointValue_destroy (Tase2_PointValue self) |
Release all resource related to the point value instance. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_getCopy (Tase2_PointValue self) |
Create a copy (clone) of the PointValue instances. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createReal (float value) |
Create a new PointValue instance of type "real". | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createDiscrete (int32_t value) |
Create a new PointValue instance of type "discrete". | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createState (Tase2_DataState value) |
Create a new PointValue instance of type "state". | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateSupplemental (Tase2_DataStateSupplemental value) |
Create a new PointValue instance of type "state-supplemental". | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createRealQ (float value, Tase2_DataFlags flags) |
Create a new point value instance of Type RealQ. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createDiscreteQ (int32_t value, Tase2_DataFlags flags) |
Create a new point value instance of Type DiscreteQ. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateQ (Tase2_DataState value, Tase2_DataFlags flags) |
Create a new PointValue instance of type StateQ. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateSupplementalQ (Tase2_DataStateSupplemental value, Tase2_DataFlags flags) |
Create a new PointValue instance of type StateSupplementalQ. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createRealQTimeTag (float value, Tase2_DataFlags flags, int32_t timeTag) |
Create a new point value instance of Type RealQTimeTag. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateQTimeTag (Tase2_DataFlags valueAndFlags, int32_t timeTag) |
Create a new point value instance of Type StateQTimeTag. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createDiscreteQTimeTag (int32_t value, Tase2_DataFlags flags, int32_t timeTag) |
Create a new point value instance of Type DiscreteQTimeTag. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateSupplementalQTimeTag (Tase2_DataStateSupplemental value, Tase2_DataFlags flags, int32_t timeTag) |
Create a new PointValue instance of type StateSupplementalQTimeTag. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createRealExtended (float value, Tase2_DataFlags flags, int32_t timeTag, uint16_t cov) |
Create a new point value instance of Type RealExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateExtended (Tase2_DataFlags valueAndFlags, int32_t timeTag, uint16_t cov) |
Create a new point value instance of Type StateExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createDiscreteExtended (int32_t value, Tase2_DataFlags flags, int32_t timeTag, uint16_t cov) |
Create a new point value instance of Type DiscreteExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateSupplementalExtended (Tase2_DataStateSupplemental value, Tase2_DataFlags flags, int32_t timeTag, uint16_t cov) |
Create a new PointValue instance of type StateSupplementalExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createRealQTimeTagExtended (float value, Tase2_DataFlags flags, uint64_t timeTagExtended) |
Create a new point value instance of Type RealQTimeTagExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateQTimeTagExtended (Tase2_DataFlags valueAndFlags, uint64_t timeTagExtended) |
Create a new point value instance of Type StateQTimeTagExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createDiscreteQTimeTagExtended (int32_t value, Tase2_DataFlags flags, uint64_t timeTagExtended) |
Create a new point value instance of Type DiscreteQTimeTagExtended. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createStateSupplementalQTimeTagExtended (Tase2_DataStateSupplemental value, Tase2_DataFlags flags, uint64_t timeTagExtended) |
Create a new PointValue instance of type StateSupplementalQTimeTagExtended. | |
TASE2_API float | Tase2_PointValue_getValueReal (Tase2_PointValue self) |
Get the real value. | |
TASE2_API float | Tase2_PointValue_getValueRealEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the real value. | |
TASE2_API void | Tase2_PointValue_setValueReal (Tase2_PointValue self, float value) |
Set the real value. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setValueRealEx (Tase2_PointValue self, float value) |
Set the real value. | |
TASE2_API int32_t | Tase2_PointValue_getValueDiscrete (Tase2_PointValue self) |
Get the value of an indication point of type DISCRETE. | |
TASE2_API int32_t | Tase2_PointValue_getValueDiscreteEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the value of an indication point of type DISCRETE. | |
TASE2_API void | Tase2_PointValue_setValueDiscrete (Tase2_PointValue self, int32_t value) |
Set the value of an indication point of type DISCRETE. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setValueDiscreteEx (Tase2_PointValue self, int32_t value) |
Set the value of an indication point of type DISCRETE. | |
TASE2_API Tase2_DataState | Tase2_PointValue_getValueState (Tase2_PointValue self) |
Get the value of an indication point of type STATE. | |
TASE2_API Tase2_DataState | Tase2_PointValue_getValueStateEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the value of an indication point of type STATE. | |
TASE2_API void | Tase2_PointValue_setValueState (Tase2_PointValue self, Tase2_DataState value) |
Set the value of an indication point of type STATE. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setValueStateEx (Tase2_PointValue self, Tase2_DataState value) |
Set the value of an indication point of type STATE. | |
TASE2_API Tase2_DataStateSupplemental | Tase2_PointValue_getValueStateSupplemental (Tase2_PointValue self) |
Get the value of an indication point of type STATE_SUPPLEMENTAL. | |
TASE2_API Tase2_DataStateSupplemental | Tase2_PointValue_getValueStateSupplementalEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the value of an indication point of type STATE_SUPPLEMENTAL. | |
TASE2_API void | Tase2_PointValue_setValueStateSupplemental (Tase2_PointValue self, Tase2_DataStateSupplemental value) |
Set the value of an indication point of type STATE_SUPPLEMENTAL. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setValueStateSupplementalEx (Tase2_PointValue self, Tase2_DataStateSupplemental value) |
Set the value of an indication point of type STATE_SUPPLEMENTAL. | |
TASE2_API bool | Tase2_PointValue_hasTimeStamp (Tase2_PointValue self) |
Try to determine if the value has a timestamp. | |
TASE2_API Tase2_TimeStampClass | Tase2_PointValue_getTimeStampClass (Tase2_PointValue self) |
Get the timestamp class of the value. | |
TASE2_API uint64_t | Tase2_PointValue_getTimeStamp (Tase2_PointValue self) |
Get the time stamp of the last data point change or update. | |
TASE2_API uint64_t | Tase2_PointValue_getTimeStampEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the time stamp of the last data point change or update. | |
TASE2_API void | Tase2_PointValue_setTimeStamp (Tase2_PointValue self, uint64_t timestamp) |
Set the time stamp of the last data point change or update. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setTimeStampEx (Tase2_PointValue self, uint64_t timestamp) |
Set the time stamp of the last data point change or update. | |
TASE2_API Tase2_DataFlags | Tase2_PointValue_getFlags (Tase2_PointValue self) |
Get the quality flags of a data point. | |
TASE2_API Tase2_DataFlags | Tase2_PointValue_getFlagsEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the quality flags of a data point. | |
TASE2_API void | Tase2_PointValue_setFlags (Tase2_PointValue self, Tase2_DataFlags flags) |
Set the quality flags of a data point. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setFlagsEx (Tase2_PointValue self, Tase2_DataFlags flags) |
Set the quality flags of a data point. | |
TASE2_API uint16_t | Tase2_PointValue_getCOV (Tase2_PointValue self) |
Get the COV (counter of value changes) of a data point. | |
TASE2_API uint16_t | Tase2_PointValue_getCOVEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the COV (counter of value changes) of a data point. | |
TASE2_API void | Tase2_PointValue_setCOV (Tase2_PointValue self, uint16_t cov) |
Set the COV (counter of value changes) of a data point. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setCOVEx (Tase2_PointValue self, uint16_t cov) |
Set the COV (counter of value changes) of a data point. | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createSingleProtectionEvent (Tase2_SingleEventFlags eventFlags, int32_t operatingTime, uint64_t eventTime) |
Create a new point value instance of type single event (TASE2_VALUE_TYPE_SINGLE_EVENT) | |
TASE2_API Tase2_PointValue | Tase2_PointValue_createPackedProtectionEvent (Tase2_EventFlags packedEvent, Tase2_PackedEventFlags packedEventFlags, int32_t operatingTime, uint64_t eventTime) |
Create a new point value instance of type packed event (TASE2_VALUE_TYPE_PACKED_EVENT) | |
TASE2_API Tase2_SingleEventFlags | Tase2_PointValue_getSingleEventFlags (Tase2_PointValue self) |
Get the single event flags value. | |
TASE2_API Tase2_SingleEventFlags | Tase2_PointValue_getSingleEventFlagsEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the single event flags value. | |
TASE2_API void | Tase2_PointValue_setSingleEventFlags (Tase2_PointValue self, Tase2_SingleEventFlags eventFlags) |
Set the single event flags value. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setSingleEventFlagsEx (Tase2_PointValue self, Tase2_SingleEventFlags eventFlags) |
Set the single event flags value. | |
TASE2_API Tase2_EventFlags | Tase2_PointValue_getPackedEvent (Tase2_PointValue self) |
Get the packed event flags values. | |
TASE2_API Tase2_EventFlags | Tase2_PointValue_getPackedEventEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the packed event values. | |
TASE2_API void | Tase2_PointValue_setPackedEvent (Tase2_PointValue self, Tase2_EventFlags packedEvent) |
Set the packed event values. | |
Tase2_PointValueError | Tase2_PointValue_setPackedEventEx (Tase2_PointValue self, Tase2_EventFlags packedEvent) |
Set the packed event values. | |
TASE2_API Tase2_PackedEventFlags | Tase2_PointValue_getPackedEventFlags (Tase2_PointValue self) |
Get the packed event flags value. | |
TASE2_API Tase2_PackedEventFlags | Tase2_PointValue_getPackedEventFlagsEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the packed event flags value. | |
TASE2_API void | Tase2_PointValue_setPackedEventFlags (Tase2_PointValue self, Tase2_PackedEventFlags flags) |
Set the packed event flags. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setPackedEventFlagsEx (Tase2_PointValue self, Tase2_PackedEventFlags flags) |
Set the packed event flags. | |
TASE2_API int32_t | Tase2_PointValue_getOperatingTime (Tase2_PointValue self) |
Get the operation or event duration. | |
TASE2_API int32_t | Tase2_PointValue_getOperatingTimeEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the operation or event duration. | |
TASE2_API void | Tase2_PointValue_setOperatingTime (Tase2_PointValue self, int32_t operatingTime) |
Set the operation or event duration. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setOperatingTimeEx (Tase2_PointValue self, int32_t operatingTime) |
Set the operation or event duration. | |
TASE2_API uint64_t | Tase2_PointValue_getEventTime (Tase2_PointValue self) |
Get the event/operation start time. | |
TASE2_API uint64_t | Tase2_PointValue_getEventTimeEx (Tase2_PointValue self, Tase2_PointValueError *err) |
Get the event/operation start time. | |
TASE2_API void | Tase2_PointValue_setEventTime (Tase2_PointValue self, uint64_t eventTime) |
Set the event/operation start time. | |
TASE2_API Tase2_PointValueError | Tase2_PointValue_setEventTimeEx (Tase2_PointValue self, uint64_t eventTime) |
Set the event/operation start time. | |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_CALCULATED 32 |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_ENTERED 16 |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_ESTIMATED 48 |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_HI 16 |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_LO 32 |
#define TASE2_DATA_FLAGS_CURRENT_SOURCE_TELEMETERED 0 |
#define TASE2_DATA_FLAGS_NORMAL_VALUE 64 |
#define TASE2_DATA_FLAGS_TIME_STAMP_QUALITY 128 |
#define TASE2_DATA_FLAGS_UNUSED_0 1 |
#define TASE2_DATA_FLAGS_UNUSED_1 2 |
#define TASE2_DATA_FLAGS_VALIDITY_HELD 8 |
#define TASE2_DATA_FLAGS_VALIDITY_HI 4 |
#define TASE2_DATA_FLAGS_VALIDITY_LO 8 |
#define TASE2_DATA_FLAGS_VALIDITY_NOTVALID 12 |
#define TASE2_DATA_FLAGS_VALIDITY_SUSPECT 4 |
#define TASE2_DATA_FLAGS_VALIDITY_VALID 0 |
#define TASE2_DATA_STATE_BETWEEN 0 |
#define TASE2_DATA_STATE_CLOSED 1 |
#define TASE2_DATA_STATE_CURRENT_SOURCE_HI 16 |
#define TASE2_DATA_STATE_CURRENT_SOURCE_LO 32 |
#define TASE2_DATA_STATE_HI 1 |
#define TASE2_DATA_STATE_INVALID 3 |
#define TASE2_DATA_STATE_LO 2 |
#define TASE2_DATA_STATE_NORMAL_VALUE 64 |
#define TASE2_DATA_STATE_OFF 2 |
#define TASE2_DATA_STATE_ON 1 |
#define TASE2_DATA_STATE_TIME_STAMP_QUALITY 128 |
#define TASE2_DATA_STATE_TRIPPED 2 |
#define TASE2_DATA_STATE_VALIDITY_HI 4 |
#define TASE2_DATA_STATE_VALIDITY_LO 8 |
#define TASE2_DATA_SUPPL_STATE_EXPECTED_HI 16 |
#define TASE2_DATA_SUPPL_STATE_EXPECTED_LO 32 |
#define TASE2_DATA_SUPPL_STATE_HI 1 |
#define TASE2_DATA_SUPPL_STATE_LO 2 |
#define TASE2_DATA_SUPPL_STATE_TAG_HI 4 |
#define TASE2_DATA_SUPPL_STATE_TAG_LO 8 |
#define TASE2_EVENT_FLAGS_EARTH 16 |
#define TASE2_EVENT_FLAGS_GENERAL 1 |
#define TASE2_EVENT_FLAGS_PHASE_1 2 |
#define TASE2_EVENT_FLAGS_PHASE_2 4 |
#define TASE2_EVENT_FLAGS_PHASE_3 8 |
#define TASE2_EVENT_FLAGS_REVERSE 32 |
#define TASE2_PACKED_FLAGS_BLOCKED 2 |
#define TASE2_PACKED_FLAGS_ELAPSED_TIME_VALIDITY 1 |
#define TASE2_PACKED_FLAGS_EVENT_VALIDITY 16 |
#define TASE2_PACKED_FLAGS_SUBSTITUTED 4 |
#define TASE2_PACKED_FLAGS_TOPICAL 8 |
#define TASE2_SINGLE_FLAGS_BLOCKED 2 |
#define TASE2_SINGLE_FLAGS_ELAPSED_TIME_VALIDITY 1 |
#define TASE2_SINGLE_FLAGS_EVENT_STATE_HI 64 |
#define TASE2_SINGLE_FLAGS_EVENT_STATE_LO 128 |
#define TASE2_SINGLE_FLAGS_EVENT_VALIDITY 16 |
#define TASE2_SINGLE_FLAGS_SUBSTITUTED 4 |
#define TASE2_SINGLE_FLAGS_TOPICAL 8 |
#define TASE2_SINGLE_FLAGS_UNUSED 32 |
typedef uint8_t Tase2_DataFlags |
typedef uint8_t Tase2_DataState |
typedef uint8_t Tase2_DataStateSupplemental |
typedef uint8_t Tase2_EventFlags |
typedef uint8_t Tase2_PackedEventFlags |
typedef struct sTase2_PointValue* Tase2_PointValue |
A TASE.2 point value with type information.
A point value can have the following types defined here: Tase2_PointValueType
NOTE: type information may be inaccurate depending on context
typedef uint8_t Tase2_SingleEventFlags |
TASE2_API Tase2_PointValue Tase2_PointValue_createDiscrete | ( | int32_t | value | ) |
Create a new PointValue instance of type "discrete".
value | the value of the new instance |
TASE2_API Tase2_PointValue Tase2_PointValue_createDiscreteExtended | ( | int32_t | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag, | ||
uint16_t | cov ) |
Create a new point value instance of Type DiscreteExtended.
value | the discrete value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
cov | the counter of events of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createDiscreteQ | ( | int32_t | value, |
Tase2_DataFlags | flags ) |
Create a new point value instance of Type DiscreteQ.
value | the discrete value |
flags | the quality flags of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createDiscreteQTimeTag | ( | int32_t | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag ) |
Create a new point value instance of Type DiscreteQTimeTag.
value | the discrete value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
TASE2_API Tase2_PointValue Tase2_PointValue_createDiscreteQTimeTagExtended | ( | int32_t | value, |
Tase2_DataFlags | flags, | ||
uint64_t | timeTagExtended ) |
Create a new point value instance of Type DiscreteQTimeTagExtended.
value | the discrete value |
flags | the quality flags of the value |
timeTag | the extended time tag in milliseconds since Epoch |
TASE2_API Tase2_PointValue Tase2_PointValue_createPackedProtectionEvent | ( | Tase2_EventFlags | packedEvent, |
Tase2_PackedEventFlags | packedEventFlags, | ||
int32_t | operatingTime, | ||
uint64_t | eventTime ) |
Create a new point value instance of type packed event (TASE2_VALUE_TYPE_PACKED_EVENT)
packedEvend | the packed event values |
packedEventFlags | the packed event flags |
operatingTime | duration of the event in milliseconds |
eventTime | the event time in milliseconds since epoch |
TASE2_API Tase2_PointValue Tase2_PointValue_createReal | ( | float | value | ) |
Create a new PointValue instance of type "real".
value | the value of the new instance |
TASE2_API Tase2_PointValue Tase2_PointValue_createRealExtended | ( | float | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag, | ||
uint16_t | cov ) |
Create a new point value instance of Type RealExtended.
value | the real (floating point) value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
cov | the counter of events of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createRealQ | ( | float | value, |
Tase2_DataFlags | flags ) |
Create a new point value instance of Type RealQ.
value | the real (floating point) value |
flags | the quality flags of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createRealQTimeTag | ( | float | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag ) |
Create a new point value instance of Type RealQTimeTag.
value | the real (floating point) value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
TASE2_API Tase2_PointValue Tase2_PointValue_createRealQTimeTagExtended | ( | float | value, |
Tase2_DataFlags | flags, | ||
uint64_t | timeTagExtended ) |
Create a new point value instance of Type RealQTimeTagExtended.
value | the real (floating point) value |
flags | the quality flags of the value |
timeTag | the extended time tag in milliseconds since Epoch |
TASE2_API Tase2_PointValue Tase2_PointValue_createSingleProtectionEvent | ( | Tase2_SingleEventFlags | eventFlags, |
int32_t | operatingTime, | ||
uint64_t | eventTime ) |
Create a new point value instance of type single event (TASE2_VALUE_TYPE_SINGLE_EVENT)
eventFlags | the single event flags |
operatingTime | duration of the event in milliseconds |
eventTime | the event time in milliseconds since epoch |
TASE2_API Tase2_PointValue Tase2_PointValue_createState | ( | Tase2_DataState | value | ) |
Create a new PointValue instance of type "state".
value | the value of the new instance |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateExtended | ( | Tase2_DataFlags | valueAndFlags, |
int32_t | timeTag, | ||
uint16_t | cov ) |
Create a new point value instance of Type StateExtended.
valueAndFlags | the combined value and flags value |
timeTag | the time tag in seconds since Epoch (Unix time) |
cov | the counter of events of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateQ | ( | Tase2_DataState | value, |
Tase2_DataFlags | flags ) |
Create a new PointValue instance of type StateQ.
value | the state value |
flags | the quality flags of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateQTimeTag | ( | Tase2_DataFlags | valueAndFlags, |
int32_t | timeTag ) |
Create a new point value instance of Type StateQTimeTag.
valueAndFlags | the combined value and flags value |
timeTag | the time tag in seconds since Epoch (Unix time) |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateQTimeTagExtended | ( | Tase2_DataFlags | valueAndFlags, |
uint64_t | timeTagExtended ) |
Create a new point value instance of Type StateQTimeTagExtended.
value | the discrete value |
flags | the quality flags of the value |
timeTag | the extended time tag in milliseconds since Epoch |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateSupplemental | ( | Tase2_DataStateSupplemental | value | ) |
Create a new PointValue instance of type "state-supplemental".
value | the value of the new instance |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateSupplementalExtended | ( | Tase2_DataStateSupplemental | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag, | ||
uint16_t | cov ) |
Create a new PointValue instance of type StateSupplementalExtended.
value | the state supplemental value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
cov | the counter of events of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateSupplementalQ | ( | Tase2_DataStateSupplemental | value, |
Tase2_DataFlags | flags ) |
Create a new PointValue instance of type StateSupplementalQ.
value | the state supplemental value |
flags | the quality flags of the value |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateSupplementalQTimeTag | ( | Tase2_DataStateSupplemental | value, |
Tase2_DataFlags | flags, | ||
int32_t | timeTag ) |
Create a new PointValue instance of type StateSupplementalQTimeTag.
value | the state supplemental value |
flags | the quality flags of the value |
timeTag | the time tag in seconds since Epoch (Unix time) |
TASE2_API Tase2_PointValue Tase2_PointValue_createStateSupplementalQTimeTagExtended | ( | Tase2_DataStateSupplemental | value, |
Tase2_DataFlags | flags, | ||
uint64_t | timeTagExtended ) |
Create a new PointValue instance of type StateSupplementalQTimeTagExtended.
value | the state supplemental value |
flags | the quality flags of the value |
timeTag | the extended time tag in milliseconds since Epoch |
TASE2_API void Tase2_PointValue_destroy | ( | Tase2_PointValue | self | ) |
Release all resource related to the point value instance.
NOTE: Do not use the instance after this call!
self | the PointValue instance |
TASE2_API Tase2_PointValue Tase2_PointValue_getCopy | ( | Tase2_PointValue | self | ) |
Create a copy (clone) of the PointValue instances.
self | the PointValue instance to clone |
TASE2_API uint16_t Tase2_PointValue_getCOV | ( | Tase2_PointValue | self | ) |
Get the COV (counter of value changes) of a data point.
NOTE: the result is only valid when the data point type includes COV
the | point value instance |
TASE2_API uint16_t Tase2_PointValue_getCOVEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the COV (counter of value changes) of a data point.
New in version 2.1.0
NOTE: the result is only valid when the data point type includes COV
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_ClientError Tase2_PointValue_getError | ( | Tase2_PointValue | self | ) |
Get the error code (when point value type is TASE2_VALUE_TYPE_ERROR)
self | the PointValue instance |
TASE2_API uint64_t Tase2_PointValue_getEventTime | ( | Tase2_PointValue | self | ) |
Get the event/operation start time.
the | point value instance |
TASE2_API uint64_t Tase2_PointValue_getEventTimeEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the event/operation start time.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_DataFlags Tase2_PointValue_getFlags | ( | Tase2_PointValue | self | ) |
Get the quality flags of a data point.
NOTE: the result is only valid when the data point type includes quality
the | point value instance |
TASE2_API Tase2_DataFlags Tase2_PointValue_getFlagsEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the quality flags of a data point.
New in version 2.1.0
NOTE: the result is only valid when the data point type includes quality
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API int32_t Tase2_PointValue_getOperatingTime | ( | Tase2_PointValue | self | ) |
Get the operation or event duration.
the | point value instance |
TASE2_API int32_t Tase2_PointValue_getOperatingTimeEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the operation or event duration.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_EventFlags Tase2_PointValue_getPackedEvent | ( | Tase2_PointValue | self | ) |
Get the packed event flags values.
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
TASE2_API Tase2_EventFlags Tase2_PointValue_getPackedEventEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the packed event values.
New in version 2.1.0
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_PackedEventFlags Tase2_PointValue_getPackedEventFlags | ( | Tase2_PointValue | self | ) |
Get the packed event flags value.
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
TASE2_API Tase2_PackedEventFlags Tase2_PointValue_getPackedEventFlagsEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the packed event flags value.
New in version 2.1.0
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_SingleEventFlags Tase2_PointValue_getSingleEventFlags | ( | Tase2_PointValue | self | ) |
Get the single event flags value.
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_SINGLE_EVENT
the | point value instance |
TASE2_API Tase2_SingleEventFlags Tase2_PointValue_getSingleEventFlagsEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the single event flags value.
New in version 2.1.0
NOTE: the result is only valid when data point is of type TASE2_VALUE_TYPE_SINGLE_EVENT
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API uint64_t Tase2_PointValue_getTimeStamp | ( | Tase2_PointValue | self | ) |
Get the time stamp of the last data point change or update.
NOTE: the result is only valid when the data point type includes a time stamp
the | point value instance |
TASE2_API Tase2_TimeStampClass Tase2_PointValue_getTimeStampClass | ( | Tase2_PointValue | self | ) |
Get the timestamp class of the value.
NOTE: When the Tase2_PointValue_getType function returns TASE2_VALUE_TYPE_STATE_OR_DISCRETE the function cannot determine if there is a timestamp or not. In this case the function returns TASE2_NO_TIMESTAMP
TASE2_API uint64_t Tase2_PointValue_getTimeStampEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the time stamp of the last data point change or update.
New in version 2.1.0
NOTE: the result is only valid when the data point type includes a time stamp
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_PointValueType Tase2_PointValue_getType | ( | Tase2_PointValue | self | ) |
Get the (estimated) type of the point value.
self | the PointValue instance |
TASE2_API int32_t Tase2_PointValue_getValueDiscrete | ( | Tase2_PointValue | self | ) |
Get the value of an indication point of type DISCRETE.
the | point value instance |
TASE2_API int32_t Tase2_PointValue_getValueDiscreteEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the value of an indication point of type DISCRETE.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API float Tase2_PointValue_getValueReal | ( | Tase2_PointValue | self | ) |
Get the real value.
the | point value instance |
TASE2_API float Tase2_PointValue_getValueRealEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the real value.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_DataState Tase2_PointValue_getValueState | ( | Tase2_PointValue | self | ) |
Get the value of an indication point of type STATE.
the | point value instance |
TASE2_API Tase2_DataState Tase2_PointValue_getValueStateEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the value of an indication point of type STATE.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API Tase2_DataStateSupplemental Tase2_PointValue_getValueStateSupplemental | ( | Tase2_PointValue | self | ) |
Get the value of an indication point of type STATE_SUPPLEMENTAL.
the | point value instance |
TASE2_API Tase2_DataStateSupplemental Tase2_PointValue_getValueStateSupplementalEx | ( | Tase2_PointValue | self, |
Tase2_PointValueError * | err ) |
Get the value of an indication point of type STATE_SUPPLEMENTAL.
New in version 2.1.0
the | point value instance | |
[out] | err | TASE2_POINT_VALUE_ERROR_OK or TASE2_POINT_VALUE_ERROR_WRONG_TYPE |
TASE2_API bool Tase2_PointValue_hasTimeStamp | ( | Tase2_PointValue | self | ) |
Try to determine if the value has a timestamp.
NOTE: When the Tase2_PointValue_getType function returns TASE2_VALUE_TYPE_STATE_OR_DISCRETE the function cannot determine if there is a timestamp or not. In this case the function returns false
TASE2_API void Tase2_PointValue_setCOV | ( | Tase2_PointValue | self, |
uint16_t | cov ) |
Set the COV (counter of value changes) of a data point.
NOTE: has no effect when the data point type doesn't include a COV
the | point value instance |
cov | the COV value |
TASE2_API Tase2_PointValueError Tase2_PointValue_setCOVEx | ( | Tase2_PointValue | self, |
uint16_t | cov ) |
Set the COV (counter of value changes) of a data point.
New in version 2.1.0
NOTE: has no effect when the data point type doesn't include a COV
the | point value instance |
cov | the COV value |
TASE2_API void Tase2_PointValue_setEventTime | ( | Tase2_PointValue | self, |
uint64_t | eventTime ) |
Set the event/operation start time.
the | point value instance |
eventTime | the operation or event start time in milliseconds since epoch |
TASE2_API Tase2_PointValueError Tase2_PointValue_setEventTimeEx | ( | Tase2_PointValue | self, |
uint64_t | eventTime ) |
Set the event/operation start time.
New in version 2.1.0
the | point value instance |
eventTime | the operation or event start time in milliseconds since epoch |
TASE2_API void Tase2_PointValue_setFlags | ( | Tase2_PointValue | self, |
Tase2_DataFlags | flags ) |
Set the quality flags of a data point.
NOTE: has no effect when the data point type doesn't include a quality
the | point value instance |
flags | the quality flags of a data point |
TASE2_API Tase2_PointValueError Tase2_PointValue_setFlagsEx | ( | Tase2_PointValue | self, |
Tase2_DataFlags | flags ) |
Set the quality flags of a data point.
New in version 2.1.0
NOTE: has no effect when the data point type doesn't include a quality
the | point value instance |
flags | the quality flags of a data point |
TASE2_API void Tase2_PointValue_setOperatingTime | ( | Tase2_PointValue | self, |
int32_t | operatingTime ) |
Set the operation or event duration.
the | point value instance |
operatingTime | the operation or event duration in milliseconds. |
TASE2_API Tase2_PointValueError Tase2_PointValue_setOperatingTimeEx | ( | Tase2_PointValue | self, |
int32_t | operatingTime ) |
Set the operation or event duration.
New in version 2.1.0
the | point value instance |
operatingTime | the operation or event duration in milliseconds. |
TASE2_API void Tase2_PointValue_setPackedEvent | ( | Tase2_PointValue | self, |
Tase2_EventFlags | packedEvent ) |
Set the packed event values.
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
packedEvent | the packed event values |
Tase2_PointValueError Tase2_PointValue_setPackedEventEx | ( | Tase2_PointValue | self, |
Tase2_EventFlags | packedEvent ) |
Set the packed event values.
New in version 2.1.0
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
packedEvent | the packed event values |
TASE2_API void Tase2_PointValue_setPackedEventFlags | ( | Tase2_PointValue | self, |
Tase2_PackedEventFlags | flags ) |
Set the packed event flags.
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
packedEvent | the packed event flags |
TASE2_API Tase2_PointValueError Tase2_PointValue_setPackedEventFlagsEx | ( | Tase2_PointValue | self, |
Tase2_PackedEventFlags | flags ) |
Set the packed event flags.
New in version 2.1.0
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_PACKED_EVENT
the | point value instance |
packedEvent | the packed event flags |
TASE2_API void Tase2_PointValue_setSingleEventFlags | ( | Tase2_PointValue | self, |
Tase2_SingleEventFlags | eventFlags ) |
Set the single event flags value.
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_SINGLE_EVENT
the | point value instance |
eventFlags | the single event flags |
TASE2_API Tase2_PointValueError Tase2_PointValue_setSingleEventFlagsEx | ( | Tase2_PointValue | self, |
Tase2_SingleEventFlags | eventFlags ) |
Set the single event flags value.
New in version 2.1.0
NOTE: the function has only an effect when point value is of type TASE2_VALUE_TYPE_SINGLE_EVENT
the | point value instance |
eventFlags | the single event flags |
TASE2_API void Tase2_PointValue_setTimeStamp | ( | Tase2_PointValue | self, |
uint64_t | timestamp ) |
Set the time stamp of the last data point change or update.
NOTE: has no effect when the data point type doesn't include a time stamp
timestamp | the time stamp in ms since epoch |
TASE2_API Tase2_PointValueError Tase2_PointValue_setTimeStampEx | ( | Tase2_PointValue | self, |
uint64_t | timestamp ) |
Set the time stamp of the last data point change or update.
New in version 2.1.0
the | point value instance |
timestamp | the time stamp in ms since epoch |
TASE2_API void Tase2_PointValue_setType | ( | Tase2_PointValue | self, |
Tase2_PointValueType | type ) |
Set the type of a point value.
The elements of a point value can only be interpreted correctly when the TASE.2 type is known. In most cases the TASE.2 type can be derived from the MMS type of the MMS value that has been received. However, in some cases this is not possible because the same MMS type is used for different TASE.2 types. In this case it is required to tell the library what TASE.2 type has to be assumed to interpret the value elements. When you get a type of TASE2_VALUE_TYPE_UNKNOWN, TASE2_VALUE_TYPE_STATE_OR_STATE_SUPPLEMENTAL, or TASE2_VALUE_TYPE_STATE_OR_DISCRETE you have to use this function to advise the correct type.
self | the PointValue instance |
type | the TASE.2 type to be used for value interpretation. |
TASE2_API void Tase2_PointValue_setValueDiscrete | ( | Tase2_PointValue | self, |
int32_t | value ) |
Set the value of an indication point of type DISCRETE.
the | point value instance |
value | the new value |
TASE2_API Tase2_PointValueError Tase2_PointValue_setValueDiscreteEx | ( | Tase2_PointValue | self, |
int32_t | value ) |
Set the value of an indication point of type DISCRETE.
New in version 2.1.0
the | point value instance |
value | the new value |
TASE2_API void Tase2_PointValue_setValueReal | ( | Tase2_PointValue | self, |
float | value ) |
Set the real value.
the | point value instance |
value | the new value |
TASE2_API Tase2_PointValueError Tase2_PointValue_setValueRealEx | ( | Tase2_PointValue | self, |
float | value ) |
Set the real value.
New in version 2.1.0
the | point value instance |
value | the new value |
TASE2_API void Tase2_PointValue_setValueState | ( | Tase2_PointValue | self, |
Tase2_DataState | value ) |
Set the value of an indication point of type STATE.
the | point value instance |
value | the state value |
TASE2_API Tase2_PointValueError Tase2_PointValue_setValueStateEx | ( | Tase2_PointValue | self, |
Tase2_DataState | value ) |
Set the value of an indication point of type STATE.
New in version 2.1.0
the | point value instance |
value | the state value |
TASE2_API void Tase2_PointValue_setValueStateSupplemental | ( | Tase2_PointValue | self, |
Tase2_DataStateSupplemental | value ) |
Set the value of an indication point of type STATE_SUPPLEMENTAL.
the | point value instance |
value | the state value |
TASE2_API Tase2_PointValueError Tase2_PointValue_setValueStateSupplementalEx | ( | Tase2_PointValue | self, |
Tase2_DataStateSupplemental | value ) |
Set the value of an indication point of type STATE_SUPPLEMENTAL.
New in version 2.1.0
the | point value instance |
value | the state value |