libIEC61850  0.8.2
Open-source IEC 61850 MMS/GOOSE server and client library
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Functions
Definitions and functions related to IEC 61850 Timestamp (UTC Time) data type

Classes

union  Timestamp
 

Functions

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)
 

Detailed Description

Function Documentation

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 
)