libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <ptp.h>
Public Member Functions | |
Timestamp_t | getTime () const |
bool | setTime (const Timestamp_t &ts) const |
bool | offsetClock (int64_t offset) const |
float_freq | getFreq () const |
bool | setFreq (float_freq freq) const |
bool | setPhase (int64_t offset) const |
Base class for clock classes
float_freq BaseClock::getFreq | ( | ) | const |
Get clock adjustment frequancy
Timestamp_t BaseClock::getTime | ( | ) | const |
Get clock time
bool BaseClock::offsetClock | ( | int64_t | offset | ) | const |
Offset clock time
[in] | offset | in nanoseconeds |
bool BaseClock::setFreq | ( | float_freq | freq | ) | const |
Set clock adjustment frequancy
[in] | freq | frequancy in ppb |
bool BaseClock::setPhase | ( | int64_t | offset | ) | const |
Set clock phase offset
[in] | offset | in nanoseconeds |
bool BaseClock::setTime | ( | const Timestamp_t & | ts | ) | const |
Set clock time
[out] | ts | new clock time |