mbgtools-lx
4.2.8
|
Go to the source code of this file.
Data Structures | |
struct | PCPS_TIME_STAMP |
A high resolution time stamp. More... | |
struct | PCPS_TIME_STATUS_X_MASKS |
struct | PCPS_HR_TIME |
High resolution time including status and local time offset. More... | |
struct | PCPS_TIME |
Local calendar date and time, plus sync status. More... | |
struct | PCPS_STIME |
Date time and status used with the PCPS_SET_TIME command. More... | |
union | PCPS_TIME_UNION |
struct | PCPS_IRIG_TIME |
Raw IRIG time. More... | |
struct | PCPS_DL_ONOFF |
Daylight changeover specification. More... | |
struct | PCPS_TZDL |
Specification of a local time zone. More... | |
struct | PCPS_UCAP_ENTRIES |
Status of the time capture FIFO buffer. More... | |
struct | CORR_INFO |
PZF correlation status info. More... | |
Macros | |
#define | _USE_PCPSPRIV _IS_MBG_FIRMWARE |
#define | PCPS_REF_NAME_NONE_ENG "unknown" |
#define | PCPS_REF_NAME_NONE_GER "nicht bekannt" |
#define | PCPS_REF_NAME_DCF "DCF77" |
#define | PCPS_REF_NAME_GPS "GPS" |
#define | PCPS_REF_NAME_IRIG "IRIG" |
#define | PCPS_REF_NAME_MSF "MSF" |
#define | PCPS_REF_NAME_PTP "PTP" |
#define | PCPS_REF_NAME_FRC "FRC" |
#define | PCPS_REF_NAME_WWVB "WWVB" |
#define | PCPS_REF_NAME_JJY "JJY" |
#define | PCPS_REF_NAMES_ENG |
Initializer for an array of English reference type names. More... | |
#define | PCPS_REF_NAMES_LSTR |
Initializer for a multi-language array of reference type names. More... | |
#define | PCI_VENDOR_MEINBERG 0x1360 |
Meinberg PCI vendor ID (assigned by the PCI SIG) More... | |
#define | MBG_PCPS_FMT_STATUS |
#define | MBG_CMD_TABLE_EXT _mbg_cn_table_end() |
#define | PCPS_CMD_CODES_TABLE |
An initializer for a table of code/name entries of non-GPS commands. More... | |
#define | BITMASK(b) ( ( 1 << b ) - 1 ) |
#define | PCPS_FIFO_SIZE 16 |
The size of a bus level device's command/data FIFO. More... | |
#define | PCPS_ID_SIZE ( 2 * PCPS_FIFO_SIZE + 1 ) |
The maximum length of an ID string, including terminating 0. More... | |
#define | PCPS_SN_SIZE ( PCPS_FIFO_SIZE + 1 ) |
The maximum length of a serial number string, including terminating 0. More... | |
#define | _mbg_swab_pcps_seconds(_p) |
#define | _mbg_swab_pcps_frac_32(_p) |
#define | _mbg_swab_pcps_time_stamp(_p) |
#define | PCPS_HRT_FRAC_SCALE 10000000UL |
Scale to be used to print PCPS_TIME_STAMP::frac values. More... | |
#define | PCPS_HRT_FRAC_SCALE_FMT "%07lu" |
Format specifier used to print PCPS_TIME_STAMP::frac values. More... | |
#define | _mbg_swab_pcps_time_status_x(_p) _mbg_swab16( _p ) |
#define | _mbg_swab_pcps_time_status_x_masks(_p) |
#define | _mbg_swab_pcps_hr_time(_p) |
#define | sizeof_PCPS_TIME sizeof( PCPS_TIME ) |
#define | sizeof_PCPS_STIME sizeof( PCPS_STIME ) |
#define | _mbg_swab_pcps_irig_time(_p) |
#define | IRIG_TIME_UNKNOWN_YEAR 0xFF |
A constant representing a 2 digit unknown IRIG year number. More... | |
#define | PCPS_TZCODE_MEZMESZ PCPS_TZCODE_CET_CEST |
#define | PCPS_TZCODE_MEZ PCPS_TZCODE_CET |
#define | PCPS_TZCODE_OEZ PCPS_TZCODE_EET_EEST |
#define | _mbg_swab_pcps_dl_onoff(_p) |
#define | DL_AUTO_FLAG 0x8000 |
A flag indicating if DST changeovers are to be computed automatically. More... | |
#define | _mbg_swab_pcps_tzdl(_p) |
#define | _mbg_swab_pcps_ucap_entries(_p) |
#define | _mbg_swab_tr_distance(_p) _mbg_swab16( _p ) |
#define | _mbg_swab_corr_info(_p) _nop_macro_fnc() |
#define | PZF_CORR_STATE_NAME_RAW_ENG "Searching" |
#define | PZF_CORR_STATE_NAME_CHECK_ENG "Correlating" |
#define | PZF_CORR_STATE_NAME_FINE_ENG "Locked" |
#define | PZF_CORR_STATE_NAME_RAW_GER "suchen" |
#define | PZF_CORR_STATE_NAME_CHECK_GER "korrelieren" |
#define | PZF_CORR_STATE_NAME_FINE_GER "eingerastet" |
#define | PZF_CORR_STATE_NAMES_ENG |
#define | PZF_CORR_STATE_NAMES_LSTR |
#define | PC_GPS_CMD_CODES_TABLE |
An initializer for a table of code/name entries of GPS commands. More... | |
#define | PCI_DEV_PCI32 ( ( PCPS_REF_DCF << 8 ) | 0x01 ) |
PCI device IDs assigned by Meinberg. More... | |
#define | PCI_DEV_PCI509 ( ( PCPS_REF_DCF << 8 ) | 0x02 ) |
#define | PCI_DEV_PCI510 ( ( PCPS_REF_DCF << 8 ) | 0x03 ) |
#define | PCI_DEV_PCI511 ( ( PCPS_REF_DCF << 8 ) | 0x04 ) |
#define | PCI_DEV_PEX511 ( ( PCPS_REF_DCF << 8 ) | 0x05 ) |
#define | PCI_DEV_PZF180PEX ( ( PCPS_REF_DCF << 8 ) | 0x06 ) |
#define | PCI_DEV_GPS167PCI ( ( PCPS_REF_GPS << 8 ) | 0x01 ) |
#define | PCI_DEV_GPS168PCI ( ( PCPS_REF_GPS << 8 ) | 0x02 ) |
#define | PCI_DEV_GPS169PCI ( ( PCPS_REF_GPS << 8 ) | 0x03 ) |
#define | PCI_DEV_GPS170PCI ( ( PCPS_REF_GPS << 8 ) | 0x04 ) |
#define | PCI_DEV_GPS170PEX ( ( PCPS_REF_GPS << 8 ) | 0x05 ) |
#define | PCI_DEV_GPS180PEX ( ( PCPS_REF_GPS << 8 ) | 0x06 ) |
#define | PCI_DEV_GLN180PEX ( ( PCPS_REF_GPS << 8 ) | 0x07 ) |
#define | PCI_DEV_GPS180AMC ( ( PCPS_REF_GPS << 8 ) | 0x08 ) |
#define | PCI_DEV_GNS181PEX ( ( PCPS_REF_GPS << 8 ) | 0x09 ) |
#define | PCI_DEV_TCR510PCI ( ( PCPS_REF_IRIG << 8 ) | 0x01 ) |
#define | PCI_DEV_TCR167PCI ( ( PCPS_REF_IRIG << 8 ) | 0x02 ) |
#define | PCI_DEV_TCR511PCI ( ( PCPS_REF_IRIG << 8 ) | 0x03 ) |
#define | PCI_DEV_TCR511PEX ( ( PCPS_REF_IRIG << 8 ) | 0x04 ) |
#define | PCI_DEV_TCR170PEX ( ( PCPS_REF_IRIG << 8 ) | 0x05 ) |
#define | PCI_DEV_TCR180PEX ( ( PCPS_REF_IRIG << 8 ) | 0x06 ) |
#define | PCI_DEV_PTP270PEX ( ( PCPS_REF_PTP << 8 ) | 0x01 ) |
#define | PCI_DEV_FRC511PEX ( ( PCPS_REF_FRC << 8 ) | 0x01 ) |
#define | PCPS_ST_BUSY 0x01 |
Bit masks used with PCPS_STATUS_PORT. More... | |
#define | PCPS_ST_IRQF 0x02 |
the clock has generated an IRQ on the PC bus (ISA cards only) More... | |
#define | PCPS_ST_MOD 0x20 |
the raw demodulated DCF77 signal More... | |
#define | PCPS_ST_SEC 0x40 |
seconds have changed since last reading More... | |
#define | PCPS_ST_MIN 0x80 |
minutes have changed since last reading More... | |
#define | PCPS_GIVE_TIME 0x00 |
Command codes used to communicate with bus level devices. More... | |
#define | PCPS_GIVE_TIME_NOCLEAR 0x01 |
(r-) Read current time in PCPS_TIME format, don't clear sec and min flags (deprecated) More... | |
#define | PCPS_GIVE_SYNC_TIME 0x02 |
(r-) Read last sync time as PCPS_TIME, only if _pcps_has_sync_time More... | |
#define | PCPS_GIVE_HR_TIME 0x03 |
(r-) Read high res. time as PCPS_HR_TIME, only if _pcps_has_hr_time More... | |
#define | PCPS_GIVE_IRIG_TIME 0x04 |
(r-) Read raw IRIG time as PCPS_IRIG_TIME, only if _pcps_has_irig_time More... | |
#define | PCPS_SET_TIME 0x10 |
(-w) Set on-board time, see PCPS_STIME. Returns MBG_ERR_STIME on error. More... | |
#define | PCPS_SET_EVENT_TIME 0x14 |
(-w) Write event time as PCPS_TIME_STAMP, only if _pcps_has_event_time More... | |
#define | PCPS_IRQ_NONE 0x20 |
(-w) Disable IRQs More... | |
#define | PCPS_IRQ_1_SEC 0x21 |
(-w) Enable IRQ per 1 second More... | |
#define | PCPS_IRQ_1_MIN 0x22 |
(-w) Enable IRQ per 1 minute (deprecated) More... | |
#define | PCPS_IRQ_10_MIN 0x24 |
(-w) Enable IRQ per 10 minutes (deprecated) More... | |
#define | PCPS_IRQ_30_MIN 0x28 |
(-w) Enable IRQ per 10 minutes (deprecated) More... | |
#define | PCPS_GET_SERIAL 0x30 |
(r-) Read serial settings as PCPS_SERIAL, deprecated by PC_GPS_ALL_PORT_INFO More... | |
#define | PCPS_SET_SERIAL 0x31 |
(-w) Write serial settings as PCPS_SERIAL, deprecated by PC_GPS_PORT_SETTINGS_IDX, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_TZCODE 0x32 |
(r-) Read PCPS_TZCODE, only if _pcps_has_tzcode More... | |
#define | PCPS_SET_TZCODE 0x33 |
(-w) Write PCPS_TZCODE, only if _pcps_has_tzcode, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_PCPS_TZDL 0x34 |
(r-) Read PCPS_TZDL, only if _pcps_has_pcps_tzdl More... | |
#define | PCPS_SET_PCPS_TZDL 0x35 |
(-w) Write PCPS_TZDL, only if _pcps_has_pcps_tzdl, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_REF_OFFS 0x36 |
(r-) Read MBG_REF_OFFS, only if _pcps_has_ref_offs More... | |
#define | PCPS_SET_REF_OFFS 0x37 |
(-w) Write MBG_REF_OFFS, only if _pcps_has_ref_offs, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_OPT_INFO 0x38 |
(r-) Read MBG_OPT_INFO, only if _pcps_has_opt_flags More... | |
#define | PCPS_SET_OPT_SETTINGS 0x39 |
(-w) Write MBG_OPT_SETTINGS, only if _pcps_has_opt_flags, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_IRIG_RX_INFO 0x3A |
(r-) Read IRIG_INFO, only if _pcps_is_irig_rx More... | |
#define | PCPS_SET_IRIG_RX_SETTINGS 0x3B |
(-w) Write IRIG_SETTINGS, only if _pcps_is_irig_rx, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_IRIG_TX_INFO 0x3C |
(r-) Read IRIG_INFO, only if _pcps_has_irig_tx More... | |
#define | PCPS_SET_IRIG_TX_SETTINGS 0x3D |
(-w) Write IRIG_SETTINGS, only if _pcps_has_irig_tx, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GET_SYNTH 0x3E |
(r-) Read SYNTH, only if _pcps_has_synth More... | |
#define | PCPS_SET_SYNTH 0x3F |
(-w) Write SYNTH, only if _pcps_has_synth, returns MBG_ERR_CFG on error More... | |
#define | PCPS_GIVE_FW_ID_1 0x40 |
(r-) Read first PCPS_FIFO_SIZE chars of firmware ID More... | |
#define | PCPS_GIVE_FW_ID_2 0x41 |
(r-) Read last PCPS_FIFO_SIZE chars of firmware ID More... | |
#define | PCPS_GIVE_SERNUM 0x42 |
(r-) Read serial number as PCPS_SN_STR, only if _pcps_has_sernum More... | |
#define | PCPS_GENERIC_IO 0x43 |
(rw) See pcps_generic_io or _mbgdevio_gen_io More... | |
#define | PCPS_GET_SYNTH_STATE 0x44 |
(r-) Read SYNTH_STATE, only if _pcps_has_synth More... | |
#define | PCPS_GET_IRIG_CTRL_BITS 0x45 |
(r-) Read MBG_IRIG_CTRL_BITS, only if _pcps_has_irig_ctrl_bits More... | |
#define | PCPS_GET_RAW_IRIG_DATA 0x46 |
(r-) Read MBG_RAW_IRIG_DATA, only if _pcps_has_raw_irig_data More... | |
#define | PCPS_GET_STATUS_PORT 0x4B |
(r-) Read PCPS_STATUS_PORT More... | |
#define | PCPS_GET_DEBUG_STATUS 0x4C |
(r-) Read MBG_DEBUG_STATUS, only if _pcps_has_debug_status More... | |
#define | PCPS_READ_GPS_DATA 0x50 |
(r-) Read large data structure, see PC_GPS_CMD_CODES More... | |
#define | PCPS_WRITE_GPS_DATA 0x51 |
(-w) Write large data structure, see PC_GPS_CMD_CODES More... | |
#define | PCPS_CLR_UCAP_BUFF 0x60 |
(-w) No param., clear on-board capture FIFO, only if _pcps_has_ucap More... | |
#define | PCPS_GIVE_UCAP_ENTRIES 0x61 |
(r-) Read PCPS_UCAP_ENTRIES, only if _pcps_has_ucap More... | |
#define | PCPS_GIVE_UCAP_EVENT 0x62 |
(r-) Return oldest event as PCPS_HR_TIME, only if _pcps_has_ucap More... | |
#define | PCPS_GET_CORR_INFO 0x63 |
(r-) Read CORR_INFO structure, only if _pcps_has_pzf More... | |
#define | PCPS_GET_TR_DISTANCE 0x64 |
(r-) Read TR_DISTANCE, only if _pcps_has_tr_distance More... | |
#define | PCPS_SET_TR_DISTANCE 0x65 |
(-w) Write TR_DISTANCE, only if _pcps_has_tr_distance More... | |
#define | PCPS_CLR_EVT_LOG 0x66 |
(-w) Write clear on-board event log, only if _pcps_has_evt_log More... | |
#define | PCPS_NUM_EVT_LOG_ENTRIES 0x67 |
(r-) Read MBG_NUM_EVT_LOG_ENTRIES, only if _pcps_has_evt_log More... | |
#define | PCPS_FIRST_EVT_LOG_ENTRY 0x68 |
(r-) Read first (oldest) MBG_EVT_LOG_ENTRY, only if _pcps_has_evt_log More... | |
#define | PCPS_NEXT_EVT_LOG_ENTRY 0x69 |
(r-) Read next MBG_EVT_LOG_ENTRY, only if _pcps_has_evt_log More... | |
#define | PCPS_FORCE_RESET 0x80 |
(-w) No param., reset the device (deprecated, this can lock up the computer!!) More... | |
#define | PCPS_SUCCESS 0 |
Bus level command return codes. More... | |
#define | PCPS_ERR_STIME -1 |
invalid date/time/status passed (see MBG_ERR_STIME) More... | |
#define | PCPS_ERR_CFG -2 |
invalid parms for a cmd writing config parameters (see MBG_ERR_CFG) More... | |
Typedefs | |
typedef uint8_t | PCPS_STATUS_PORT |
Type of the status register port. More... | |
typedef int8_t | PCPS_BUFF[16] |
A data buffer for a bus level device's command/data. More... | |
typedef char | PCPS_ID_STR[(2 *16+1)] |
A buffer for an ID string, including terminating 0. More... | |
typedef char | PCPS_SN_STR[(16+1)] |
A buffer for a serial number string, including terminating 0. More... | |
typedef uint32_t | PCPS_SECONDS |
Seconds since epoch 1970-01-01, usually UTC scale. More... | |
typedef uint32_t | PCPS_FRAC_32 |
32 bit binary fraction of a second More... | |
typedef uint16_t | PCPS_TIME_STATUS_X |
Extended status code. More... | |
typedef uint8_t | PCPS_TIME_STATUS |
Time synchronization status. More... | |
typedef uint8_t | PCPS_TZCODE |
Type of variable to hold a TZ code. More... | |
typedef uint16_t | TR_DISTANCE |
Receiver distance from transmitter [km]. More... | |
typedef uint16_t | PCPS_CMD_INFO |
A type used to store an unambiguous command code. More... | |
#define _mbg_swab_pcps_dl_onoff | ( | _p | ) |
Definition at line 1471 of file pcpsdefs.h.
#define _mbg_swab_pcps_frac_32 | ( | _p | ) |
Definition at line 961 of file pcpsdefs.h.
#define _mbg_swab_pcps_hr_time | ( | _p | ) |
Definition at line 1094 of file pcpsdefs.h.
Referenced by mbg_get_hr_time(), mbg_get_ucap_event(), and mbgclock_default_get_ucap_event().
#define _mbg_swab_pcps_irig_time | ( | _p | ) |
Definition at line 1223 of file pcpsdefs.h.
Referenced by mbg_get_irig_time().
#define _mbg_swab_pcps_seconds | ( | _p | ) |
Definition at line 938 of file pcpsdefs.h.
#define _mbg_swab_pcps_time_stamp | ( | _p | ) |
Definition at line 979 of file pcpsdefs.h.
Referenced by mbg_set_event_time(), and mbgclock_default_get_fast_hr_timestamp().
#define _mbg_swab_pcps_time_status_x | ( | _p | ) | _mbg_swab16( _p ) |
Definition at line 1024 of file pcpsdefs.h.
#define _mbg_swab_pcps_time_status_x_masks | ( | _p | ) |
Definition at line 1034 of file pcpsdefs.h.
#define _mbg_swab_pcps_tzdl | ( | _p | ) |
Definition at line 1513 of file pcpsdefs.h.
Referenced by mbg_get_pcps_tzdl(), and mbg_set_pcps_tzdl().
#define _mbg_swab_pcps_ucap_entries | ( | _p | ) |
Definition at line 1536 of file pcpsdefs.h.
Referenced by mbg_get_ucap_entries(), and mbgclock_default_get_ucap_entries().
#define _USE_PCPSPRIV _IS_MBG_FIRMWARE |
Definition at line 273 of file pcpsdefs.h.
#define BITMASK | ( | b | ) | ( ( 1 << b ) - 1 ) |
Definition at line 903 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define DL_AUTO_FLAG 0x8000 |
A flag indicating if DST changeovers are to be computed automatically.
If PCPS_DL_ONOFF::year_or_wday is or'ed with the constant DL_AUTO_FLAG then start and end of daylight saving time shall be computed automatically for each year. In this case the remaining bits represent the day-of-week after the specified mday/month at which the change shall occur. If that flag is not set then the field contains the full four-digit year number and the PCPS_DL_ONOFF::mday and PCPS_DL_ONOFF::month values specify the exact date of that year. Most devices supporting conversion to local time support the TZDL structure instead.
Definition at line 1492 of file pcpsdefs.h.
#define IRIG_TIME_UNKNOWN_YEAR 0xFF |
A constant representing a 2 digit unknown IRIG year number.
Used with PCPS_IRIG_TIME::year
Definition at line 1238 of file pcpsdefs.h.
#define MBG_CMD_TABLE_EXT _mbg_cn_table_end() |
Definition at line 817 of file pcpsdefs.h.
#define MBG_PCPS_FMT_STATUS |
A format string to be used with snprintb() which is available on some Unix systems to print information held in a bit coded variable.
Definition at line 467 of file pcpsdefs.h.
#define PC_GPS_CMD_CODES_TABLE |
An initializer for a table of code/name entries of GPS commands.
This can e.g. be assigned to an array of MBG_CODE_NAME_TABLE_ENTRY elements and may be helpful when debugging.
Definition at line 1703 of file pcpsdefs.h.
#define PCI_DEV_FRC511PEX ( ( PCPS_REF_FRC << 8 ) | 0x01 ) |
Definition at line 410 of file pcpsdefs.h.
#define PCI_DEV_GLN180PEX ( ( PCPS_REF_GPS << 8 ) | 0x07 ) |
Definition at line 397 of file pcpsdefs.h.
#define PCI_DEV_GNS181PEX ( ( PCPS_REF_GPS << 8 ) | 0x09 ) |
Definition at line 399 of file pcpsdefs.h.
#define PCI_DEV_GPS167PCI ( ( PCPS_REF_GPS << 8 ) | 0x01 ) |
Definition at line 391 of file pcpsdefs.h.
#define PCI_DEV_GPS168PCI ( ( PCPS_REF_GPS << 8 ) | 0x02 ) |
Definition at line 392 of file pcpsdefs.h.
#define PCI_DEV_GPS169PCI ( ( PCPS_REF_GPS << 8 ) | 0x03 ) |
Definition at line 393 of file pcpsdefs.h.
#define PCI_DEV_GPS170PCI ( ( PCPS_REF_GPS << 8 ) | 0x04 ) |
Definition at line 394 of file pcpsdefs.h.
#define PCI_DEV_GPS170PEX ( ( PCPS_REF_GPS << 8 ) | 0x05 ) |
Definition at line 395 of file pcpsdefs.h.
#define PCI_DEV_GPS180AMC ( ( PCPS_REF_GPS << 8 ) | 0x08 ) |
Definition at line 398 of file pcpsdefs.h.
#define PCI_DEV_GPS180PEX ( ( PCPS_REF_GPS << 8 ) | 0x06 ) |
Definition at line 396 of file pcpsdefs.h.
#define PCI_DEV_PCI32 ( ( PCPS_REF_DCF << 8 ) | 0x01 ) |
PCI device IDs assigned by Meinberg.
High byte: type of ref time source, see PCPS_REF_TYPES Low Byte: enumeration of device types
Definition at line 384 of file pcpsdefs.h.
#define PCI_DEV_PCI509 ( ( PCPS_REF_DCF << 8 ) | 0x02 ) |
Definition at line 385 of file pcpsdefs.h.
#define PCI_DEV_PCI510 ( ( PCPS_REF_DCF << 8 ) | 0x03 ) |
Definition at line 386 of file pcpsdefs.h.
#define PCI_DEV_PCI511 ( ( PCPS_REF_DCF << 8 ) | 0x04 ) |
Definition at line 387 of file pcpsdefs.h.
#define PCI_DEV_PEX511 ( ( PCPS_REF_DCF << 8 ) | 0x05 ) |
Definition at line 388 of file pcpsdefs.h.
#define PCI_DEV_PTP270PEX ( ( PCPS_REF_PTP << 8 ) | 0x01 ) |
Definition at line 408 of file pcpsdefs.h.
Referenced by pcps_ddev_is_ptp270pex().
#define PCI_DEV_PZF180PEX ( ( PCPS_REF_DCF << 8 ) | 0x06 ) |
Definition at line 389 of file pcpsdefs.h.
#define PCI_DEV_TCR167PCI ( ( PCPS_REF_IRIG << 8 ) | 0x02 ) |
Definition at line 402 of file pcpsdefs.h.
#define PCI_DEV_TCR170PEX ( ( PCPS_REF_IRIG << 8 ) | 0x05 ) |
Definition at line 405 of file pcpsdefs.h.
#define PCI_DEV_TCR180PEX ( ( PCPS_REF_IRIG << 8 ) | 0x06 ) |
Definition at line 406 of file pcpsdefs.h.
#define PCI_DEV_TCR510PCI ( ( PCPS_REF_IRIG << 8 ) | 0x01 ) |
Definition at line 401 of file pcpsdefs.h.
#define PCI_DEV_TCR511PCI ( ( PCPS_REF_IRIG << 8 ) | 0x03 ) |
Definition at line 403 of file pcpsdefs.h.
#define PCI_DEV_TCR511PEX ( ( PCPS_REF_IRIG << 8 ) | 0x04 ) |
Definition at line 404 of file pcpsdefs.h.
#define PCI_VENDOR_MEINBERG 0x1360 |
Meinberg PCI vendor ID (assigned by the PCI SIG)
Definition at line 371 of file pcpsdefs.h.
#define PCPS_BD_BITS 4 |
field with in the cfg byte
Definition at line 1367 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define PCPS_BD_SHIFT 0 |
num of bits to shift left
Definition at line 1368 of file pcpsdefs.h.
#define PCPS_CLR_EVT_LOG 0x66 |
(-w) Write clear on-board event log, only if _pcps_has_evt_log
Definition at line 776 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_clr_evt_log().
#define PCPS_CLR_UCAP_BUFF 0x60 |
(-w) No param., clear on-board capture FIFO, only if _pcps_has_ucap
Definition at line 768 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_clr_ucap_buff(), and mbgclock_default_clr_ucap_buff().
#define PCPS_CMD_CODES_TABLE |
An initializer for a table of code/name entries of non-GPS commands.
This can e.g. initialize an array of MBG_CODE_NAME_TABLE_ENTRY elements and may be helpful when debugging.
Definition at line 828 of file pcpsdefs.h.
#define PCPS_ERR_CFG -2 |
invalid parms for a cmd writing config parameters (see MBG_ERR_CFG)
Definition at line 896 of file pcpsdefs.h.
#define PCPS_ERR_STIME -1 |
invalid date/time/status passed (see MBG_ERR_STIME)
Definition at line 895 of file pcpsdefs.h.
#define PCPS_FIFO_SIZE 16 |
The size of a bus level device's command/data FIFO.
Definition at line 908 of file pcpsdefs.h.
Referenced by pcps_generic_io(), pcps_get_fw_id(), pcps_read_gps(), and pcps_read_gps_block().
#define PCPS_FIRST_EVT_LOG_ENTRY 0x68 |
(r-) Read first (oldest) MBG_EVT_LOG_ENTRY, only if _pcps_has_evt_log
Definition at line 778 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_first_evt_log_entry().
#define PCPS_FORCE_RESET 0x80 |
(-w) No param., reset the device (deprecated, this can lock up the computer!!)
Definition at line 781 of file pcpsdefs.h.
#define PCPS_FR_BITS 2 |
field with in the cfg byte
Definition at line 1392 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define PCPS_FR_SHIFT PCPS_BD_BITS |
num of bits to shift left
Definition at line 1393 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define PCPS_GENERIC_IO 0x43 |
(rw) See pcps_generic_io or _mbgdevio_gen_io
Definition at line 755 of file pcpsdefs.h.
Referenced by pcps_generic_io().
#define PCPS_GET_CORR_INFO 0x63 |
(r-) Read CORR_INFO structure, only if _pcps_has_pzf
Definition at line 772 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_corr_info().
#define PCPS_GET_DEBUG_STATUS 0x4C |
(r-) Read MBG_DEBUG_STATUS, only if _pcps_has_debug_status
Definition at line 761 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_debug_status().
#define PCPS_GET_IRIG_CTRL_BITS 0x45 |
(r-) Read MBG_IRIG_CTRL_BITS, only if _pcps_has_irig_ctrl_bits
Definition at line 757 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_irig_ctrl_bits().
#define PCPS_GET_IRIG_RX_INFO 0x3A |
(r-) Read IRIG_INFO, only if _pcps_is_irig_rx
Definition at line 743 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_get_irig_rx_info(), and mbg_get_irig_tx_info().
#define PCPS_GET_IRIG_TX_INFO 0x3C |
(r-) Read IRIG_INFO, only if _pcps_has_irig_tx
Definition at line 746 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_irig_tx_info().
#define PCPS_GET_OPT_INFO 0x38 |
(r-) Read MBG_OPT_INFO, only if _pcps_has_opt_flags
Definition at line 740 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_opt_info().
#define PCPS_GET_PCPS_TZDL 0x34 |
(r-) Read PCPS_TZDL, only if _pcps_has_pcps_tzdl
Definition at line 734 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_pcps_tzdl().
#define PCPS_GET_RAW_IRIG_DATA 0x46 |
(r-) Read MBG_RAW_IRIG_DATA, only if _pcps_has_raw_irig_data
Definition at line 758 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_raw_irig_data().
#define PCPS_GET_REF_OFFS 0x36 |
(r-) Read MBG_REF_OFFS, only if _pcps_has_ref_offs
Definition at line 737 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_ref_offs().
#define PCPS_GET_SERIAL 0x30 |
(r-) Read serial settings as PCPS_SERIAL, deprecated by PC_GPS_ALL_PORT_INFO
Definition at line 728 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_serial().
#define PCPS_GET_STATUS_PORT 0x4B |
#define PCPS_GET_SYNTH 0x3E |
(r-) Read SYNTH, only if _pcps_has_synth
Definition at line 749 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_synth().
#define PCPS_GET_SYNTH_STATE 0x44 |
(r-) Read SYNTH_STATE, only if _pcps_has_synth
Definition at line 756 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_synth_state().
#define PCPS_GET_TR_DISTANCE 0x64 |
(r-) Read TR_DISTANCE, only if _pcps_has_tr_distance
Definition at line 773 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_tr_distance().
#define PCPS_GET_TZCODE 0x32 |
(r-) Read PCPS_TZCODE, only if _pcps_has_tzcode
Definition at line 731 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_tzcode().
#define PCPS_GIVE_FW_ID_1 0x40 |
(r-) Read first PCPS_FIFO_SIZE chars of firmware ID
Definition at line 752 of file pcpsdefs.h.
Referenced by pcps_get_fw_id().
#define PCPS_GIVE_FW_ID_2 0x41 |
(r-) Read last PCPS_FIFO_SIZE chars of firmware ID
Definition at line 753 of file pcpsdefs.h.
Referenced by pcps_get_fw_id().
#define PCPS_GIVE_HR_TIME 0x03 |
(r-) Read high res. time as PCPS_HR_TIME, only if _pcps_has_hr_time
Definition at line 715 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_get_hr_time(), mbg_get_hr_time_cycles(), and report_ret_val().
#define PCPS_GIVE_IRIG_TIME 0x04 |
(r-) Read raw IRIG time as PCPS_IRIG_TIME, only if _pcps_has_irig_time
Definition at line 716 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_irig_time().
#define PCPS_GIVE_SERNUM 0x42 |
(r-) Read serial number as PCPS_SN_STR, only if _pcps_has_sernum
Definition at line 754 of file pcpsdefs.h.
Referenced by setup_sernum_and_receiver_info().
#define PCPS_GIVE_SYNC_TIME 0x02 |
(r-) Read last sync time as PCPS_TIME, only if _pcps_has_sync_time
Definition at line 714 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_sync_time().
#define PCPS_GIVE_TIME 0x00 |
Command codes used to communicate with bus level devices.
These commands are used for low level access to bus-level devices manufactured by Meinberg.
Applications should instead use the API functions declared in mbgdevio.h.
The header files pcpsdev.h and pcpsdrvr.h contain macros which can be used to check if a detected device supports a certain feature or command. If checking is required then the name of the macro is given in the comments associated with the command codes.
Some commands expect parameters to be passed to the board. In that case, the board returns the number of parameter bytes expected when the command code is passed. Every parameter byte has to be supplied to the board exactly like a command byte.
Refer to function pcps_write and the macro _pcps_write_var for details.
(r-) Read current time in PCPS_TIME format
Definition at line 712 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_get_time(), mbg_get_time_cycles(), mbgclock_irq_handler(), and pcps_probe_device().
#define PCPS_GIVE_TIME_NOCLEAR 0x01 |
(r-) Read current time in PCPS_TIME format, don't clear sec and min flags (deprecated)
Definition at line 713 of file pcpsdefs.h.
Referenced by ioctl_switch().
#define PCPS_GIVE_UCAP_ENTRIES 0x61 |
(r-) Read PCPS_UCAP_ENTRIES, only if _pcps_has_ucap
Definition at line 769 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_get_ucap_entries(), and mbgclock_default_get_ucap_entries().
#define PCPS_GIVE_UCAP_EVENT 0x62 |
(r-) Return oldest event as PCPS_HR_TIME, only if _pcps_has_ucap
Definition at line 770 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_get_ucap_event(), and mbgclock_default_get_ucap_event().
#define PCPS_HRT_FRAC_SCALE 10000000UL |
Scale to be used to print PCPS_TIME_STAMP::frac values.
The function bin_frac_32_to_dec_frac can be used for the conversion.
Definition at line 996 of file pcpsdefs.h.
Referenced by mbg_snprint_hr_tstamp(), and mbg_str_pcps_hr_time_frac().
#define PCPS_HRT_FRAC_SCALE_FMT "%07lu" |
Format specifier used to print PCPS_TIME_STAMP::frac values.
Used to print values scaled with bin_frac_32_to_dec_frac called with PCPS_HRT_FRAC_SCALE.
Definition at line 1008 of file pcpsdefs.h.
Referenced by mbg_snprint_hr_tstamp(), and mbg_str_pcps_hr_time_frac().
#define PCPS_ID_SIZE ( 2 * PCPS_FIFO_SIZE + 1 ) |
The maximum length of an ID string, including terminating 0.
ASCIIZ string
Definition at line 915 of file pcpsdefs.h.
Referenced by pcps_get_fw_id().
#define PCPS_IRQ_10_MIN 0x24 |
(-w) Enable IRQ per 10 minutes (deprecated)
Definition at line 725 of file pcpsdefs.h.
#define PCPS_IRQ_1_MIN 0x22 |
(-w) Enable IRQ per 1 minute (deprecated)
Definition at line 724 of file pcpsdefs.h.
#define PCPS_IRQ_1_SEC 0x21 |
(-w) Enable IRQ per 1 second
Definition at line 723 of file pcpsdefs.h.
Referenced by mbgdrvr_enable_cyclic().
#define PCPS_IRQ_30_MIN 0x28 |
(-w) Enable IRQ per 10 minutes (deprecated)
Definition at line 726 of file pcpsdefs.h.
#define PCPS_IRQ_NONE 0x20 |
(-w) Disable IRQs
Definition at line 722 of file pcpsdefs.h.
Referenced by mbgdrvr_disable_cyclic().
#define PCPS_MOD_BITS 2 |
field with in the cfg byte
Definition at line 1416 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define PCPS_MOD_SHIFT ( PCPS_BD_BITS + PCPS_FR_BITS ) |
num of bits to shift left
Definition at line 1417 of file pcpsdefs.h.
Referenced by pcps_pack_serial(), and pcps_unpack_serial().
#define PCPS_NEXT_EVT_LOG_ENTRY 0x69 |
(r-) Read next MBG_EVT_LOG_ENTRY, only if _pcps_has_evt_log
Definition at line 779 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_next_evt_log_entry().
#define PCPS_NUM_EVT_LOG_ENTRIES 0x67 |
(r-) Read MBG_NUM_EVT_LOG_ENTRIES, only if _pcps_has_evt_log
Definition at line 777 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_get_num_evt_log_entries().
#define PCPS_READ_GPS_DATA 0x50 |
(r-) Read large data structure, see PC_GPS_CMD_CODES
Definition at line 765 of file pcpsdefs.h.
Referenced by pcps_read_gps_block(), and report_ret_val().
#define PCPS_REF_NAMES_ENG |
Initializer for an array of English reference type names.
Definition at line 332 of file pcpsdefs.h.
#define PCPS_REF_NAMES_LSTR |
Initializer for a multi-language array of reference type names.
Definition at line 351 of file pcpsdefs.h.
#define PCPS_SCALE_MASK ( PCPS_SCALE_TAI | PCPS_SCALE_GPS ) |
This bit mask can be used to extract the time scale information out of a PCPS_TIME_STATUS_X value.
Definition at line 1308 of file pcpsdefs.h.
#define PCPS_SET_EVENT_TIME 0x14 |
(-w) Write event time as PCPS_TIME_STAMP, only if _pcps_has_event_time
Definition at line 720 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_event_time().
#define PCPS_SET_IRIG_RX_SETTINGS 0x3B |
(-w) Write IRIG_SETTINGS, only if _pcps_is_irig_rx, returns MBG_ERR_CFG on error
Definition at line 744 of file pcpsdefs.h.
Referenced by ioctl_switch(), mbg_set_irig_rx_settings(), and mbg_set_irig_tx_settings().
#define PCPS_SET_IRIG_TX_SETTINGS 0x3D |
(-w) Write IRIG_SETTINGS, only if _pcps_has_irig_tx, returns MBG_ERR_CFG on error
Definition at line 747 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_irig_tx_settings().
#define PCPS_SET_OPT_SETTINGS 0x39 |
(-w) Write MBG_OPT_SETTINGS, only if _pcps_has_opt_flags, returns MBG_ERR_CFG on error
Definition at line 741 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_opt_settings().
#define PCPS_SET_PCPS_TZDL 0x35 |
(-w) Write PCPS_TZDL, only if _pcps_has_pcps_tzdl, returns MBG_ERR_CFG on error
Definition at line 735 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_pcps_tzdl().
#define PCPS_SET_REF_OFFS 0x37 |
(-w) Write MBG_REF_OFFS, only if _pcps_has_ref_offs, returns MBG_ERR_CFG on error
Definition at line 738 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_ref_offs().
#define PCPS_SET_SERIAL 0x31 |
(-w) Write serial settings as PCPS_SERIAL, deprecated by PC_GPS_PORT_SETTINGS_IDX, returns MBG_ERR_CFG on error
Definition at line 729 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_serial().
#define PCPS_SET_SYNTH 0x3F |
(-w) Write SYNTH, only if _pcps_has_synth, returns MBG_ERR_CFG on error
Definition at line 750 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_synth().
#define PCPS_SET_TIME 0x10 |
(-w) Set on-board time, see PCPS_STIME. Returns MBG_ERR_STIME on error.
Definition at line 718 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_time().
#define PCPS_SET_TR_DISTANCE 0x65 |
(-w) Write TR_DISTANCE, only if _pcps_has_tr_distance
Definition at line 774 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_tr_distance().
#define PCPS_SET_TZCODE 0x33 |
(-w) Write PCPS_TZCODE, only if _pcps_has_tzcode, returns MBG_ERR_CFG on error
Definition at line 732 of file pcpsdefs.h.
Referenced by ioctl_switch(), and mbg_set_tzcode().
#define PCPS_SIG_BIAS 55 |
Definition at line 1055 of file pcpsdefs.h.
Referenced by show_modulation(), and show_time_and_status().
#define PCPS_SIG_ERR 1 |
Definition at line 1056 of file pcpsdefs.h.
Referenced by show_time_and_status().
#define PCPS_SIG_LVL_SIG_AVAIL 128 |
Definition at line 1063 of file pcpsdefs.h.
#define PCPS_SIG_LVL_SIG_NOT_AVAIL 0 |
Definition at line 1062 of file pcpsdefs.h.
#define PCPS_SIG_MAX 68 |
Definition at line 1058 of file pcpsdefs.h.
Referenced by show_modulation(), show_signal(), and show_time_and_status().
#define PCPS_SIG_MIN 20 |
Definition at line 1057 of file pcpsdefs.h.
#define PCPS_SN_SIZE ( PCPS_FIFO_SIZE + 1 ) |
The maximum length of a serial number string, including terminating 0.
ASCIIZ string
Definition at line 922 of file pcpsdefs.h.
#define PCPS_SUCCESS 0 |
Bus level command return codes.
OK, no error (see MBG_SUCCESS)
Definition at line 894 of file pcpsdefs.h.
#define PCPS_TZCODE_MEZ PCPS_TZCODE_CET |
Definition at line 1449 of file pcpsdefs.h.
#define PCPS_TZCODE_MEZMESZ PCPS_TZCODE_CET_CEST |
Definition at line 1448 of file pcpsdefs.h.
Referenced by set_timezone().
#define PCPS_TZCODE_OEZ PCPS_TZCODE_EET_EEST |
Definition at line 1450 of file pcpsdefs.h.
Referenced by set_timezone().
#define PCPS_WRITE_GPS_DATA 0x51 |
(-w) Write large data structure, see PC_GPS_CMD_CODES
Definition at line 766 of file pcpsdefs.h.
Referenced by pcps_write_gps(), and report_ret_val().
#define sizeof_PCPS_STIME sizeof( PCPS_STIME ) |
Definition at line 1181 of file pcpsdefs.h.
#define sizeof_PCPS_TIME sizeof( PCPS_TIME ) |
Definition at line 1180 of file pcpsdefs.h.
typedef int8_t PCPS_BUFF[16] |
A data buffer for a bus level device's command/data.
Definition at line 911 of file pcpsdefs.h.
typedef uint16_t PCPS_CMD_INFO |
A type used to store an unambiguous command code.
In case of the standard PCPS_CMD_CODES the lower byte contains the command code and the upper byte is 0. In case of a GPS command the lower byte contains PCPS_READ_GPS_DATA or PCPS_WRITE_GPS_DATA, as appropriate, and the upper byte contains the associated type code from PC_GPS_CMD_CODES.
Used internally by the firmware only.
Definition at line 1787 of file pcpsdefs.h.
typedef uint32_t PCPS_FRAC_32 |
32 bit binary fraction of a second
Used with PCPS_TIME_STAMP, e.g. 0x80000000 == 0.5 s, 0xFFFFFFFF == 0.9999999.. s, etc. Use bin_frac_32_to_dec_frac for conversion.
Definition at line 959 of file pcpsdefs.h.
typedef char PCPS_ID_STR[(2 * 16+1)] |
A buffer for an ID string, including terminating 0.
Definition at line 918 of file pcpsdefs.h.
typedef uint32_t PCPS_SECONDS |
Seconds since epoch 1970-01-01, usually UTC scale.
Used with PCPS_TIME_STAMP.
Definition at line 936 of file pcpsdefs.h.
typedef uint8_t PCPS_SERIAL |
Legacy definitions used to configure a device's serial port.
Configuration information for a device's serial port
Used with PCPS_GET_SERIAL and PCPS_SET_SERIAL
The serial interface on some old DCF77 clocks can be configured using the commands PCPS_SET_SERIAL and PCPS_GET_SERIAL. Both commands use a parameter byte describing transmission speed, framing and mode of operation. The parameter byte can be assembled using the constants defined in PCPS_BD_CODES, PCPS_FR_CODES, and PCPS_MOD_CODES, by or'ing one of the constants of each group, shifted to the right position. PCPS_GET_SERIAL expects that parameter byte and PCPS_GET_SERIAL returns the current configuration from the board. _pcps_has_serial checks whether supported. For old GPS clocks refer to the comments for the PCPS_GET_SERIAL command.
Definition at line 1342 of file pcpsdefs.h.
typedef uint8_t PCPS_SIG_VAL |
Definitions used to report a signal strength.
A data type used to report the signal value
Definition at line 1051 of file pcpsdefs.h.
typedef char PCPS_SN_STR[( 16+1)] |
A buffer for a serial number string, including terminating 0.
Definition at line 925 of file pcpsdefs.h.
typedef uint8_t PCPS_TIME_STATUS |
Time synchronization status.
Used by legacy API calls. New API calls provide an extended status word PCPS_TIME_STATUS_X.
Definition at line 1112 of file pcpsdefs.h.
typedef uint16_t PCPS_TIME_STATUS_X |
Extended status code.
Low byte corresponds to PCPS_TIME_STATUS, high byte contains additional flags.
Definition at line 1022 of file pcpsdefs.h.
typedef uint8_t PCPS_TZCODE |
Type of variable to hold a TZ code.
This is used with the PCI interface but differs from TZCODE which is used with the binary protocol.
Definition at line 1432 of file pcpsdefs.h.
enum PC_GPS_CMD_CODES |
GPS Command codes passed via the system bus.
Codes specifying various types of data that can be read from or written to Meinberg bus level devices which support this. Access is done using the low level functions pcps_read_gps and pcps_write_gps since the size of some of the structures exceeds the size of the device's I/O buffer and must therefore be accessed in several blocks.
Applications should instead use the API functions declared in mbgdevio.h.
The structures to be used are defined in gpsdefs.h. Not all structures are supported, yet. Check the r/w indicators for details.
Enumerator | |
---|---|
PC_GPS_TZDL | (r/w) TZDL, time zone / daylight saving, only if GPS_MODEL_HAS_TZDL |
PC_GPS_SW_REV | (r/-) SW_REV, software revision, deprecated by PC_GPS_RECEIVER_INFO |
PC_GPS_BVAR_STAT | (r/-) BVAR_STAT, status of buffered variables, only if GPS_MODEL_HAS_BVAR_STAT |
PC_GPS_TIME | (r/w) TTM, current time, deprecated by PCPS_GIVE_HR_TIME |
PC_GPS_POS_XYZ | (-/w) XYZ, current position in ECEF coordinates, only if GPS_MODEL_HAS_POS_XYZ |
PC_GPS_POS_LLA | (-/w) LLA, current position in geographic coordinates, only if GPS_MODEL_HAS_POS_LLA |
PC_GPS_PORT_PARM | (r/w) PORT_PARM, param. of the serial ports, deprecated by PC_GPS_ALL_PORT_INFO |
PC_GPS_ANT_INFO | (r/-) ANT_INFO, time diff at sync. after antenna had been disconn., only if GPS_MODEL_HAS_ANT_INFO |
PC_GPS_UCAP | (r/-) TTM, user capture events, deprecated by PCPS_GIVE_UCAP_EVENT |
PC_GPS_ENABLE_FLAGS | (r/w) ENABLE_FLAGS, when to enable serial, pulses, and synth, only if GPS_MODEL_HAS_ENABLE_FLAGS |
PC_GPS_STAT_INFO | (r/-) GPS_STAT_INFO, satellite info, mode of operation, and DAC info, only if GPS_MODEL_HAS_STAT_INFO |
PC_GPS_CMD | (-/w) GPS_CMD, send one of the PC_GPS_COMMANDS |
PC_GPS_IDENT | (r/-) IDENT, serial number, deprecated by PC_GPS_RECEIVER_INFO |
PC_GPS_POS | (r/-) POS, position XYZ, LLA, and DMS combined, only if GPS_MODEL_HAS_POS |
PC_GPS_ANT_CABLE_LEN | (r/w) ANT_CABLE_LEN, length of antenna cable, only if GPS_MODEL_HAS_ANT_CABLE_LEN |
PC_GPS_RECEIVER_INFO | (r/-) RECEIVER_INFO, rcvr model info, only if PCPS_HAS_RECEIVER_INFO |
PC_GPS_ALL_STR_TYPE_INFO | (r/-) n * STR_TYPE_INFO_IDX, names and capabilities of all supp. string types, only if RECEIVER_INFO::n_str_type > 0 |
PC_GPS_ALL_PORT_INFO | (r/-) n * PORT_INFO_IDX, settings and capabilities of all serial ports, only if RECEIVER_INFO::n_com_ports > 0 |
PC_GPS_PORT_SETTINGS_IDX | (-/w) PORT_SETTINGS_IDX, settings for specified serial port, only if RECEIVER_INFO::n_com_ports > 0 |
PC_GPS_ALL_POUT_INFO | (r/-) n * POUT_INFO_IDX, all programmable output info |
PC_GPS_POUT_SETTINGS_IDX | (-/w) POUT_SETTINGS_IDX, settings for one programmable output |
PC_GPS_TIME_SCALE | (r/w) MBG_TIME_SCALE_SETTINGS / MBG_TIME_SCALE_INFO, only if PCPS_HAS_TIME_SCALE |
PC_GPS_LAN_IF_INFO | (r/-) LAN_IF_INFO, LAN interface info, only if PCPS_HAS_LAN_INTF |
PC_GPS_IP4_STATE | (r/-) IP4_SETTINGS, LAN interface state, only if PCPS_HAS_LAN_INTF |
PC_GPS_IP4_SETTINGS | (r/w) IP4_SETTINGS, LAN interface configuration, only if PCPS_HAS_LAN_INTF |
PC_GPS_PTP_STATE | (r/-) PTP_STATE, only if PCPS_HAS_PTP |
PC_GPS_PTP_CFG | (r/w) PTP_CFG_SETTINGS / PTP_CFG_INFO, only if PCPS_HAS_PTP |
PC_GPS_PTP_UC_MASTER_CFG_LIMITS | (r/-) PTP_UC_MASTER_CFG_LIMITS, only if PTP_CFG_MSK_SUPPORT_PTP_UNICAST |
PC_GPS_ALL_PTP_UC_MASTER_INFO | (r/-) n * PTP_UC_MASTER_INFO_IDX, only if PTP_CFG_MSK_SUPPORT_PTP_UNICAST |
PC_GPS_PTP_UC_MASTER_SETTINGS_IDX | (-/w) PTP_UC_MASTER_SETTINGS_IDX, only if PTP_CFG_MSK_SUPPORT_PTP_UNICAST |
PC_GPS_GPIO_CFG_LIMITS | (r/-) MBG_GPIO_CFG_LIMITS, only if GPS_HAS_GPIO |
PC_GPS_ALL_GPIO_INFO | (r/-) n * MBG_GPIO_INFO_IDX, all GPIO info, only if GPS_HAS_GPIO |
PC_GPS_GPIO_SETTINGS_IDX | (-/w) MBG_GPIO_SETTINGS_IDX, settings for a specific port, only if GPS_HAS_GPIO |
PC_GPS_GNSS_MODE | (r/w) MBG_GNSS_MODE_INFO / MBG_GNSS_MODE_SETTINGS, only if PCPS_IS_GNSS |
PC_GPS_ALL_GNSS_SAT_INFO | (r/-) n * GNSS_SAT_INFO_IDX, satellite info, only if PCPS_IS_GNSS |
PC_GPS_XMR_INSTANCES | (r/-) XMULTI_REF_INSTANCES, only if GPS_HAS_XMULTI_REF and GPS_HAS_XMRS_MULT_INSTC |
PC_GPS_XMR_SETTINGS_IDX | (-/w) XMULTI_REF_SETTINGS_IDX, idx 0..XMULTI_REF_INSTANCES::n_xmr_settings-1, only if GPS_HAS_XMULTI_REF |
PC_GPS_ALL_XMR_INFO | (r/-) n * XMULTI_REF_INFO_IDX, where n == XMULTI_REF_INSTANCES::n_xmr_settings, only if GPS_HAS_XMULTI_REF |
PC_GPS_ALL_XMR_STATUS | (r/w) n * XMULTI_REF_STATUS_IDX, where n == XMULTI_REF_INSTANCES::n_xmr_settings, one structure on write, only if GPS_HAS_XMULTI_REF |
PC_GPS_XMR_HOLDOVER_STATUS | (r/-) XMR_HOLDOVER_STATUS, only if XMRIF_MSK_HOLDOVER_STATUS_SUPP |
PC_GPS_ALL_GPIO_STATUS | (r/-) n * MBG_GPIO_STATUS_IDX, where n == MBG_GPIO_CFG_LIMITS::num_io, only if MBG_GPIO_CFG_LIMIT_FLAG_MASK_STATUS_SUPP |
PC_GPS_XFEATURE_BUFFER | (r/-) MBG_XFEATURE_BUFFER, only if GPS_HAS_XFEATURE |
PC_GPS_TLV_INFO | (r/-) MBG_TLV_INFO, only if MBG_XFEATURE_TLV_API |
PC_GPS_CFGH | (-/-) CFGH, SVs' config. and health codes (yet not used) |
PC_GPS_ALM | (-/-) SV_ALM, one SV's num and almanac (yet not used) |
PC_GPS_EPH | (-/-) SV_EPH, one SV's num and ephemeris (yet not used) |
PC_GPS_UTC | (r/w) UTC, UTC corr. param., only if PCPS_HAS_UTC_PARM |
PC_GPS_IONO | (-/-) IONO, ionospheric corr. param. (yet not used) |
PC_GPS_ASCII_MSG | (-/-) ASCII_MSG, the GPS ASCII message (yet not used) |
Definition at line 1633 of file pcpsdefs.h.
enum PC_GPS_COMMANDS |
Codes used with PC_GPS_CMD.
Definition at line 1765 of file pcpsdefs.h.
enum PCPS_BD_CODES |
Deprecated baud rate indices.
The sequence of codes matches the sequence defined in MBG_BAUD_RATE_CODES.
Enumerator | |
---|---|
PCPS_BD_300 | |
PCPS_BD_600 | |
PCPS_BD_1200 | |
PCPS_BD_2400 | |
PCPS_BD_4800 | |
PCPS_BD_9600 | |
PCPS_BD_19200 | |
N_PCPS_BD | number of codes |
Definition at line 1355 of file pcpsdefs.h.
enum PCPS_FR_CODES |
Deprecated framing code indices.
Unfortunately, these framing codes can not simply be replaced by the newer MBG_FRAMING_... definitions since the order of indices doesn't match.
Enumerator | |
---|---|
PCPS_FR_8N1 | |
PCPS_FR_7E2 | |
PCPS_FR_8N2 | |
PCPS_FR_8E1 | |
N_PCPS_FR_DCF | number of valid codes |
Definition at line 1383 of file pcpsdefs.h.
enum PCPS_MOD_CODES |
Deprecated codes for modes of operation.
The sequence of codes matches the sequence defined in STR_MODES.
Enumerator | |
---|---|
PCPS_MOD_REQ | time string on request '?' only |
PCPS_MOD_SEC | time string once per second |
PCPS_MOD_MIN | time string once per minute |
PCPS_MOD_RSVD | reserved |
N_PCPS_MOD_DCF | number of possible codes |
Definition at line 1407 of file pcpsdefs.h.
enum PCPS_REF_TYPES |
Enumeration of the ref time signal sources used by Meinberg devices.
Enumerator | |
---|---|
PCPS_REF_NONE | unknown, or not defined |
PCPS_REF_DCF | DCF77 long wave signal (Germany), see http://www.meinberg.de/english/info/dcf77.htm. |
PCPS_REF_GPS | GPS satellite system, see http://www.meinberg.de/english/info/gps.htm. |
PCPS_REF_IRIG | IRIG or similar time code, see http://www.meinberg.de/english/info/irig.htm. |
PCPS_REF_MSF | MSF long wave signal (UK) |
PCPS_REF_PTP | PTP/IEEE1588 network protocol. |
PCPS_REF_FRC | Free Running Clock. |
PCPS_REF_WWVB | WWVB long wave signal (U.S.) |
PCPS_REF_JJY | JJY long wave signal (Japan) |
N_PCPS_REF | number of defined ref time sources |
Definition at line 291 of file pcpsdefs.h.
Time status flags.
Bit masks used with both PCPS_TIME_STATUS and PCPS_TIME_STATUS_X
Enumerator | |
---|---|
PCPS_FREER | long wave or time code receiver running on xtal, satellite receiver has not verified its position |
PCPS_DL_ENB | daylight saving currently enabled |
PCPS_SYNCD | long wave or time code receiver has sync'ed at least once after pwr up, sat receiver is synchronized |
PCPS_DL_ANN | a change in daylight saving status is announced |
PCPS_UTC | returned time is always UTC instead of some local time |
PCPS_LS_ANN | leap second announced, for very old clocks see REV_PCPS_LS_ANN_PC31PS31 |
PCPS_IFTM | the current time has been set by an API call, for very old clocks see REV_PCPS_IFTM_PC31PS31 |
PCPS_INVT | invalid time because battery had been disconnected, or absolute time can't be decoded safely |
Definition at line 1252 of file pcpsdefs.h.
Extended time status flags.
Bit masks used with PCPS_TIME_STATUS_X only
Enumerator | |
---|---|
PCPS_LS_ENB | current second is leap second |
PCPS_ANT_FAIL | antenna failure |
PCPS_LS_ANN_NEG | announced leap second is negative |
PCPS_SCALE_GPS | time stamp is GPS scale |
PCPS_SCALE_TAI | time stamp is TAI scale |
PCPS_UCAP_OVERRUN | events interval too short (capture events only) |
PCPS_UCAP_BUFFER_FULL | events read too slow (capture events only) |
PCPS_SYNC_PZF | Bit masks used only with time stamps representing the current board time. A DCF77 PZF receiver can set this bit if it is actually synchronized using PZF correlation and thus provides higher accuracy than AM receivers. Same numeric code as PCPS_UCAP_OVERRUN |
PCPS_IO_BLOCKED | Immediately after a clock has been accessed, subsequent accesses may be blocked for up to 1.5 msec to give the clock's microprocessor some time to decode the incoming time signal. The flag below is eventually set if a program tries to read PCPS_HR_TIME during this interval. In this case the read function returns the proper time stamp which is taken if the command byte is written, however, the read function returns with delay. This flag is not supported by all clocks. |
Definition at line 1270 of file pcpsdefs.h.
enum PCPS_TZCODES |
Enumeration of codes used with PCPS_TZCODE.
Definition at line 1438 of file pcpsdefs.h.