mbgtools-lx  4.2.8
Time Scale Configuration

Data Structures

struct  MBG_TIME_SCALE_SETTINGS
 Time scale configuration settings. More...
 
struct  MBG_TIME_SCALE_INFO
 Time scale configuration settings plus capabilities. More...
 

Macros

#define MBG_TIME_SCALE_STRS
 
#define GPS_TAI_OFFSET   19
 The constant time offset between the GPS and TAI time scales, in seconds. More...
 
#define _mbg_swab_mbg_time_scale_settings(_p)   _nop_macro_fnc()
 
#define _mbg_swab_mbg_time_scale_info(_p)
 

Enumerations

enum  MBG_TIME_SCALES { MBG_TIME_SCALE_DEFAULT, MBG_TIME_SCALE_GPS, MBG_TIME_SCALE_TAI, N_MBG_TIME_SCALE }
 Known time scales. More...
 
enum  MBG_TIME_SCALE_MASKS { MBG_TIME_SCALE_MSK_DEFAULT = ( 1UL << MBG_TIME_SCALE_DEFAULT ), MBG_TIME_SCALE_MSK_GPS = ( 1UL << MBG_TIME_SCALE_GPS ), MBG_TIME_SCALE_MSK_TAI = ( 1UL << MBG_TIME_SCALE_TAI ) }
 Bit masks for known time scales. More...
 

Detailed Description

Used to configure the GPS receiver's basic time scale. By default this is UTC which can optionally be converted to some local time. However, some applications prefer TAI or pure GPS time. This can be configured using the structures below if the GPS_HAS_TIME_SCALE flag is set in RECEIVER_INFO::features.

Macro Definition Documentation

◆ _mbg_swab_mbg_time_scale_info

#define _mbg_swab_mbg_time_scale_info (   _p)
Value:
do \
{ \
_mbg_swab_mbg_time_scale_settings( &(_p)->settings ); \
_mbg_swab_mbg_time_scale_settings( &(_p)->max_settings ); \
_mbg_swab32( &(_p)->supp_scales ); \
} while ( 0 )

Definition at line 5527 of file gpsdefs.h.

Referenced by mbg_get_time_scale_info(), and mbgextio_get_time_scale_info().

◆ _mbg_swab_mbg_time_scale_settings

#define _mbg_swab_mbg_time_scale_settings (   _p)    _nop_macro_fnc()

Definition at line 5512 of file gpsdefs.h.

Referenced by mbg_set_time_scale_settings(), and mbgextio_set_time_scale_settings().

◆ GPS_TAI_OFFSET

#define GPS_TAI_OFFSET   19

The constant time offset between the GPS and TAI time scales, in seconds.

[s], TAI = GPS + GPS_TAI_OFFSET

Definition at line 5499 of file gpsdefs.h.

◆ MBG_TIME_SCALE_STRS

#define MBG_TIME_SCALE_STRS
Value:
{ \
"UTC/local", \
"GPS", \
"TAI" \
}

Definition at line 5487 of file gpsdefs.h.

Enumeration Type Documentation

◆ MBG_TIME_SCALE_MASKS

Bit masks for known time scales.

See also
MBG_TIME_SCALES
Enumerator
MBG_TIME_SCALE_MSK_DEFAULT 

see MBG_TIME_SCALE_DEFAULT

MBG_TIME_SCALE_MSK_GPS 

see MBG_TIME_SCALE_GPS

MBG_TIME_SCALE_MSK_TAI 

see MBG_TIME_SCALE_TAI

Definition at line 5480 of file gpsdefs.h.

◆ MBG_TIME_SCALES

Known time scales.

See also
MBG_TIME_SCALE_MASKS
TM_SCALE_GPS
TM_SCALE_TAI
Enumerator
MBG_TIME_SCALE_DEFAULT 

UTC or local time according to UTC parameters and TZDL configuration

MBG_TIME_SCALE_GPS 

GPS time as sent by the satellites, monotonical.

MBG_TIME_SCALE_TAI 

TAI, i.e. GPS time plus constant offset (see GPS_TAI_OFFSET)

N_MBG_TIME_SCALE 

Definition at line 5467 of file gpsdefs.h.