|
clkmgr 2.0
Clock Manager API library to receive events from the PTP service
|
#include <subscription.h>
Public Member Functions | |
| void | enablePtpSubscription () |
| void | disablePtpSubscription () |
| bool | isPTPSubscriptionEnable () const |
| void | setPtpSubscription (const PTPClockSubscription &newPtpSub) |
| const PTPClockSubscription & | getPtpSubscription () const |
| void | enableSysSubscription () |
| void | disableSysSubscription () |
| bool | isSysSubscriptionEnable () const |
| void | setSysSubscription (const SysClockSubscription &newSysSub) |
| const SysClockSubscription & | getSysSubscription () const |
Provide overview of clock event subscriptions to Clock Manager.
| void ClockSyncSubscription::disablePtpSubscription | ( | ) |
Disable the subscription of the PTP clock.
| void ClockSyncSubscription::disableSysSubscription | ( | ) |
Disable the subscription of the system clock.
| void ClockSyncSubscription::enablePtpSubscription | ( | ) |
Enable the subscription of the PTP clock.
| void ClockSyncSubscription::enableSysSubscription | ( | ) |
Enable the subscription of the system clock.
| const PTPClockSubscription & ClockSyncSubscription::getPtpSubscription | ( | ) | const |
Retrieve the PTP clock manager subscription.
| const SysClockSubscription & ClockSyncSubscription::getSysSubscription | ( | ) | const |
Retrieve the system clock manager subscription.
| bool ClockSyncSubscription::isPTPSubscriptionEnable | ( | ) | const |
Check if the PTP clock subscription is enabled
| bool ClockSyncSubscription::isSysSubscriptionEnable | ( | ) | const |
Check if the system clock subscription is enabled
| void ClockSyncSubscription::setPtpSubscription | ( | const PTPClockSubscription & | newPtpSub | ) |
Set the PTP clock subscription with a new PTPClockSubscription object and enable it
| [in] | newPtpSub | The new PTPClockSubscription object to update |
| void ClockSyncSubscription::setSysSubscription | ( | const SysClockSubscription & | newSysSub | ) |
Set the system clock subscription with a new SysClockSubscription object and enable it
| [in] | newSysSub | The new SysClockSubscription object to update |