| libptpmgmt 2.0
    libptpmgmt library that provides the functionality of linuxptp pmc | 
#include <ptp.h>
| Public Attributes | |
| void(* | free )(ptpmgmt_clock clk) | 
| struct timespec(* | getTime )(const_ptpmgmt_clock clk) | 
| bool(* | setTime )(const_ptpmgmt_clock clk, const struct timespec *ts) | 
| bool(* | offsetClock )(const_ptpmgmt_clock clk, int64_t offset) | 
| double(* | getFreq )(const_ptpmgmt_clock clk) | 
| bool(* | setFreq )(const_ptpmgmt_clock clk, double freq) | 
| bool(* | setPhase )(const_ptpmgmt_clock clk, int64_t offset) | 
| bool(* | isCharFile )(const char *file) | 
| bool(* | initUsingDevice )(ptpmgmt_clock clk, const char *device, bool readonly) | 
| bool(* | initUsingIndex )(ptpmgmt_clock clk, int ptpIndex, bool readonly) | 
| bool(* | isInit )(const_ptpmgmt_clock clk) | 
| clockid_t(* | clkId )(const_ptpmgmt_clock clk) | 
| int(* | getFd )(const_ptpmgmt_clock clk) | 
| int(* | fileno )(const_ptpmgmt_clock clk) | 
| int(* | ptpIndex )(const_ptpmgmt_clock clk) | 
| const char *(* | device )(const_ptpmgmt_clock clk) | 
| bool(* | setTimeFromSys )(const_ptpmgmt_clock clk) | 
| bool(* | setTimeToSys )(const_ptpmgmt_clock clk) | 
| bool(* | fetchCaps )(const_ptpmgmt_clock clk, struct ptp_clock_caps *caps) | 
| bool(* | readPin )(const_ptpmgmt_clock clk, unsigned int index, struct ptp_pin_desc *pin) | 
| bool(* | writePin )(const_ptpmgmt_clock clk, const struct ptp_pin_desc *pin) | 
| bool(* | ExternTSEbable )(const_ptpmgmt_clock clk, unsigned int index, uint8_t flags) | 
| bool(* | ExternTSDisable )(const_ptpmgmt_clock clk, unsigned int index) | 
| bool(* | MaskClearAll )(const_ptpmgmt_clock clk) | 
| bool(* | MaskEnable )(const_ptpmgmt_clock clk, unsigned int index) | 
| bool(* | readEvent )(const_ptpmgmt_clock clk, struct ptp_extts_event *event) | 
| bool(* | readEvents )(const_ptpmgmt_clock clk, struct ptp_extts_event *events, size_t *size) | 
| bool(* | setPinPeriod )(const_ptpmgmt_clock clk, unsigned int index, struct ptp_perout_request *times) | 
| bool(* | setPtpPpsEvent )(const_ptpmgmt_clock clk, bool enable) | 
| bool(* | samplePtpSys )(const_ptpmgmt_clock clk, size_t count, struct ptp_sys_offset *samples) | 
| bool(* | extSamplePtpSys )(const_ptpmgmt_clock clk, size_t count, struct ptp_sys_offset_extended *samples) | 
| bool(* | preciseSamplePtpSys )(const_ptpmgmt_clock clk, struct ptp_sys_offset_precise *sample) | 
the ptpmgmt clock structure hold the clock object and call backs to call c++ methods
| clockid_t(* ptpmgmt_clock_t::clkId) (const_ptpmgmt_clock clk) | 
Get dynamic clock id
| [in] | clk | pointer to clock structure | 
| const char *(* ptpmgmt_clock_t::device) (const_ptpmgmt_clock clk) | 
Get POSIX device name
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::ExternTSDisable) (const_ptpmgmt_clock clk, unsigned int index) | 
Disable PHC pin external events
| [in] | clk | pointer to clock structure | 
| [in] | index | pin index to enable | 
| bool(* ptpmgmt_clock_t::ExternTSEbable) (const_ptpmgmt_clock clk, unsigned int index, uint8_t flags) | 
Enable PHC pin external events
| [in] | clk | pointer to clock structure | 
| [in] | index | pin index to enable | 
| [in] | flags | using the PTP_EXTERN_TS_xxx flags | 
| bool(* ptpmgmt_clock_t::extSamplePtpSys) (const_ptpmgmt_clock clk, size_t count, struct ptp_sys_offset_extended *samples) | 
Extended sample the PHC and system clock So caller can compare offset and frequancy
| [in] | clk | pointer to clock structure | 
| [in] | count | number of sample to measure | 
| [out] | samples | taken by kernel | 
| bool(* ptpmgmt_clock_t::fetchCaps) (const_ptpmgmt_clock clk, struct ptp_clock_caps *caps) | 
Get PTP clock capabilities
| [in] | clk | pointer to clock structure | 
| [out] | caps | capabilities | 
| int(* ptpmgmt_clock_t::fileno) (const_ptpmgmt_clock clk) | 
Get file description
| [in] | clk | pointer to clock structure | 
| void(* ptpmgmt_clock_t::free) (ptpmgmt_clock clk) | 
< Free a clock object
| [in,out] | clk | pointer to clock structure | 
| int(* ptpmgmt_clock_t::getFd) (const_ptpmgmt_clock clk) | 
Get file description
| [in] | clk | pointer to clock structure | 
| double(* ptpmgmt_clock_t::getFreq) (const_ptpmgmt_clock clk) | 
Get clock adjustment frequancy
| [in] | clk | pointer to clock structure | 
| struct timespec(* ptpmgmt_clock_t::getTime) (const_ptpmgmt_clock clk) | 
Get clock time
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::initUsingDevice) (ptpmgmt_clock clk, const char *device, bool readonly) | 
Initialize a POSIX clock based on its device name
| [in,out] | clk | pointer to clock structure | 
| [in] | device | name | 
| [in] | readonly | open clock to read only | 
| bool(* ptpmgmt_clock_t::initUsingIndex) (ptpmgmt_clock clk, int ptpIndex, bool readonly) | 
Initialize a PTP clock based on its index
| [in,out] | clk | pointer to clock structure | 
| [in] | ptpIndex | clock PTP index | 
| [in] | readonly | open clock to read only | 
| bool(* ptpmgmt_clock_t::isCharFile) (const char *file) | 
Check file is a char file
| [in] | file | name to check | 
| bool(* ptpmgmt_clock_t::isInit) (const_ptpmgmt_clock clk) | 
Is object initialized
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::MaskClearAll) (const_ptpmgmt_clock clk) | 
PHC clear all mask
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::MaskEnable) (const_ptpmgmt_clock clk, unsigned int index) | 
PHC ebable single pin mask
| [in] | clk | pointer to clock structure | 
| [in] | index | pin index in mask to enable | 
| bool(* ptpmgmt_clock_t::offsetClock) (const_ptpmgmt_clock clk, int64_t offset) | 
Offset clock time
| [in] | clk | pointer to clock structure | 
| [in] | offset | in nanoseconeds | 
| bool(* ptpmgmt_clock_t::preciseSamplePtpSys) (const_ptpmgmt_clock clk, struct ptp_sys_offset_precise *sample) | 
Precise sample the PHC using PCI cross time stamp
| [in] | clk | pointer to clock structure | 
| [out] | sample | taken by kernel | 
| int(* ptpmgmt_clock_t::ptpIndex) (const_ptpmgmt_clock clk) | 
Get PTP index
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::readEvent) (const_ptpmgmt_clock clk, struct ptp_extts_event *event) | 
Read single external event
| [in] | clk | pointer to clock structure | 
| [out] | event | retrieved event | 
| bool(* ptpmgmt_clock_t::readEvents) (const_ptpmgmt_clock clk, struct ptp_extts_event *events, size_t *size) | 
Read external events
| [in] | clk | pointer to clock structure | 
| [out] | events | pointer to array of retrieved events | 
| [in,out] | size | input: array size, output: actual number of events | 
| bool(* ptpmgmt_clock_t::readPin) (const_ptpmgmt_clock clk, unsigned int index, struct ptp_pin_desc *pin) | 
Read PHC clock pin current functional state
| [in] | clk | pointer to clock structure | 
| [in] | index | pin index to read | 
| [out] | pin | hardware functional state | 
| bool(* ptpmgmt_clock_t::samplePtpSys) (const_ptpmgmt_clock clk, size_t count, struct ptp_sys_offset *samples) | 
Sample the PHC and system clock So caller can compare offset and frequancy
| [in] | clk | pointer to clock structure | 
| [in] | count | number of sample to measure | 
| [out] | samples | taken by kernel | 
| bool(* ptpmgmt_clock_t::setFreq) (const_ptpmgmt_clock clk, double freq) | 
Set clock adjustment frequancy
| [in] | clk | pointer to clock structure | 
| [in] | freq | frequancy in ppb | 
| bool(* ptpmgmt_clock_t::setPhase) (const_ptpmgmt_clock clk, int64_t offset) | 
Set clock phase offset
| [in] | clk | pointer to clock structure | 
| [in] | offset | in nanoseconeds | 
| bool(* ptpmgmt_clock_t::setPinPeriod) (const_ptpmgmt_clock clk, unsigned int index, struct ptp_perout_request *times) | 
Set PHC pin period signal
| [in] | clk | pointer to clock structure | 
| [in] | index | pin index | 
| [in] | times | provides the times and flags used for the period | 
| bool(* ptpmgmt_clock_t::setPtpPpsEvent) (const_ptpmgmt_clock clk, bool enable) | 
Enable or disable Linux pulse per second event
| [in] | clk | pointer to clock structure | 
| [in] | enable | flag | 
| bool(* ptpmgmt_clock_t::setTime) (const_ptpmgmt_clock clk, const struct timespec *ts) | 
Set clock time
| [in] | clk | pointer to clock structure | 
| [out] | ts | new clock time | 
| bool(* ptpmgmt_clock_t::setTimeFromSys) (const_ptpmgmt_clock clk) | 
Set PHC time using the system clock
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::setTimeToSys) (const_ptpmgmt_clock clk) | 
Set system clock using the PHC as source time
| [in] | clk | pointer to clock structure | 
| bool(* ptpmgmt_clock_t::writePin) (const_ptpmgmt_clock clk, const struct ptp_pin_desc *pin) | 
Set PHC clock pin functional state
| [in] | clk | pointer to clock structure | 
| [in] | pin | hardware functional state |