|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Driver Operations PTP Clock driver operations More...
#include <zephyr/drivers/ptp_clock.h>
Data Fields | |
| ptp_clock_api_set_t | set |
| REQ Set the time of the PTP clock. | |
| ptp_clock_api_get_t | get |
| REQ Get the time of the PTP clock. | |
| ptp_clock_api_adjust_t | adjust |
| REQ Adjust the PTP clock time. | |
| ptp_clock_api_rate_adjust_t | rate_adjust |
| OPT Adjust the PTP clock rate ratio based on its nominal frequency. | |
| ptp_clock_api_adjust_rate_t | adjust_rate |
| REQ Adjust the PTP clock rate by an offset from its nominal frequency. | |
Driver Operations PTP Clock driver operations
This is the driver API structure any PTP Clock driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| ptp_clock_api_adjust_t ptp_clock_driver_api::adjust |
REQ Adjust the PTP clock time.
| ptp_clock_api_adjust_rate_t ptp_clock_driver_api::adjust_rate |
REQ Adjust the PTP clock rate by an offset from its nominal frequency.
A driver that implements the deprecated rate_adjust may leave this unset.
| ptp_clock_api_get_t ptp_clock_driver_api::get |
REQ Get the time of the PTP clock.
| ptp_clock_api_rate_adjust_t ptp_clock_driver_api::rate_adjust |
OPT Adjust the PTP clock rate ratio based on its nominal frequency.
Only used if adjust_rate is not implemented.
adjust_rate instead. | ptp_clock_api_set_t ptp_clock_driver_api::set |
REQ Set the time of the PTP clock.