|
clkmgr 2.0
Clock Manager API library to receive events from the PTP service
|
C wrapper to get clock synchronization events data. More...

Go to the source code of this file.
Typedefs | |
| typedef struct Clkmgr_ClockSyncData | Clkmgr_ClockSyncData |
C wrapper to get clock synchronization events data.
| typedef struct Clkmgr_ClockSyncData Clkmgr_ClockSyncData |
Opaque alias for clock synchronization data
| Clkmgr_ClockSyncData * clkmgr_constructClockSyncDataInstance | ( | void | ) |
Construct a clock sync data object
| void clkmgr_destroyClockSyncDataInstance | ( | Clkmgr_ClockSyncData * | data_c | ) |
Destroy a ClockSyncData_C object
| [in] | data_c | Pointer to the Clkmgr_ClockSyncData object to destroy |
| int64_t clkmgr_getClockOffset | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the clock offset in nanosecond
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| uint32_t clkmgr_getGmChangedEventCount | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the count of grandmaster changed event
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| uint64_t clkmgr_getGmIdentity | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the grandmaster clock identity
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| uint64_t clkmgr_getNotificationTimestamp | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the notification timestamp in nanosecond
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| uint32_t clkmgr_getOffsetInRangeEventCount | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the count of clock offset in-range event
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| uint32_t clkmgr_getPtpAsCapableEventCount | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Get the count of IEEE 802.1AS capable event
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| uint32_t clkmgr_getPtpCompositeEventCount | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Get the count of composite event
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| uint32_t clkmgr_getPtpSyncedWithGmEventCount | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Get the count of clock synced with grandmaster event
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| uint64_t clkmgr_getSyncInterval | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the synchronization interval in microsecond
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| bool clkmgr_havePtpData | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Check if the PTP clock is available
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| bool clkmgr_haveSysData | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Check if the system clock is available
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| bool clkmgr_isGmChanged | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Check if the grandmaster has changed
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| bool clkmgr_isOffsetInRange | ( | const Clkmgr_ClockSyncData * | data_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Check if the clock offset is in-range
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| [in] | clock_type | The type of clock to set |
| bool clkmgr_isPtpAsCapable | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Check if the clock is an IEEE 802.1AS capable
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| bool clkmgr_isPtpCompositeEventMet | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Check if all the conditions in the subscribed composite event are met
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |
| bool clkmgr_isPtpSyncedWithGm | ( | const Clkmgr_ClockSyncData * | data_c | ) |
Check if the PTP clock is synchronized with a grandmaster
| [in] | data_c | Pointer of the Clkmgr_ClockSyncData |