Zephyr Project API  3.3.0
A Scalable Open Source RTOS
ptp_time.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_NET_PTP_TIME_H_
14#define ZEPHYR_INCLUDE_NET_PTP_TIME_H_
15
23#include <zephyr/net/net_core.h>
24#include <zephyr/toolchain.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
41 union {
42 struct {
43#ifdef CONFIG_LITTLE_ENDIAN
47#else
51#endif
52 } _sec;
54 };
55
58};
59
60#ifdef __cplusplus
61}
62#endif
63
76 union {
77 struct {
78#ifdef CONFIG_LITTLE_ENDIAN
82#else
86#endif
87 } _sec;
89 };
90
92 union {
93 struct {
94#ifdef CONFIG_LITTLE_ENDIAN
98#else
102#endif
103 } _fns;
105 };
106} __packed;
107
112#endif /* ZEPHYR_INCLUDE_NET_PTP_TIME_H_ */
Network core definitions.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Precision Time Protocol Extended Timestamp format.
Definition: ptp_time.h:74
uint16_t unused
Definition: ptp_time.h:83
uint16_t high
Definition: ptp_time.h:84
uint64_t fract_nsecond
Definition: ptp_time.h:104
uint64_t second
Definition: ptp_time.h:88
uint32_t low
Definition: ptp_time.h:85
Precision Time Protocol Timestamp format.
Definition: ptp_time.h:39
uint16_t high
Definition: ptp_time.h:49
uint32_t nanosecond
Definition: ptp_time.h:57
uint64_t second
Definition: ptp_time.h:53
uint16_t unused
Definition: ptp_time.h:48
uint32_t low
Definition: ptp_time.h:50
Macros to abstract toolchain specific capabilities.