libiec61850  1.2.0
Data Structures | Functions
Definitions and functions related to IEC 61850 Timestamp (UTC Time) data type

Data Structures

union  Timestamp
 

Functions

TimestampTimestamp_create (void)
 
TimestampTimestamp_createFromByteArray (uint8_t *byteArray)
 
void Timestamp_destroy (Timestamp *self)
 
void Timestamp_clearFlags (Timestamp *self)
 
uint32_t Timestamp_getTimeInSeconds (Timestamp *self)
 
uint64_t Timestamp_getTimeInMs (Timestamp *self)
 
bool Timestamp_isLeapSecondKnown (Timestamp *self)
 
void Timestamp_setLeapSecondKnown (Timestamp *self, bool value)
 
bool Timestamp_hasClockFailure (Timestamp *self)
 
void Timestamp_setClockFailure (Timestamp *self, bool value)
 
bool Timestamp_isClockNotSynchronized (Timestamp *self)
 
void Timestamp_setClockNotSynchronized (Timestamp *self, bool value)
 
int Timestamp_getSubsecondPrecision (Timestamp *self)
 
void Timestamp_setSubsecondPrecision (Timestamp *self, int subsecondPrecision)
 Set the subsecond precision value of the time stamp. More...
 
void Timestamp_setTimeInSeconds (Timestamp *self, uint32_t secondsSinceEpoch)
 
void Timestamp_setTimeInMilliseconds (Timestamp *self, uint64_t millisSinceEpoch)
 
void Timestamp_setByMmsUtcTime (Timestamp *self, MmsValue *mmsValue)
 
MmsValueTimestamp_toMmsValue (Timestamp *self, MmsValue *mmsValue)
 Set an MmsValue instance of type UTCTime to the timestamp value. More...
 
char * LibIEC61850_getVersionString (void)
 Get the version of the library as string. More...
 

Detailed Description

Function Documentation

char* LibIEC61850_getVersionString ( void  )

Get the version of the library as string.

Returns
the version of the library (e.g. "0.8.3")
void Timestamp_clearFlags ( Timestamp self)
Timestamp* Timestamp_create ( void  )
Timestamp* Timestamp_createFromByteArray ( uint8_t *  byteArray)
void Timestamp_destroy ( Timestamp self)
int Timestamp_getSubsecondPrecision ( Timestamp self)
uint64_t Timestamp_getTimeInMs ( Timestamp self)
uint32_t Timestamp_getTimeInSeconds ( Timestamp self)
bool Timestamp_hasClockFailure ( Timestamp self)
bool Timestamp_isClockNotSynchronized ( Timestamp self)
bool Timestamp_isLeapSecondKnown ( Timestamp self)
void Timestamp_setByMmsUtcTime ( Timestamp self,
MmsValue mmsValue 
)
void Timestamp_setClockFailure ( Timestamp self,
bool  value 
)
void Timestamp_setClockNotSynchronized ( Timestamp self,
bool  value 
)
void Timestamp_setLeapSecondKnown ( Timestamp self,
bool  value 
)
void Timestamp_setSubsecondPrecision ( Timestamp self,
int  subsecondPrecision 
)

Set the subsecond precision value of the time stamp.

Parameters
subsecondPrecisionthe number of significant bits of the fractionOfSecond part of the time stamp
void Timestamp_setTimeInMilliseconds ( Timestamp self,
uint64_t  millisSinceEpoch 
)
void Timestamp_setTimeInSeconds ( Timestamp self,
uint32_t  secondsSinceEpoch 
)
MmsValue* Timestamp_toMmsValue ( Timestamp self,
MmsValue mmsValue 
)

Set an MmsValue instance of type UTCTime to the timestamp value.

Parameters
selfthe Timestamp instance
mmsValuethe mmsValue instance, if NULL a new instance will be created