|
clkmgr 2.0
Clock Manager API library to receive events from the PTP service
|
C wrapper to set clock event subscription. More...

Go to the source code of this file.
Typedefs | |
| typedef struct Clkmgr_Subscription | Clkmgr_Subscription |
C wrapper to set clock event subscription.
| typedef struct Clkmgr_Subscription Clkmgr_Subscription |
Opaque alias for clock subscription
| Clkmgr_Subscription * clkmgr_constructSubscriptionInstance | ( | void | ) |
Construct a clock subscription object
| void clkmgr_destroySubscriptionInstance | ( | Clkmgr_Subscription * | sub_c | ) |
Destroy a clock subscription object
| bool clkmgr_disableSubscription | ( | Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Disable the subscription of the specify clock.
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | Type of clock to disable |
| bool clkmgr_enableSubscription | ( | Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Enable the subscription of the specify clock.
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | Type of clock to enable |
| uint32_t clkmgr_getClockOffsetThreshold | ( | const Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the threshold of specify clock offset
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | The type of clock to get |
| uint32_t clkmgr_getEventMask | ( | const Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Get the value of the event mask
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | The type of clock to get |
| uint32_t clkmgr_getPtpCompositeEventMask | ( | const Clkmgr_Subscription * | sub_c | ) |
Get the value of the PTP composite event mask.
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| bool clkmgr_isSubscriptionEnabled | ( | const Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type | ||
| ) |
Check if the specify clock subscription is enabled
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | Type of clock to check |
| bool clkmgr_setClockOffsetThreshold | ( | Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type, | ||
| uint32_t | threshold | ||
| ) |
Set the threshold of specify clock offset
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | The type of clock to set |
| [in] | threshold | Threshold of clock offset |
| bool clkmgr_setEventMask | ( | Clkmgr_Subscription * | sub_c, |
| enum Clkmgr_ClockType | clock_type, | ||
| uint32_t | mask | ||
| ) |
Set the event mask
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | clock_type | The type of clock to set |
| [in] | mask | The new event mask to set |
| bool clkmgr_setPtpCompositeEventMask | ( | Clkmgr_Subscription * | sub_c, |
| uint32_t | mask | ||
| ) |
Set the PTP composite event mask.
| [in] | sub_c | Pointer of the Clkmgr_Subscription |
| [in] | mask | The new composite event mask to set. |