|
clkmgr 2.0
Clock Manager API library to receive events from the PTP service
|
#include <clockmanager.h>
Static Public Member Functions | |
| static ClockManager & | fetchSingleInstance () |
| static bool | connect () |
| static bool | disconnect () |
| static const TimeBaseConfigurations & | getTimebaseCfgs () |
| static bool | subscribeByName (const ClockSyncSubscription &newSub, const std::string &timeBaseName, ClockSyncData &clockSyncData) |
| static bool | subscribe (const ClockSyncSubscription &newSub, size_t timeBaseIndex, ClockSyncData &clockSyncData) |
| static enum StatusWaitResult | statusWaitByName (int timeout, const std::string &timeBaseName, ClockSyncData &clockSyncData) |
| static enum StatusWaitResult | statusWait (int timeout, size_t timeBaseIndex, ClockSyncData &clockSyncData) |
| static bool | getTime (timespec &ts) |
Provide APIs to set up Client and monitor clock synchronization events.
|
static |
Establish connection between Client and Proxy
|
static |
Remove the connection between Client and Proxy
|
static |
Fetch the single instance of object
|
static |
Retrieve the time of the CLOCK_REALTIME
| [out] | ts | timestamp of the CLOCK_REALTIME |
|
static |
Get the configurations of available time-bases
|
static |
Wait for status changes in the specified time-base by providing the timeBaseIndex and a timeout duration
| [in] | timeout | Timeout duration in seconds
|
| [in] | timeBaseIndex | Index of the time-base to be monitored |
| [out] | clockSyncData | Reference to the current telemetry data and synchronization errors |
|
static |
Wait for status changes in the specified time-base by providing the timeBaseName and a timeout duration
| [in] | timeout | Timeout duration in seconds
|
| [in] | timeBaseName | Name of the time-base to be monitored |
| [out] | clockSyncData | Reference to the current telemetry data and synchronization errors |
|
static |
Subscribe to specific time-base by providing timeBaseIndex and interested events.
| [in] | newSub | Reference to the subscription details |
| [in] | timeBaseIndex | Index of the time-base to be subscribed |
| [out] | clockSyncData | Reference to the current telemetry data and synchronization errors |
|
static |
Subscribe to specific time-base by providing timeBaseName and interested events.
| [in] | newSub | Reference to the subscription details |
| [in] | timeBaseName | Name of the time-base to be subscribed |
| [out] | clockSyncData | Reference to the current telemetry data and synchronization errors |