libIEC61850  1.0.1
Open-source IEC 61850 MMS/GOOSE/SV server and client library
Classes | Functions
Definitions and functions related to IEC 61850 Timestamp (UTC Time) data type

Classes

union  Timestamp
 

Functions

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)
 
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)
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_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 
)