RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs
timepps.h File Reference

This header file provides interfaces of the Pulse Per Second (PPS) support. More...

#include <sys/_ffcounter.h>
#include <sys/ioccom.h>
#include <sys/time.h>

Go to the source code of this file.

Data Structures

struct  ntp_fp
 
union  pps_timeu
 
struct  pps_info_t
 
struct  pps_info_ffc_t
 
struct  pps_params_t
 
struct  pps_fetch_args
 
struct  pps_fetch_ffc_args
 
struct  pps_kcbind_args
 

Macros

#define PPS_API_VERS_1   1
 
#define assert_timestamp   assert_tu.tspec
 
#define clear_timestamp   clear_tu.tspec
 
#define assert_timestamp_ntpfp   assert_tu.ntpfp
 
#define clear_timestamp_ntpfp   clear_tu.ntpfp
 
#define assert_offset   assert_off_tu.tspec
 
#define clear_offset   clear_off_tu.tspec
 
#define assert_offset_ntpfp   assert_off_tu.ntpfp
 
#define clear_offset_ntpfp   clear_off_tu.ntpfp
 
#define PPS_CAPTUREASSERT   0x01
 
#define PPS_CAPTURECLEAR   0x02
 
#define PPS_CAPTUREBOTH   0x03
 
#define PPS_OFFSETASSERT   0x10
 
#define PPS_OFFSETCLEAR   0x20
 
#define PPS_ECHOASSERT   0x40
 
#define PPS_ECHOCLEAR   0x80
 
#define PPS_CANWAIT   0x100
 
#define PPS_CANPOLL   0x200
 
#define PPS_TSFMT_TSPEC   0x1000
 
#define PPS_TSFMT_NTPFP   0x2000
 
#define PPS_TSCLK_FBCK   0x10000
 
#define PPS_TSCLK_FFWD   0x20000
 
#define PPS_TSCLK_MASK   0x30000
 
#define PPS_KC_HARDPPS   0
 
#define PPS_KC_HARDPPS_PLL   1
 
#define PPS_KC_HARDPPS_FLL   2
 
#define PPS_IOC_CREATE   _IO('1', 1)
 
#define PPS_IOC_DESTROY   _IO('1', 2)
 
#define PPS_IOC_SETPARAMS   _IOW('1', 3, pps_params_t)
 
#define PPS_IOC_GETPARAMS   _IOR('1', 4, pps_params_t)
 
#define PPS_IOC_GETCAP   _IOR('1', 5, int)
 
#define PPS_IOC_FETCH   _IOWR('1', 6, struct pps_fetch_args)
 
#define PPS_IOC_KCBIND   _IOW('1', 7, struct pps_kcbind_args)
 
#define PPS_IOC_FETCH_FFCOUNTER   _IOWR('1', 8, struct pps_fetch_ffc_args)
 

Typedefs

typedef int pps_handle_t
 
typedef unsigned pps_seq_t
 
typedef struct ntp_fp ntp_fp_t
 
typedef union pps_timeu pps_timeu_t
 

Detailed Description

This header file provides interfaces of the Pulse Per Second (PPS) support.