clkmgr 2.0
Clock Manager API library to receive events from the PTP service
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
ClockSyncData Class Reference

#include <event.h>

Public Member Functions

 ClockSyncData ()=default
 
bool havePTP () const
 
PTPClockEventgetPtp ()
 
bool haveSys () const
 
SysClockEventgetSysClock ()
 

Friends

class ClockSyncBaseHandler
 

Detailed Description

Provides functionality to manage and update the state of PTP and system clocks. It includes methods to check availability, retrieve clock objects, and update clock states.

Constructor & Destructor Documentation

◆ ClockSyncData()

ClockSyncData::ClockSyncData ( )
default

Construct a ClockSyncData object, setting the PTP and system clock availability flags to false

Member Function Documentation

◆ getPtp()

PTPClockEvent & ClockSyncData::getPtp ( )

Retrieve the PTP clock object

Returns
Reference to the PTPClockEvent object

◆ getSysClock()

SysClockEvent & ClockSyncData::getSysClock ( )

Retrieve the system clock object

Returns
Reference to the SysClockEvent object

◆ havePTP()

bool ClockSyncData::havePTP ( ) const

Check if the PTP clock is available

Returns
True if the PTP clock is available, false otherwise

◆ haveSys()

bool ClockSyncData::haveSys ( ) const

Check if the system clock is available

Returns
True if the system clock is available, false otherwise

The documentation for this class was generated from the following file: