Loading...
Searching...
No Matches
ptp_timestamp_t Struct Reference

A PTP timestamp in seconds + nanoseconds since UNIX epoch. More...

Detailed Description

A PTP timestamp in seconds + nanoseconds since UNIX epoch.

According to IEEE 1588-2019 specification in section "5.3.3 Timestamp", timestamps are represented as seconds and nanoseconds since epoch. For the seconds parts an 48 bit unsigned integer is used in the protocol and a 32 bit unsigned integer for the nanoseconds.

Definition at line 103 of file ptp.h.

#include <ptp.h>

Data Fields

ptp_seconds_t seconds
 Seconds since UNIX epoch.
 
uint32_t nanoseconds
 Nanoseconds part.
 

Field Documentation

◆ nanoseconds

uint32_t ptp_timestamp_t::nanoseconds

Nanoseconds part.

Definition at line 105 of file ptp.h.

◆ seconds

ptp_seconds_t ptp_timestamp_t::seconds

Seconds since UNIX epoch.

Definition at line 104 of file ptp.h.


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