| 
    libiec61850
    1.6.0
    
   | 
 
Data Structures | |
| union | Timestamp | 
Functions | |
| LIB61850_API Timestamp * | Timestamp_create (void) | 
| LIB61850_API Timestamp * | Timestamp_createFromByteArray (const uint8_t *byteArray) | 
| LIB61850_API void | Timestamp_destroy (Timestamp *self) | 
| LIB61850_API void | Timestamp_clearFlags (Timestamp *self) | 
| LIB61850_API uint32_t | Timestamp_getTimeInSeconds (Timestamp *self) | 
| LIB61850_API msSinceEpoch | Timestamp_getTimeInMs (Timestamp *self) | 
| LIB61850_API nsSinceEpoch | Timestamp_getTimeInNs (Timestamp *self) | 
| LIB61850_API bool | Timestamp_isLeapSecondKnown (Timestamp *self) | 
| LIB61850_API void | Timestamp_setLeapSecondKnown (Timestamp *self, bool value) | 
| LIB61850_API bool | Timestamp_hasClockFailure (Timestamp *self) | 
| LIB61850_API void | Timestamp_setClockFailure (Timestamp *self, bool value) | 
| LIB61850_API bool | Timestamp_isClockNotSynchronized (Timestamp *self) | 
| LIB61850_API void | Timestamp_setClockNotSynchronized (Timestamp *self, bool value) | 
| LIB61850_API int | Timestamp_getSubsecondPrecision (Timestamp *self) | 
| LIB61850_API void | Timestamp_setFractionOfSecondPart (Timestamp *self, uint32_t fractionOfSecond) | 
| LIB61850_API uint32_t | Timestamp_getFractionOfSecondPart (Timestamp *self) | 
| LIB61850_API float | Timestamp_getFractionOfSecond (Timestamp *self) | 
| LIB61850_API void | Timestamp_setSubsecondPrecision (Timestamp *self, int subsecondPrecision) | 
| Set the subsecond precision value of the time stamp.  More... | |
| LIB61850_API void | Timestamp_setTimeInSeconds (Timestamp *self, uint32_t secondsSinceEpoch) | 
| Set the time in seconds.  More... | |
| LIB61850_API void | Timestamp_setTimeInMilliseconds (Timestamp *self, msSinceEpoch msTime) | 
| Set the time in milliseconds.  More... | |
| LIB61850_API void | Timestamp_setTimeInNanoseconds (Timestamp *self, nsSinceEpoch nsTime) | 
| Set the time in nanoseconds.  More... | |
| LIB61850_API void | Timestamp_setByMmsUtcTime (Timestamp *self, const MmsValue *mmsValue) | 
| LIB61850_API MmsValue * | Timestamp_toMmsValue (Timestamp *self, MmsValue *mmsValue) | 
| Set an MmsValue instance of type UTCTime to the timestamp value.  More... | |
| LIB61850_API Timestamp * | Timestamp_fromMmsValue (Timestamp *self, MmsValue *mmsValue) | 
| Get the Timestamp value from an MmsValue instance of type MMS_UTC_TIME.  More... | |
| LIB61850_API char * | LibIEC61850_getVersionString (void) | 
| Get the version of the library as string.  More... | |
| LIB61850_API char* LibIEC61850_getVersionString | ( | void | ) | 
Get the version of the library as string.
| LIB61850_API void Timestamp_clearFlags | ( | Timestamp * | self | ) | 
| LIB61850_API Timestamp* Timestamp_create | ( | void | ) | 
| LIB61850_API Timestamp* Timestamp_createFromByteArray | ( | const uint8_t * | byteArray | ) | 
| LIB61850_API void Timestamp_destroy | ( | Timestamp * | self | ) | 
| LIB61850_API float Timestamp_getFractionOfSecond | ( | Timestamp * | self | ) | 
| LIB61850_API uint32_t Timestamp_getFractionOfSecondPart | ( | Timestamp * | self | ) | 
| LIB61850_API int Timestamp_getSubsecondPrecision | ( | Timestamp * | self | ) | 
| LIB61850_API msSinceEpoch Timestamp_getTimeInMs | ( | Timestamp * | self | ) | 
| LIB61850_API nsSinceEpoch Timestamp_getTimeInNs | ( | Timestamp * | self | ) | 
| LIB61850_API uint32_t Timestamp_getTimeInSeconds | ( | Timestamp * | self | ) | 
| LIB61850_API bool Timestamp_hasClockFailure | ( | Timestamp * | self | ) | 
| LIB61850_API bool Timestamp_isClockNotSynchronized | ( | Timestamp * | self | ) | 
| LIB61850_API bool Timestamp_isLeapSecondKnown | ( | Timestamp * | self | ) | 
| LIB61850_API void Timestamp_setClockFailure | ( | Timestamp * | self, | 
| bool | value | ||
| ) | 
| LIB61850_API void Timestamp_setClockNotSynchronized | ( | Timestamp * | self, | 
| bool | value | ||
| ) | 
| LIB61850_API void Timestamp_setFractionOfSecondPart | ( | Timestamp * | self, | 
| uint32_t | fractionOfSecond | ||
| ) | 
| LIB61850_API void Timestamp_setLeapSecondKnown | ( | Timestamp * | self, | 
| bool | value | ||
| ) | 
| LIB61850_API void Timestamp_setSubsecondPrecision | ( | Timestamp * | self, | 
| int | subsecondPrecision | ||
| ) | 
Set the subsecond precision value of the time stamp.
| subsecondPrecision | the number of significant bits of the fractionOfSecond part of the time stamp | 
| LIB61850_API void Timestamp_setTimeInMilliseconds | ( | Timestamp * | self, | 
| msSinceEpoch | msTime | ||
| ) | 
Set the time in milliseconds.
NOTE: the subSecondPrecision is not touched
| self | the Timestamp instance | 
| msTime | the milliseconds since unix epoch | 
| LIB61850_API void Timestamp_setTimeInNanoseconds | ( | Timestamp * | self, | 
| nsSinceEpoch | nsTime | ||
| ) | 
Set the time in nanoseconds.
NOTE: the subSecondPrecision is not touched
| self | the Timestamp instance | 
| msTime | the nanoseconds since unix epoch | 
| LIB61850_API void Timestamp_setTimeInSeconds | ( | Timestamp * | self, | 
| uint32_t | secondsSinceEpoch | ||
| ) | 
Set the time in seconds.
NOTE: the fractionOfSecond part is set to zero NOTE: the subSecondPrecision is not touched
| self | the Timestamp instance | 
| secondsSinceEpoch | the seconds since unix epoch (unix timestamp) | 
 1.9.1