7#ifndef ZEPHYR_INCLUDE_DRIVERS_PTP_CLOCK_H_ 
    8#define ZEPHYR_INCLUDE_DRIVERS_PTP_CLOCK_H_ 
   21#if !defined(PTP_CLOCK_NAME) 
   22#define PTP_CLOCK_NAME "PTP_CLOCK" 
   46        return api->
set(dev, 
tm);
 
   59static inline int z_impl_ptp_clock_get(
const struct device *dev,
 
   65        return api->
get(dev, 
tm);
 
   81        return api->
adjust(dev, increment);
 
  104#include <syscalls/ptp_clock.h> 
static int ptp_clock_rate_adjust(const struct device *dev, double rate)
Adjust the PTP clock time change rate when compared to its neighbor.
Definition: ptp_clock.h:92
 
static int ptp_clock_set(const struct device *dev, struct net_ptp_time *tm)
Set the time of the PTP clock.
Definition: ptp_clock.h:40
 
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.
Definition: ptp_clock.h:76
 
Public functions for the Precision Time Protocol time specification.
 
Runtime device structure (in ROM) per driver instance.
Definition: device.h:378
 
const void * api
Definition: device.h:384
 
Precision Time Protocol Timestamp format.
Definition: ptp_time.h:39
 
Definition: ptp_clock.h:25
 
int(* get)(const struct device *dev, struct net_ptp_time *tm)
Definition: ptp_clock.h:27
 
int(* adjust)(const struct device *dev, int increment)
Definition: ptp_clock.h:28
 
int(* rate_adjust)(const struct device *dev, double ratio)
Definition: ptp_clock.h:29
 
int(* set)(const struct device *dev, struct net_ptp_time *tm)
Definition: ptp_clock.h:26