|
Zephyr Project API 4.3.0
A Scalable Open Source RTOS
|
Interfaces for Precision Time Protocol (PTP) clocks. More...
Files | |
| file | ptp_clock.h |
| Main header file for PTP (Precision Time Protocol) clock driver API. | |
Data Structures | |
| struct | ptp_clock_driver_api |
Macros | |
| #define | PTP_CLOCK_NAME "PTP_CLOCK" |
Functions | |
| static int | ptp_clock_set (const struct device *dev, struct net_ptp_time *tm) |
| Set the time of the PTP clock. | |
| int | ptp_clock_get (const struct device *dev, struct net_ptp_time *tm) |
| Get the time of the PTP clock. | |
| static int | ptp_clock_adjust (const struct device *dev, int increment) |
| Adjust the PTP clock time. | |
| static int | ptp_clock_rate_adjust (const struct device *dev, double rate) |
| Adjust the PTP clock rate ratio based on its nominal frequency. | |
Interfaces for Precision Time Protocol (PTP) clocks.
| #define PTP_CLOCK_NAME "PTP_CLOCK" |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/ptp_clock.h>
Adjust the PTP clock time.
| dev | PTP clock device |
| increment | Increment of the clock in nanoseconds |
| int ptp_clock_get | ( | const struct device * | dev, |
| struct net_ptp_time * | tm ) |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/ptp_clock.h>
Get the time of the PTP clock.
| dev | PTP clock device |
| tm | Where to store the current time. |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/ptp_clock.h>
Adjust the PTP clock rate ratio based on its nominal frequency.
| dev | PTP clock device |
| rate | Rate ratio based on its nominal frequency |
|
inlinestatic |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/ptp_clock.h>
Set the time of the PTP clock.
| dev | PTP clock device |
| tm | Time to set |