Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
net_ptp_time Struct Reference

Precision Time Protocol Timestamp format. More...

#include <ptp_time.h>

Data Fields

union {
   uint64_t   second
 
}; 
 
uint32_t nanosecond
 
uint32_t low
 
uint16_t high
 
uint16_t unused
 

Detailed Description

Precision Time Protocol Timestamp format.

This structure represents a timestamp according to the Precision Time Protocol standard.

Seconds are encoded as a 48 bits unsigned integer. Nanoseconds are encoded as a 32 bits unsigned integer.

Field Documentation

◆ 

union { ... } net_ptp_time::@180

Seconds encoded on 48 bits.

◆ high

uint16_t net_ptp_time::high

◆ low

uint32_t net_ptp_time::low

◆ nanosecond

uint32_t net_ptp_time::nanosecond

Nanoseconds.

◆ second

uint64_t net_ptp_time::second

◆ unused

uint16_t net_ptp_time::unused

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