Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ptp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 BayLibre SAS
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef ZEPHYR_INCLUDE_NET_PTP_H_
15#define ZEPHYR_INCLUDE_NET_PTP_H_
16
26#include <zephyr/net/ptp_time.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#define PTP_MAJOR_VERSION 2
33#define PTP_MINOR_VERSION 1
35#define PTP_VERSION (PTP_MINOR_VERSION << 4 | PTP_MAJOR_VERSION)
37#ifdef __cplusplus
38}
39#endif
40
45#endif /* ZEPHYR_INCLUDE_NET_PTP_H_ */
Public functions for the Precision Time Protocol time specification.