Lines Matching +full:ptp +full:- +full:clock
4 * 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()
69 * @brief Adjust the PTP clock time.
71 * @param dev PTP clock device
72 * @param increment Increment of the clock in nanoseconds
79 (const struct ptp_clock_driver_api *)dev->api; in ptp_clock_adjust()
81 return api->adjust(dev, increment); in ptp_clock_adjust()
85 * @brief Adjust the PTP clock time change rate when compared to its neighbor.
87 * @param dev PTP clock device
88 * @param rate Rate of the clock time change
95 (const struct ptp_clock_driver_api *)dev->api; in ptp_clock_rate_adjust()
97 return api->rate_adjust(dev, rate); in ptp_clock_rate_adjust()