Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ptp_time.h File Reference

Public functions for the Precision Time Protocol time specification. More...

Go to the source code of this file.

Data Structures

struct  net_ptp_time
 (Generalized) Precision Time Protocol Timestamp format. More...
 
struct  net_ptp_extended_time
 Generalized Precision Time Protocol Extended Timestamp format. More...
 

Functions

static net_time_t net_ptp_time_to_ns (struct net_ptp_time *ts)
 Convert a PTP timestamp to a nanosecond precision timestamp, both related to the local network reference clock.
 
static struct net_ptp_time ns_to_net_ptp_time (net_time_t nsec)
 Convert a nanosecond precision timestamp to a PTP timestamp, both related to the local network reference clock.
 

Detailed Description

Public functions for the Precision Time Protocol time specification.

References are to version 2019 of IEEE 1588, ("PTP") and version 2020 of IEEE 802.1AS ("gPTP").