35 #ifndef OPENAVB_AVTP_TIME_PUB_H
36 #define OPENAVB_AVTP_TIME_PUB_H 1
38 #include "openavb_platform_pub.h"
39 #include "openavb_types_pub.h"
275 #endif // OPENAVB_AVTP_TIME_PUB_H
AVTP time structure.
Definition: openavb_avtp_time_pub.h:50
void openavbAvtpTimeSetTimestampUncertain(avtp_time_t *pAvtpTime, bool uncertainFlag)
Set the AVTP timestamp uncertain indicator.
bool openavbAvtpTimeIsPastTime(avtp_time_t *pAvtpTime, U64 nSecTime)
Check if time is in the past a specific time (PTP time)
void openavbAvtpTimeAddUSec(avtp_time_t *pAvtpTime, long uSec)
Add microseconds to the time.
void openavbAvtpTimeSetToWallTime(avtp_time_t *pAvtpTime)
Set to wall time (gPTP time).
bool openavbAvtpTimeIsPast(avtp_time_t *pAvtpTime)
Check if time is in the past.
U64 openavbAvtpTimeGetAvtpTimeNS(avtp_time_t *pAvtpTime)
Get AVTP timestamp in nanoseconds.
void openavbAvtpTimeSetToTimestamp(avtp_time_t *pAvtpTime, U32 timestamp)
Set to timestamp.
bool openavbAvtpTimeTimestampIsValid(avtp_time_t *pAvtpTime)
Get the AVTP timestamp valid indicator.
U32 openavbAvtpTimeGetAvtpTimestamp(avtp_time_t *pAvtpTime)
Get AVTP timestamp.
void openavbAvtpTimeDelete(avtp_time_t *pAvtpTime)
Delete the time struct.
void openavbAvtpTimeAddNSec(avtp_time_t *pAvtpTime, long nSec)
Add nanoseconds to the time.
void openavbAvtpTimeSetToTimespec(avtp_time_t *pAvtpTime, timespec_t *timestamp)
Set to timestamp.
void openavbAvtpTimeSetTimestampValid(avtp_time_t *pAvtpTime, bool validFlag)
Set the AVTP timestamp valid indicator.
void openavbAvtpTimeSubNSec(avtp_time_t *pAvtpTime, long nSec)
Subtract nanoseconds from the time.
avtp_time_t * openavbAvtpTimeCreate(U32 maxLatencyUsec)
Create a avtp_time_t structure.
uint32_t U32
Unsigned 32 bit type.
Definition: openavb_types_base_pub.h:85
S32 openavbAvtpTimeUsecDelta(avtp_time_t *pAvtpTime)
Returns delta from timestamp and now.
uint64_t U64
Unsigned 64 bit type.
Definition: openavb_types_base_pub.h:89
struct timespec timespec_t
standard timespec type.
Definition: openavb_avtp_time_pub.h:46
bool openavbAvtpTimeTimestampIsUncertain(avtp_time_t *pAvtpTime)
Get the AVTP timestamp uncertain indicator.
int32_t S32
Signed 32 bit type.
Definition: openavb_types_base_pub.h:83
void openavbAvtpTimeSubUSec(avtp_time_t *pAvtpTime, long uSec)
Subtract microseconds from the time.
bool bTimestampValid
Timestamp valid.
Definition: openavb_avtp_time_pub.h:58
bool bTimestampUncertain
Timestamp uncertain.
Definition: openavb_avtp_time_pub.h:61
void openavbAvtpTimePushMCR(avtp_time_t *pAvtpTime, U32 timestamp)
Push a timestamp, for use in Media Clock Recovery (MCR).
bool openavbAvtpTimeUsecTill(avtp_time_t *pAvtpTime, U32 *pUsecTill)
Determines microseconds until PTP time.
U64 timeNsec
Time in nanoseconds.
Definition: openavb_avtp_time_pub.h:52
U64 maxLatencyNsec
Maximum latency. Timestamps greater than now + max latency will be considered uncertain.
Definition: openavb_avtp_time_pub.h:55
void openavbAvtpTimeSetToSystemTime(avtp_time_t *pAvtpTime)
Set to system time.