mbgtools-lx  4.2.8
GNSS status flags encoding

Macros

#define _gnss_sv_stat_quality_ind(__stat_flags)   ( (uint8_t) ( (__stat_flags) & 0x00000007UL ) )
 Bits 0 to 2 are a 3 bit quality indicator, see GNSS_SV_STAT_QUALITY_INDS. More...
 
#define _gnss_sv_stat_sv_used(__stat_flags)   ( ( (__stat_flags) & 0x00000008UL ) != 0 )
 Bit 3 is set if the SV is actually used for navigation. More...
 
#define _gnss_sv_stat_health_code(__stat_flags)   ( (uint8_t) ( ( (__stat_flags) & 0x00000030UL ) >> 4 ) )
 Bits 4 and 5 are a 2 bit health code, see GNSS_SV_STAT_HEALTH_CODES. More...
 
#define _gnss_sv_stat_diff_corr(__stat_flags)   ( ( (__stat_flags) & 0x00000040UL ) != 0 )
 Bit 6 is set if differential correction is available for this SV. More...
 
#define _gnss_sv_stat_smoothed(__stat_flags)   ( ( (__stat_flags) & 0x00000080UL ) != 0 )
 Bit 7 is set if carrier smoothed pseudorange is used for this SV. More...
 
#define _gnss_sv_stat_orbit_src(__stat_flags)   ( (uint8_t) ( ( (__stat_flags) & 0x00000700UL ) >> 8 ) )
 Bits 8 to 10 are a 3 bit code indicating the orbit source, see GNSS_SV_STAT_ORBIT_SOURCES. More...
 
#define _gnss_sv_stat_eph_avail(__stat_flags)   ( ( (__stat_flags) & 0x00000800UL ) != 0 )
 Bit 11 is set if ephemeris parameters are available for this SV. More...
 
#define _gnss_sv_stat_alm_avail(__stat_flags)   ( ( (__stat_flags) & 0x00001000UL ) != 0 )
 Bit 12 is set if almanac parameters are available for this SV. More...
 
#define _gnss_sv_stat_ano_avail(__stat_flags)   ( ( (__stat_flags) & 0x00002000UL ) != 0 )
 Bit 13 is set if AssistNow Offline data is available for this SV. More...
 
#define _gnss_sv_stat_aop_avail(__stat_flags)   ( ( (__stat_flags) & 0x00004000UL ) != 0 )
 Bit 14 is set if AssistNow Autonomous data is available for this SV. More...
 
#define _gnss_sv_stat_sbas_corr_used(__stat_flags)   ( ( (__stat_flags) & 0x00010000UL ) != 0 )
 Bit 15 is reserved. More...
 
#define _gnss_sv_stat_rtcm_corr_used(__stat_flags)   ( ( (__stat_flags) & 0x00020000UL ) != 0 )
 Bit 17 is set if RTCM corrections have been used for this SV. More...
 
#define _gnss_sv_stat_pr_corr_used(__stat_flags)   ( ( (__stat_flags) & 0x00100000UL ) != 0 )
 Bits 18 and 19 are reserved. More...
 
#define _gnss_sv_stat_cr_corr_used(__stat_flags)   ( ( (__stat_flags) & 0x00200000UL ) != 0 )
 Bit 21 is set if carrier range corrections have been used for this SV. More...
 
#define _gnss_sv_stat_do_corr_used(__stat_flags)   ( ( (__stat_flags) & 0x00400000UL ) != 0 )
 Bit 22 is set if range rate (doppler) corrections have been used for this SV. More...
 

Detailed Description

Used with GNSS_SV_STATUS::stat_flags.

Macro Definition Documentation

◆ _gnss_sv_stat_alm_avail

#define _gnss_sv_stat_alm_avail (   __stat_flags)    ( ( (__stat_flags) & 0x00001000UL ) != 0 )

Bit 12 is set if almanac parameters are available for this SV.

Definition at line 10873 of file gpsdefs.h.

◆ _gnss_sv_stat_ano_avail

#define _gnss_sv_stat_ano_avail (   __stat_flags)    ( ( (__stat_flags) & 0x00002000UL ) != 0 )

Bit 13 is set if AssistNow Offline data is available for this SV.

Definition at line 10877 of file gpsdefs.h.

◆ _gnss_sv_stat_aop_avail

#define _gnss_sv_stat_aop_avail (   __stat_flags)    ( ( (__stat_flags) & 0x00004000UL ) != 0 )

Bit 14 is set if AssistNow Autonomous data is available for this SV.

Definition at line 10881 of file gpsdefs.h.

◆ _gnss_sv_stat_cr_corr_used

#define _gnss_sv_stat_cr_corr_used (   __stat_flags)    ( ( (__stat_flags) & 0x00200000UL ) != 0 )

Bit 21 is set if carrier range corrections have been used for this SV.

Definition at line 10901 of file gpsdefs.h.

◆ _gnss_sv_stat_diff_corr

#define _gnss_sv_stat_diff_corr (   __stat_flags)    ( ( (__stat_flags) & 0x00000040UL ) != 0 )

Bit 6 is set if differential correction is available for this SV.

Definition at line 10857 of file gpsdefs.h.

◆ _gnss_sv_stat_do_corr_used

#define _gnss_sv_stat_do_corr_used (   __stat_flags)    ( ( (__stat_flags) & 0x00400000UL ) != 0 )

Bit 22 is set if range rate (doppler) corrections have been used for this SV.

Definition at line 10905 of file gpsdefs.h.

◆ _gnss_sv_stat_eph_avail

#define _gnss_sv_stat_eph_avail (   __stat_flags)    ( ( (__stat_flags) & 0x00000800UL ) != 0 )

Bit 11 is set if ephemeris parameters are available for this SV.

Definition at line 10869 of file gpsdefs.h.

◆ _gnss_sv_stat_health_code

#define _gnss_sv_stat_health_code (   __stat_flags)    ( (uint8_t) ( ( (__stat_flags) & 0x00000030UL ) >> 4 ) )

Bits 4 and 5 are a 2 bit health code, see GNSS_SV_STAT_HEALTH_CODES.

Definition at line 10853 of file gpsdefs.h.

◆ _gnss_sv_stat_orbit_src

#define _gnss_sv_stat_orbit_src (   __stat_flags)    ( (uint8_t) ( ( (__stat_flags) & 0x00000700UL ) >> 8 ) )

Bits 8 to 10 are a 3 bit code indicating the orbit source, see GNSS_SV_STAT_ORBIT_SOURCES.

Definition at line 10865 of file gpsdefs.h.

◆ _gnss_sv_stat_pr_corr_used

#define _gnss_sv_stat_pr_corr_used (   __stat_flags)    ( ( (__stat_flags) & 0x00100000UL ) != 0 )

Bits 18 and 19 are reserved.

Bit 20 is set if pseudorange corrections have been used for this SV

Definition at line 10897 of file gpsdefs.h.

◆ _gnss_sv_stat_quality_ind

#define _gnss_sv_stat_quality_ind (   __stat_flags)    ( (uint8_t) ( (__stat_flags) & 0x00000007UL ) )

Bits 0 to 2 are a 3 bit quality indicator, see GNSS_SV_STAT_QUALITY_INDS.

Definition at line 10845 of file gpsdefs.h.

◆ _gnss_sv_stat_rtcm_corr_used

#define _gnss_sv_stat_rtcm_corr_used (   __stat_flags)    ( ( (__stat_flags) & 0x00020000UL ) != 0 )

Bit 17 is set if RTCM corrections have been used for this SV.

Definition at line 10891 of file gpsdefs.h.

◆ _gnss_sv_stat_sbas_corr_used

#define _gnss_sv_stat_sbas_corr_used (   __stat_flags)    ( ( (__stat_flags) & 0x00010000UL ) != 0 )

Bit 15 is reserved.

Bit 16 is set if SBAS corrections have been used for this SV

Definition at line 10887 of file gpsdefs.h.

◆ _gnss_sv_stat_smoothed

#define _gnss_sv_stat_smoothed (   __stat_flags)    ( ( (__stat_flags) & 0x00000080UL ) != 0 )

Bit 7 is set if carrier smoothed pseudorange is used for this SV.

Definition at line 10861 of file gpsdefs.h.

◆ _gnss_sv_stat_sv_used

#define _gnss_sv_stat_sv_used (   __stat_flags)    ( ( (__stat_flags) & 0x00000008UL ) != 0 )

Bit 3 is set if the SV is actually used for navigation.

Definition at line 10849 of file gpsdefs.h.