Zephyr API Documentation 4.1.0-rc3
A Scalable Open Source RTOS
|
|
4.1.0-rc3 |
Precision Time Protocol time specification . More...
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. | |
Precision Time Protocol time specification .
|
inlinestatic |
#include <zephyr/net/ptp_time.h>
Convert a PTP timestamp to a nanosecond precision timestamp, both related to the local network reference clock.
ts | the PTP timestamp |
|
inlinestatic |
#include <zephyr/net/ptp_time.h>
Convert a nanosecond precision timestamp to a PTP timestamp, both related to the local network reference clock.
nsec | a nanosecond precision timestamp |