Home
last modified time | relevance | path

Searched +full:ptp +full:- +full:clock (Results 1 – 25 of 84) sorted by relevance

1234

/Zephyr-latest/subsys/net/lib/ptp/
Dclock.h4 * SPDX-License-Identifier: Apache-2.0
8 * @file clock.h
9 * @brief PTP Clock data structure and interface API
11 * References are to version 2019 of IEEE 1588, ("PTP")
29 /** @brief Threshold value for accepting PTP Instance for consideration in BTCA */
35 /* PTP Clock structure declaration. */
39 * @brief Types of PTP Clocks.
50 * @brief PTP Clock time source.
85 * @brief Function initializing PTP Clock instance.
87 * @return Pointer to the structure representing PTP Clock instance.
[all …]
DKconfig2 # SPDX-License-Identifier: Apache-2.0
4 menuconfig PTP config
5 bool "IEEE 1588 (PTP) support [EXPERIMENTAL]"
14 Enable PTP Stack that send and receives PTP packets
16 supports only one PTP Instance in the PTP Node.
18 if PTP
20 module = PTP
21 module-dep = NET_LOG
22 module-str = Log level for PTP
23 module-help = Enable logs for the PTP stack.
[all …]
Dddt.h4 * SPDX-License-Identifier: Apache-2.0
11 * @note Based on IEEE 1588:2019 section 5.3 - Derived data types
25 * @brief PTP time interval in nanoseconds.
26 * @note 5.3.2 - time interval expressed in nanoseconds multiplied by 2^16
31 * @brief Structure for storing PTP timestamp used in PTP Protocol.
32 * @note 5.3.3 - timestamp with respect to epoch
35 /** Seconds encoded on 48 bits - high 16 bits. */
37 /** Seconds encoded on 48 bits - low 32 bits. */
44 * @brief PTP Clock Identity.
45 * @note 5.3.4 - identifies unique entities within a PTP network.
[all …]
Dport.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief PTP port data structure and interface to operate on PTP Ports.
11 * References are to version 2019 of IEEE 1588, ("PTP")
36 * @brief Structure describing PTP Port.
41 /** PTP Port Dataset*/
86 * @brief Function initializing PTP Port.
94 * @brief Function returning PTP Port's state.
96 * @param[in] port Pointer to the PTP Port structure.
98 * @return PTP Port's current state.
103 * @brief Function generating PTP Port events based on PTP Port's timers.
[all …]
Dds.h4 * SPDX-License-Identifier: Apache-2.0
11 * References are to version 2019 of IEEE 1588, ("PTP")
27 * @brief PTP Default Dataset.
28 * @note 8.2.1 - defaultDS data set member specification
32 /** Clock ID */
34 /** Indicates number of ptp ports on the PTP Instance. */
37 /** Quality of a clock. */
50 /** Current value of the PTP Instance Time. */
58 /** PTP Instance type. */
63 * @brief PTP Current Dataset.
[all …]
Dstate_machine.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Function and data structures used for state machine of the PTP Port.
11 * References are to version 2019 of IEEE 1588, ("PTP")
24 * @brief Enumeration of PTP Port States.
40 * @brief Enumeration of PTP events.
63 * @brief Finite State Machine for PTP Port.
67 * @param[in] tt_diff True if Time Transmitter Clock has changed
69 * @return A new PTP Port state
76 * @brief Finite State Machine for PTP Port that is configured as TimeReceiver-Only instance.
80 * @param[in] tt_diff True if Time Transmitter Clock has changed
[all …]
Dbtca.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Interface for Best TimeTransmitter Clock Algorithm.
11 * References are to version 2019 of IEEE 1588, ("PTP")
35 * @brief Function performing Best TimeTransmitter Clock state decision algorithm.
37 * @param[in] port Pointer to a PTP Port.
39 * @return Proposed PTP Port's state after execution of the state decision algorithm.
Dtlv.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Type, Length, Value extension for PTP
11 * References are to version 2019 of IEEE 1588, ("PTP")
29 * @note based on IEEE 1588-2019 Section 14.1.1 Table 52
55 * @brief PTP management message action field
57 * @note based on IEEE 1588-2019 Section 15.4.1.6 Table 57
68 * @brief PTP management message ID
70 * @note based on IEEE 1588-2019 Section 15.5.2.3 Table 59
129 * @note based on IEEE 1588-2019 Section 15.5.4.4 Table 109
143 * @brief PAD TLV - used to increase length of any PTP message.
[all …]
Dmsg.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief PTP messages definition.
11 * References are to version 2019 of IEEE 1588, ("PTP")
31 /* values of the bits of the flagField array for PTP message */
37 * @brief PTP message type.
40 /* PTP event message types */
45 /* General PTP message types */
55 * @brief Common PTP message header.
58 /** PTP message type and most significant 4 bytes of SdoId. */
60 /** PTP version. */
[all …]
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
7 clock.c
10 ptp.c
/Zephyr-latest/include/zephyr/drivers/
Dptp_clock.h4 * SPDX-License-Identifier: Apache-2.0
20 /* Name of the PTP clock driver */
33 * @brief Set the time of the PTP clock.
35 * @param dev PTP clock device
44 (const struct ptp_clock_driver_api *)dev->api; in ptp_clock_set()
46 return api->set(dev, tm); in ptp_clock_set()
50 * @brief Get the time of the PTP clock.
52 * @param dev PTP clock device
63 (const struct ptp_clock_driver_api *)dev->api; in z_impl_ptp_clock_get()
65 return api->get(dev, tm); in z_impl_ptp_clock_get()
[all …]
/Zephyr-latest/drivers/ethernet/
DKconfig.e10003 # Copyright (c) 2018-2019 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
21 a parameter to -nic qemu command line option.
30 bool "PTP clock driver support [EXPERIMENTAL]"
35 Enable PTP clock support. This is still a dummy that is only used
36 for debugging and currently does not do any real PTP activities.
39 int "Frequency of the clock source for the PTP timer"
43 Set the frequency in Hz sourced to the PTP timer.
DKconfig.stm32_hal5 # SPDX-License-Identifier: Apache-2.0
84 PHY's carrier status is re-evaluated.
119 bool "STM32 HAL PTP clock driver support"
123 Enable STM32 PTP clock support.
126 int "Frequency of the clock source for the PTP timer"
130 Set the frequency in Hz sourced to the PTP timer.
134 int "Lower bound of clock frequency adjustment (in percent)"
138 Specifies lower bound of PTP clock rate adjustment.
141 int "Upper bound of clock frequency adjustment (in percent)"
145 Specifies upper bound of PTP clock rate adjustment.
[all …]
DKconfig.native_posix4 # SPDX-License-Identifier: Apache-2.0
18 default PTP_NUM_PORTS if PTP
24 multiple ports are defined in gPTP or PTP, then multiple network interfaces
43 bool "PTP clock driver support"
44 default y if NET_GPTP || PTP
46 depends on NET_GPTP || PTP
48 Enable PTP clock support.
71 six hex 8-bit chars separated by colons (e.g.:
DKconfig.xmc4xxx4 # SPDX-License-Identifier: Apache-2.0
34 data fragment and its size. The data fragments are pre-allocated from the rx
37 in the descriptors are replaced by new pre-allocated buffers.
51 bool "XMC4XXX PTP clock driver support"
55 Enable XMC4XXX PTP Clock support.
/Zephyr-latest/tests/net/ptp/clock/
Dtestcase.yaml3 # We can only run this in platforms that support PTP clock
5 - frdm_k64f
6 - sam_e70_xplained/same70q21
7 - native_sim
9 - native_sim
11 net.ptp.clock:
14 - net
15 - ptp
16 - gptp
17 - userspace
/Zephyr-latest/include/zephyr/net/
Dptp_time.h4 * SPDX-License-Identifier: Apache-2.0
11 * References are to version 2019 of IEEE 1588, ("PTP")
20 * @defgroup ptp_time PTP time
39 * Time Protocol standard ("PTP", IEEE 1588, section 5.3.3), the Generalized
41 * any other well-defined context in which precision structured timestamps are
47 * In the context of (g)PTP, @em timestamps designate the time, relative to a
48 * local clock ("LocalClock") at which the message timestamp point passes a
49 * reference plane marking the boundary between the PTP Instance and the network
55 * For (g)PTP the media-specific message timestamp points and reference planes
56 * are defined in the standard. In non-PTP contexts specific to Zephyr,
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dptp.rst3 Precision Time Protocol (PTP)
13 PTP is a network protocol implemented in the application layer, used to synchronize
15 The stack supports the protocol and procedures as defined in the `IEEE 1588-2019 standard`_
16 (IEEE Standard for a Precision Clock Synchronization Protocol
21 Zephyr's implementation of PTP stack consist following items:
23 * PTP stack thread that handles incoming messages and events
25 * PTP stack initialization executed during system init
27 The implementation automatically creates PTP Ports (each PTP Port corresponds to unique interface).
35 .. csv-table:: Supported features
39 Ordinary Clock, yes
[all …]
/Zephyr-latest/drivers/ptp_clock/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
5 bool "Precision Time Protocol (PTP) Clock drivers"
7 Enable options for Precision Time Protocol Clock drivers.
17 PTP Clock device driver initialization priority
DKconfig.nxp_enet2 # SPDX-License-Identifier: Apache-2.0
5 bool "NXP ENET PTP Clock driver"
11 Enable NXP ENET PTP clock support.
/Zephyr-latest/dts/bindings/ethernet/
Dnxp,enet-ptp-clock.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: NXP ENET PTP (Precision Time Protocol) Clock
6 compatible: "nxp,enet-ptp-clock"
8 include: ["base.yaml", "pinctrl-device.yaml"]
Dnxp,enet-mac.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,enet-mac"
8 include: ["ethernet-controller.yaml", "pinctrl-device.yaml"]
20 nxp,ptp-clock:
24 Corresponding ptp clock device
26 nxp,unique-mac:
31 zephyr,random-mac-address or local-mac-address also.
38 nxp,fused-mac:
/Zephyr-latest/drivers/ethernet/nxp_enet/
DKconfig3 # Copyright (c) 2016-2017 ARM Ltd
5 # SPDX-License-Identifier: Apache-2.0
62 - IPv4, UDP and TCP checksum (both Rx and Tx)
113 - IPv4, UDP and TCP checksum (both Rx and Tx)
132 bool "RMII clock from external sources"
134 Setting this option will configure MCUX clock block to feed RMII
135 reference clock from external source (ENET_1588_CLKIN)
141 communication with MAC ENET controller. Other busses - like SPI
160 Reset the ethernet PHY at boot. Requires dts properties int-gpios and
161 reset-gpios to be present.
[all …]
/Zephyr-latest/samples/net/sockets/txtime/
DREADME.rst1 .. zephyr:code-sample:: so_txtime
3 :relevant-api: bsd_sockets ethernet
13 that the board has PTP clock support. A simulated PTP clock is
27 ``echo-server`` application from `net-tools`_ project to catch these and
30 to create an ``AF_PACKET`` type socket. In this case, the ``echo-server``
36 .. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c1 /* main.c - Application main entry point */
6 * SPDX-License-Identifier: Apache-2.0
10 /* Custom PTP device name to avoid conflicts with PTP devices on SOC */
67 static ZTEST_BMEM int ptp_clocks[MAX_NUM_INTERFACES - 1];
68 static int ptp_interface[MAX_NUM_INTERFACES - 1];
92 struct eth_context *context = dev->data; in eth_iface_init()
94 net_if_set_link_addr(iface, context->mac_addr, in eth_iface_init()
95 sizeof(context->mac_addr), in eth_iface_init()
103 struct eth_context *context = dev->data; in eth_tx()
109 if (!pkt->frags) { in eth_tx()
[all …]

1234