clkmgr 2.0
Clock Manager API library to receive events from the PTP service
Loading...
Searching...
No Matches
clockmanager_c.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 SPDX-FileCopyrightText: Copyright © 2024 Intel Corporation. */
3
13#ifndef CLKMGR_CLOCKMANAGER_C_H
14#define CLKMGR_CLOCKMANAGER_C_H
15
16#include "pub/clkmgr/types_c.h"
19#include "pub/clkmgr/event_c.h"
20#include <time.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
31
37
43
52 const char *timeBaseName, Clkmgr_ClockSyncData *data_c);
53
62 size_t timeBaseIndex, Clkmgr_ClockSyncData *data_c);
63
79 const char *timeBaseName, Clkmgr_ClockSyncData *data_c);
80
95 size_t timeBaseIndex, Clkmgr_ClockSyncData *data_c);
96
102bool clkmgr_getTime(struct timespec *ts);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* CLKMGR_CLOCKMANAGER_C_H */
bool clkmgr_subscribe(const Clkmgr_Subscription *sub_c, size_t timeBaseIndex, Clkmgr_ClockSyncData *data_c)
bool clkmgr_connect()
enum Clkmgr_StatusWaitResult clkmgr_statusWaitByName(int timeout, const char *timeBaseName, Clkmgr_ClockSyncData *data_c)
bool clkmgr_getTime(struct timespec *ts)
bool clkmgr_subscribeByName(const Clkmgr_Subscription *sub_c, const char *timeBaseName, Clkmgr_ClockSyncData *data_c)
enum Clkmgr_StatusWaitResult clkmgr_statusWait(int timeout, size_t timeBaseIndex, Clkmgr_ClockSyncData *data_c)
bool clkmgr_disconnect()
size_t clkmgr_getTimebaseCfgsSize()
C wrapper to get clock synchronization events data.
struct Clkmgr_ClockSyncData Clkmgr_ClockSyncData
Definition event_c.h:22
C wrapper to set clock event subscription.
struct Clkmgr_Subscription Clkmgr_Subscription
Definition subscription_c.h:22
C wrapper to get the configuration of time base.
Enumerator types.
Clkmgr_StatusWaitResult
Definition types_c.h:65