|
clkmgr 2.0
Clock Manager API library to receive events from the PTP service
|
#include <event.h>
Public Member Functions | |
| ClockSyncData ()=default | |
| bool | havePTP () const |
| PTPClockEvent & | getPtp () |
| bool | haveSys () const |
| SysClockEvent & | getSysClock () |
Friends | |
| class | ClockSyncBaseHandler |
Provides functionality to manage and update the state of PTP and system clocks. It includes methods to check availability, retrieve clock objects, and update clock states.
|
default |
Construct a ClockSyncData object, setting the PTP and system clock availability flags to false
| PTPClockEvent & ClockSyncData::getPtp | ( | ) |
Retrieve the PTP clock object
| SysClockEvent & ClockSyncData::getSysClock | ( | ) |
Retrieve the system clock object
| bool ClockSyncData::havePTP | ( | ) | const |
Check if the PTP clock is available
| bool ClockSyncData::haveSys | ( | ) | const |
Check if the system clock is available