mbgtools-lx  4.2.8
Feature flags used with PCPS_FEATURES

Macros

#define PCPS_FEATURE_NAMES
 

Enumerations

enum  PCPS_FEATURE_BITS {
  PCPS_BIT_CAN_SET_TIME, PCPS_BIT_HAS_SERIAL, PCPS_BIT_HAS_SYNC_TIME, PCPS_BIT_HAS_TZDL,
  PCPS_BIT_HAS_IDENT, PCPS_BIT_HAS_UTC_OFFS, PCPS_BIT_HAS_HR_TIME, PCPS_BIT_HAS_SERNUM,
  PCPS_BIT_HAS_TZCODE, PCPS_BIT_HAS_CABLE_LEN, PCPS_BIT_HAS_EVENT_TIME, PCPS_BIT_HAS_RECEIVER_INFO,
  PCPS_BIT_CAN_CLR_UCAP_BUFF, PCPS_BIT_HAS_PCPS_TZDL, PCPS_BIT_HAS_UCAP, PCPS_BIT_HAS_IRIG_TX,
  PCPS_BIT_HAS_GPS_DATA_16, PCPS_BIT_HAS_SYNTH, PCPS_BIT_HAS_GENERIC_IO, PCPS_BIT_HAS_TIME_SCALE,
  PCPS_BIT_HAS_UTC_PARM, PCPS_BIT_HAS_IRIG_CTRL_BITS, PCPS_BIT_HAS_LAN_INTF, PCPS_BIT_HAS_PTP,
  PCPS_BIT_HAS_IRIG_TIME, PCPS_BIT_HAS_FAST_HR_TSTAMP, PCPS_BIT_HAS_RAW_IRIG_DATA, PCPS_BIT_HAS_PZF,
  PCPS_BIT_HAS_EVT_LOG, PCPS_BIT_IS_GNSS, N_PCPS_FEATURE_BITS
}
 Feature bits for bus-level devices. More...
 
#define PCPS_CAN_SET_TIME   ( 1UL << PCPS_BIT_CAN_SET_TIME )
 Feature bit masks for bus-level devices. More...
 
#define PCPS_HAS_SERIAL   ( 1UL << PCPS_BIT_HAS_SERIAL )
 see PCPS_BIT_HAS_SERIAL More...
 
#define PCPS_HAS_SYNC_TIME   ( 1UL << PCPS_BIT_HAS_SYNC_TIME )
 see PCPS_BIT_HAS_SYNC_TIME More...
 
#define PCPS_HAS_TZDL   ( 1UL << PCPS_BIT_HAS_TZDL )
 see PCPS_BIT_HAS_TZDL More...
 
#define PCPS_HAS_IDENT   ( 1UL << PCPS_BIT_HAS_IDENT )
 see PCPS_BIT_HAS_IDENT More...
 
#define PCPS_HAS_UTC_OFFS   ( 1UL << PCPS_BIT_HAS_UTC_OFFS )
 see PCPS_BIT_HAS_UTC_OFFS More...
 
#define PCPS_HAS_HR_TIME   ( 1UL << PCPS_BIT_HAS_HR_TIME )
 see PCPS_BIT_HAS_HR_TIME More...
 
#define PCPS_HAS_SERNUM   ( 1UL << PCPS_BIT_HAS_SERNUM )
 see PCPS_BIT_HAS_SERNUM More...
 
#define PCPS_HAS_TZCODE   ( 1UL << PCPS_BIT_HAS_TZCODE )
 see PCPS_BIT_HAS_TZCODE More...
 
#define PCPS_HAS_CABLE_LEN   ( 1UL << PCPS_BIT_HAS_CABLE_LEN )
 see PCPS_BIT_HAS_CABLE_LEN More...
 
#define PCPS_HAS_EVENT_TIME   ( 1UL << PCPS_BIT_HAS_EVENT_TIME )
 see PCPS_BIT_HAS_EVENT_TIME More...
 
#define PCPS_HAS_RECEIVER_INFO   ( 1UL << PCPS_BIT_HAS_RECEIVER_INFO )
 see PCPS_BIT_HAS_RECEIVER_INFO More...
 
#define PCPS_CAN_CLR_UCAP_BUFF   ( 1UL << PCPS_BIT_CAN_CLR_UCAP_BUFF )
 see PCPS_BIT_CAN_CLR_UCAP_BUFF More...
 
#define PCPS_HAS_PCPS_TZDL   ( 1UL << PCPS_BIT_HAS_PCPS_TZDL )
 see PCPS_BIT_HAS_PCPS_TZDL More...
 
#define PCPS_HAS_UCAP   ( 1UL << PCPS_BIT_HAS_UCAP )
 see PCPS_BIT_HAS_UCAP More...
 
#define PCPS_HAS_IRIG_TX   ( 1UL << PCPS_BIT_HAS_IRIG_TX )
 see PCPS_BIT_HAS_IRIG_TX More...
 
#define PCPS_HAS_GPS_DATA_16   ( 1UL << PCPS_BIT_HAS_GPS_DATA_16 )
 see PCPS_BIT_HAS_GPS_DATA_16 More...
 
#define PCPS_HAS_SYNTH   ( 1UL << PCPS_BIT_HAS_SYNTH )
 see PCPS_BIT_HAS_SYNTH More...
 
#define PCPS_HAS_GENERIC_IO   ( 1UL << PCPS_BIT_HAS_GENERIC_IO )
 see PCPS_BIT_HAS_GENERIC_IO More...
 
#define PCPS_HAS_TIME_SCALE   ( 1UL << PCPS_BIT_HAS_TIME_SCALE )
 see PCPS_BIT_HAS_TIME_SCALE More...
 
#define PCPS_HAS_UTC_PARM   ( 1UL << PCPS_BIT_HAS_UTC_PARM )
 see PCPS_BIT_HAS_UTC_PARM More...
 
#define PCPS_HAS_IRIG_CTRL_BITS   ( 1UL << PCPS_BIT_HAS_IRIG_CTRL_BITS )
 see PCPS_BIT_HAS_IRIG_CTRL_BITS More...
 
#define PCPS_HAS_LAN_INTF   ( 1UL << PCPS_BIT_HAS_LAN_INTF )
 see PCPS_BIT_HAS_LAN_INTF More...
 
#define PCPS_HAS_PTP   ( 1UL << PCPS_BIT_HAS_PTP )
 see PCPS_BIT_HAS_PTP More...
 
#define PCPS_HAS_IRIG_TIME   ( 1UL << PCPS_BIT_HAS_IRIG_TIME )
 see PCPS_BIT_HAS_IRIG_TIME More...
 
#define PCPS_HAS_FAST_HR_TSTAMP   ( 1UL << PCPS_BIT_HAS_FAST_HR_TSTAMP )
 see PCPS_BIT_HAS_FAST_HR_TSTAMP More...
 
#define PCPS_HAS_RAW_IRIG_DATA   ( 1UL << PCPS_BIT_HAS_RAW_IRIG_DATA )
 see PCPS_BIT_HAS_RAW_IRIG_DATA More...
 
#define PCPS_HAS_PZF   ( 1UL << PCPS_BIT_HAS_PZF )
 see PCPS_BIT_HAS_PZF More...
 
#define PCPS_HAS_EVT_LOG   ( 1UL << PCPS_BIT_HAS_EVT_LOG )
 see PCPS_BIT_HAS_EVT_LOG More...
 
#define PCPS_IS_GNSS   ( 1UL << PCPS_BIT_IS_GNSS )
 see PCPS_BIT_IS_GNSS More...
 

Detailed Description

Some features of the radio clocks have been introduced with specific firmware versions, so depending on the firmware version a clock may support a feature or not. The clock detection function checks the clock model and firmware version and updates the field PCPS_DEV_CFG::features accordingly. There are some macros which can easily be used to query whether a clock device actually supports a function, or not.

See also
PCPS_FEATURES

Macro Definition Documentation

◆ PCPS_CAN_CLR_UCAP_BUFF

#define PCPS_CAN_CLR_UCAP_BUFF   ( 1UL << PCPS_BIT_CAN_CLR_UCAP_BUFF )

see PCPS_BIT_CAN_CLR_UCAP_BUFF

Definition at line 720 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_CAN_SET_TIME

#define PCPS_CAN_SET_TIME   ( 1UL << PCPS_BIT_CAN_SET_TIME )

Feature bit masks for bus-level devices.

Used with PCPS_DEV_CFG::features

See also
PCPS_FEATURE_BITS
PCPS_FEATURES

see PCPS_BIT_CAN_SET_TIME

Definition at line 707 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_FEATURE_NAMES

#define PCPS_FEATURE_NAMES

Definition at line 744 of file pcpsdev.h.

◆ PCPS_HAS_CABLE_LEN

#define PCPS_HAS_CABLE_LEN   ( 1UL << PCPS_BIT_HAS_CABLE_LEN )

see PCPS_BIT_HAS_CABLE_LEN

Definition at line 717 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_EVENT_TIME

#define PCPS_HAS_EVENT_TIME   ( 1UL << PCPS_BIT_HAS_EVENT_TIME )

see PCPS_BIT_HAS_EVENT_TIME

Definition at line 718 of file pcpsdev.h.

Referenced by check_receiver_info_and_features().

◆ PCPS_HAS_EVT_LOG

#define PCPS_HAS_EVT_LOG   ( 1UL << PCPS_BIT_HAS_EVT_LOG )

see PCPS_BIT_HAS_EVT_LOG

Definition at line 738 of file pcpsdev.h.

◆ PCPS_HAS_FAST_HR_TSTAMP

#define PCPS_HAS_FAST_HR_TSTAMP   ( 1UL << PCPS_BIT_HAS_FAST_HR_TSTAMP )

see PCPS_BIT_HAS_FAST_HR_TSTAMP

Definition at line 735 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_GENERIC_IO

#define PCPS_HAS_GENERIC_IO   ( 1UL << PCPS_BIT_HAS_GENERIC_IO )

see PCPS_BIT_HAS_GENERIC_IO

Definition at line 727 of file pcpsdev.h.

◆ PCPS_HAS_GPS_DATA_16

#define PCPS_HAS_GPS_DATA_16   ( 1UL << PCPS_BIT_HAS_GPS_DATA_16 )

see PCPS_BIT_HAS_GPS_DATA_16

Definition at line 725 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_HR_TIME

#define PCPS_HAS_HR_TIME   ( 1UL << PCPS_BIT_HAS_HR_TIME )

see PCPS_BIT_HAS_HR_TIME

Definition at line 713 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_IDENT

#define PCPS_HAS_IDENT   ( 1UL << PCPS_BIT_HAS_IDENT )

see PCPS_BIT_HAS_IDENT

Definition at line 711 of file pcpsdev.h.

◆ PCPS_HAS_IRIG_CTRL_BITS

#define PCPS_HAS_IRIG_CTRL_BITS   ( 1UL << PCPS_BIT_HAS_IRIG_CTRL_BITS )

see PCPS_BIT_HAS_IRIG_CTRL_BITS

Definition at line 730 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_IRIG_TIME

#define PCPS_HAS_IRIG_TIME   ( 1UL << PCPS_BIT_HAS_IRIG_TIME )

see PCPS_BIT_HAS_IRIG_TIME

Definition at line 734 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_IRIG_TX

#define PCPS_HAS_IRIG_TX   ( 1UL << PCPS_BIT_HAS_IRIG_TX )

see PCPS_BIT_HAS_IRIG_TX

Definition at line 723 of file pcpsdev.h.

◆ PCPS_HAS_LAN_INTF

#define PCPS_HAS_LAN_INTF   ( 1UL << PCPS_BIT_HAS_LAN_INTF )

see PCPS_BIT_HAS_LAN_INTF

Definition at line 731 of file pcpsdev.h.

◆ PCPS_HAS_PCPS_TZDL

#define PCPS_HAS_PCPS_TZDL   ( 1UL << PCPS_BIT_HAS_PCPS_TZDL )

see PCPS_BIT_HAS_PCPS_TZDL

Definition at line 721 of file pcpsdev.h.

◆ PCPS_HAS_PTP

#define PCPS_HAS_PTP   ( 1UL << PCPS_BIT_HAS_PTP )

see PCPS_BIT_HAS_PTP

Definition at line 732 of file pcpsdev.h.

◆ PCPS_HAS_PZF

#define PCPS_HAS_PZF   ( 1UL << PCPS_BIT_HAS_PZF )

see PCPS_BIT_HAS_PZF

Definition at line 737 of file pcpsdev.h.

◆ PCPS_HAS_RAW_IRIG_DATA

#define PCPS_HAS_RAW_IRIG_DATA   ( 1UL << PCPS_BIT_HAS_RAW_IRIG_DATA )

see PCPS_BIT_HAS_RAW_IRIG_DATA

Definition at line 736 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_RECEIVER_INFO

#define PCPS_HAS_RECEIVER_INFO   ( 1UL << PCPS_BIT_HAS_RECEIVER_INFO )

see PCPS_BIT_HAS_RECEIVER_INFO

Definition at line 719 of file pcpsdev.h.

◆ PCPS_HAS_SERIAL

#define PCPS_HAS_SERIAL   ( 1UL << PCPS_BIT_HAS_SERIAL )

see PCPS_BIT_HAS_SERIAL

Definition at line 708 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_SERNUM

#define PCPS_HAS_SERNUM   ( 1UL << PCPS_BIT_HAS_SERNUM )

see PCPS_BIT_HAS_SERNUM

Definition at line 714 of file pcpsdev.h.

◆ PCPS_HAS_SYNC_TIME

#define PCPS_HAS_SYNC_TIME   ( 1UL << PCPS_BIT_HAS_SYNC_TIME )

see PCPS_BIT_HAS_SYNC_TIME

Definition at line 709 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_SYNTH

#define PCPS_HAS_SYNTH   ( 1UL << PCPS_BIT_HAS_SYNTH )

see PCPS_BIT_HAS_SYNTH

Definition at line 726 of file pcpsdev.h.

◆ PCPS_HAS_TIME_SCALE

#define PCPS_HAS_TIME_SCALE   ( 1UL << PCPS_BIT_HAS_TIME_SCALE )

see PCPS_BIT_HAS_TIME_SCALE

Definition at line 728 of file pcpsdev.h.

◆ PCPS_HAS_TZCODE

#define PCPS_HAS_TZCODE   ( 1UL << PCPS_BIT_HAS_TZCODE )

see PCPS_BIT_HAS_TZCODE

Definition at line 716 of file pcpsdev.h.

◆ PCPS_HAS_TZDL

#define PCPS_HAS_TZDL   ( 1UL << PCPS_BIT_HAS_TZDL )

see PCPS_BIT_HAS_TZDL

Definition at line 710 of file pcpsdev.h.

◆ PCPS_HAS_UCAP

#define PCPS_HAS_UCAP   ( 1UL << PCPS_BIT_HAS_UCAP )

see PCPS_BIT_HAS_UCAP

Definition at line 722 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_UTC_OFFS

#define PCPS_HAS_UTC_OFFS   ( 1UL << PCPS_BIT_HAS_UTC_OFFS )

see PCPS_BIT_HAS_UTC_OFFS

Definition at line 712 of file pcpsdev.h.

Referenced by pcps_probe_device().

◆ PCPS_HAS_UTC_PARM

#define PCPS_HAS_UTC_PARM   ( 1UL << PCPS_BIT_HAS_UTC_PARM )

see PCPS_BIT_HAS_UTC_PARM

Definition at line 729 of file pcpsdev.h.

◆ PCPS_IS_GNSS

#define PCPS_IS_GNSS   ( 1UL << PCPS_BIT_IS_GNSS )

see PCPS_BIT_IS_GNSS

Definition at line 739 of file pcpsdev.h.

Enumeration Type Documentation

◆ PCPS_FEATURE_BITS

Feature bits for bus-level devices.

See also
PCPS_FEATURE_MASKS
Enumerator
PCPS_BIT_CAN_SET_TIME 
PCPS_BIT_HAS_SERIAL 
PCPS_BIT_HAS_SYNC_TIME 
PCPS_BIT_HAS_TZDL 
PCPS_BIT_HAS_IDENT 
PCPS_BIT_HAS_UTC_OFFS 
PCPS_BIT_HAS_HR_TIME 
PCPS_BIT_HAS_SERNUM 
PCPS_BIT_HAS_TZCODE 
PCPS_BIT_HAS_CABLE_LEN 
PCPS_BIT_HAS_EVENT_TIME 
PCPS_BIT_HAS_RECEIVER_INFO 
PCPS_BIT_CAN_CLR_UCAP_BUFF 
PCPS_BIT_HAS_PCPS_TZDL 
PCPS_BIT_HAS_UCAP 
PCPS_BIT_HAS_IRIG_TX 
PCPS_BIT_HAS_GPS_DATA_16 
PCPS_BIT_HAS_SYNTH 
PCPS_BIT_HAS_GENERIC_IO 
PCPS_BIT_HAS_TIME_SCALE 
PCPS_BIT_HAS_UTC_PARM 
PCPS_BIT_HAS_IRIG_CTRL_BITS 
PCPS_BIT_HAS_LAN_INTF 
PCPS_BIT_HAS_PTP 
PCPS_BIT_HAS_IRIG_TIME 
PCPS_BIT_HAS_FAST_HR_TSTAMP 
PCPS_BIT_HAS_RAW_IRIG_DATA 
PCPS_BIT_HAS_PZF 
PCPS_BIT_HAS_EVT_LOG 
PCPS_BIT_IS_GNSS 
N_PCPS_FEATURE_BITS 

Definition at line 656 of file pcpsdev.h.