1 /* 2 * Copyright (c) 2024 BayLibre SAS 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief Public functions for the Precision Time Protocol. 10 * 11 * References are to version 2019 of IEEE 1588, ("PTP") 12 */ 13 14 #ifndef ZEPHYR_INCLUDE_NET_PTP_H_ 15 #define ZEPHYR_INCLUDE_NET_PTP_H_ 16 17 /** 18 * @brief Precision Time Protocol (PTP) support 19 * @defgroup ptp PTP support 20 * @since 3.7 21 * @version 0.1.0 22 * @ingroup networking 23 * @{ 24 */ 25 26 #include <zephyr/net/ptp_time.h> 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif 31 32 #define PTP_MAJOR_VERSION 2 /**< Major PTP Version */ 33 #define PTP_MINOR_VERSION 1 /**< Minor PTP Version */ 34 35 #define PTP_VERSION (PTP_MINOR_VERSION << 4 | PTP_MAJOR_VERSION) /**< PTP version IEEE-1588:2019 */ 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 /** 42 * @} 43 */ 44 45 #endif /* ZEPHYR_INCLUDE_NET_PTP_H_ */ 46