mbgtools-lx  4.2.8
IRIG input delay compensation

Data Structures

struct  IRIG_RX_COMP
 A structure used to store compensation values. More...
 
struct  CAL_REC_HDR
 Structure used to retrieve the number of records for a given type. More...
 
struct  CAL_REC_IRIG_RX_COMP
 Structure used to transfer calibration records. More...
 

Macros

#define N_IRIG_RX_COMP_VAL   4
 
#define _mbg_swab_irig_rx_comp(_p)
 
#define IRIG_RX_COMP_MAX   999
 
#define _mbg_swab_cal_rec_hdr(_p)
 
#define DEFAULT_IRIG_RX_COMP_NAMES
 Initializers for format name strings. More...
 
#define _mbg_swab_cal_rec_irig_rx_comp(_p)
 

Enumerations

enum  CAL_REC_TYPES { CAL_REC_TYPE_UNDEF, CAL_REC_TYPE_IRIG_RX_COMP, N_CAL_REC_TYPE }
 Types to be used with CAL_REC_HDR::type. More...
 
enum  IRIG_RX_COMP_GROUPS {
  IRIG_RX_COMP_B1, IRIG_RX_COMP_A1, IRIG_RX_COMP_B0, IRIG_RX_COMP_A0,
  IRIG_RX_COMP_G1, IRIG_RX_COMP_G0, N_IRIG_RX_COMP
}
 Types to be used with CAL_REC_HDR::idx. More...
 

Detailed Description

These definitions are used with IRIG RX delay compensation which is supported by some IRIG receivers. Delay compensation depends on the basic frame type, so there are different records required for the different frame type groups.

Macro Definition Documentation

◆ _mbg_swab_cal_rec_hdr

#define _mbg_swab_cal_rec_hdr (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->type ); \
_mbg_swab16( &(_p)->idx ); \
} while ( 0 )

Definition at line 5125 of file gpsdefs.h.

Referenced by mbg_get_cal_rec_irig_rx_comp().

◆ _mbg_swab_cal_rec_irig_rx_comp

#define _mbg_swab_cal_rec_irig_rx_comp (   _p)
Value:
do \
{ \
_mbg_swab_cal_rec_hdr( &(_p)->hdr ); \
_mbg_swab_irig_rx_comp( &(_p)->comp_data ); \
} while ( 0 )

Definition at line 5186 of file gpsdefs.h.

Referenced by mbg_get_cal_rec_irig_rx_comp(), and mbg_set_cal_rec_irig_rx_comp().

◆ _mbg_swab_irig_rx_comp

#define _mbg_swab_irig_rx_comp (   _p)
Value:
do \
{ \
int i; \
for ( i = 0; i < N_IRIG_RX_COMP_VAL; i++ ) \
_mbg_swab16( &(_p)->c[i] ); \
} while ( 0 )
#define _mbg_swab16(_p)
Definition: mbg_arch.h:173
#define N_IRIG_RX_COMP_VAL
Definition: gpsdefs.h:5084

Definition at line 5101 of file gpsdefs.h.

◆ DEFAULT_IRIG_RX_COMP_NAMES

#define DEFAULT_IRIG_RX_COMP_NAMES
Value:
{ \
"B1xx/AFNOR/IEEE1344", \
"A1xx", \
"B0xx/AFNOR DC/IEEE1344 DC", \
"A0xx", \
"G14X", \
"G00X", \
}

Initializers for format name strings.

Definition at line 5164 of file gpsdefs.h.

◆ IRIG_RX_COMP_MAX

#define IRIG_RX_COMP_MAX   999

The absolute value of the maximum compensation value accepted by a device

Definition at line 5111 of file gpsdefs.h.

Referenced by usage().

◆ N_IRIG_RX_COMP_VAL

#define N_IRIG_RX_COMP_VAL   4

The number of coefficients of a compensation record for a single frame type group, and the structure which contains those coefficients.

Definition at line 5084 of file gpsdefs.h.

Referenced by print_cal_recs().

Enumeration Type Documentation

◆ CAL_REC_TYPES

Types to be used with CAL_REC_HDR::type.

Enumerator
CAL_REC_TYPE_UNDEF 

undefined type

CAL_REC_TYPE_IRIG_RX_COMP 

IRIG receiver delay compensation.

N_CAL_REC_TYPE 

number of known types

Definition at line 5136 of file gpsdefs.h.

◆ IRIG_RX_COMP_GROUPS

Types to be used with CAL_REC_HDR::idx.

IRIG frame type groups to be distinguished for delay compensation.

Enumerator
IRIG_RX_COMP_B1 

codes B1xx, AFNOR, IEEE1344

IRIG_RX_COMP_A1 

code A1xx

IRIG_RX_COMP_B0 

codes B0xx, AFNOR DC, IEEE1344 DC

IRIG_RX_COMP_A0 

code A0xx

IRIG_RX_COMP_G1 

code G14x

IRIG_RX_COMP_G0 

code G00x

N_IRIG_RX_COMP 

number of compensation values

Definition at line 5149 of file gpsdefs.h.