Developer World
Spresense SDK Library v3.2.0-ebc0364
gnss_type.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  cxd56_gnss_date_s
 
struct  cxd56_gnss_time_s
 
struct  cxd56_gnss_wntow_s
 
struct  cxd56_gnss_dop_s
 
struct  cxd56_gnss_var_s
 
struct  cxd56_gnss_receiver_s
 
struct  cxd56_gnss_pvt_sv_pos_s
 
struct  cxd56_gnss_pvt_sv_vel_s
 
struct  cxd56_gnss_sv_s
 
struct  cxd56_gnss_positiondata_s
 
struct  cxd56_gnss_dcreport_data_s
 
struct  cxd56_gnss_sarrlm_data_s
 
struct  cxd56_gnss_gal_sarrlm_s
 
struct  cxd56_supl_trkdata_s
 
struct  cxd56_supl_posdata_s
 
struct  cxd56_supl_mesurementdata_s
 
struct  cxd56_gnss_timetag_s
 
struct  cxd56_rtk_info_s
 
struct  cxd56_rtk_sv_s
 
struct  cxd56_rtk_carrierphase_s
 
struct  cxd56_rtk_gpsephemeris_s
 
struct  cxd56_rtk_glonassephemeris_s
 
struct  cxd56_gnss_spectrum_s
 
struct  cxd56_gnss_sbasdata_s
 
struct  cxd56_gnss_rtk_setting_s
 
struct  cxd56_pvtlog_latitude_s
 
struct  cxd56_pvtlog_longitude_s
 
struct  cxd56_pvtlog_altitude_s
 
struct  cxd56_pvtlog_velocity_s
 
struct  cxd56_pvtlog_direction_s
 
struct  cxd56_pvtlog_time_s
 
struct  cxd56_pvtlog_date_s
 
struct  cxd56_pvtlog_data_s
 
struct  cxd56_pvtlog_s
 
struct  cxd56_gnss_status_s
 
struct  cxd56_gnss_sv2_s
 
struct  cxd56_gnss_receiver2_s
 
struct  cxd56_gnss_positiondata2_s
 

Macros

#define EXTERN   extern "C"
 
#define CXD56_GNSS_MAX_SV_NUM   32 /* for cxd56_gnss_positiondata_s */
 
#define CXD56_GNSS_MAX_SV2_NUM   150 /* for cxd56_gnss_positiondata2_s */
 
GNSS satellite system

GNSS bit fields to positioning

#define CXD56_GNSS_SAT_NONE   (0)
 
#define CXD56_GNSS_SAT_GPS   (1U << 0)
 
#define CXD56_GNSS_SAT_GLONASS   (1U << 1)
 
#define CXD56_GNSS_SAT_SBAS   (1U << 2)
 
#define CXD56_GNSS_SAT_QZ_L1CA   (1U << 3)
 
#define CXD56_GNSS_SAT_IMES   (1U << 4)
 
#define CXD56_GNSS_SAT_QZ_L1S   (1U << 5)
 
#define CXD56_GNSS_SAT_BEIDOU   (1U << 6)
 
#define CXD56_GNSS_SAT_GALILEO   (1U << 7)
 
GNSS satellite signal type
#define CXD56_GNSS_SIGNAL_GPS_L1CA   (0)
 
#define CXD56_GNSS_SIGNAL_GPS_L5   (1)
 
#define CXD56_GNSS_SIGNAL_GLN_L1OF   (2)
 
#define CXD56_GNSS_SIGNAL_QZS_L1CA   (3)
 
#define CXD56_GNSS_SIGNAL_QZS_L1S   (4)
 
#define CXD56_GNSS_SIGNAL_QZS_L5   (5)
 
#define CXD56_GNSS_SIGNAL_BDS_B1ID1   (6)
 
#define CXD56_GNSS_SIGNAL_BDS_B1ID2   (7)
 
#define CXD56_GNSS_SIGNAL_BDS_B1C   (8)
 
#define CXD56_GNSS_SIGNAL_BDS_B2A   (9)
 
#define CXD56_GNSS_SIGNAL_GAL_E1   (10)
 
#define CXD56_GNSS_SIGNAL_GAL_E5A   (11)
 
#define CXD56_GNSS_SIGNAL_NAV_L5   (12)
 
#define CXD56_GNSS_SIGNAL_SBAS_L1   (13)
 
GNSS positioning type
#define CXD56_GNSS_PVT_TYPE_NONE   0
 
#define CXD56_GNSS_PVT_TYPE_GNSS   1
 
#define CXD56_GNSS_PVT_TYPE_IMES   2
 
#define CXD56_GNSS_PVT_TYPE_USER   3
 
GNSS position fix mode
#define CXD56_GNSS_PVT_POSFIX_INVALID   1
 
#define CXD56_GNSS_PVT_POSFIX_2D   2
 
#define CXD56_GNSS_PVT_POSFIX_3D   3
 
GNSS velocity fix mode
#define CXD56_GNSS_PVT_VELFIX_INVALID   1
 
#define CXD56_GNSS_PVT_VELFIX_2DVZ   2
 
#define CXD56_GNSS_PVT_VELFIX_2DOFFSET   3
 
#define CXD56_GNSS_PVT_VELFIX_3D   4
 
#define CXD56_GNSS_PVT_VELFIX_1D   5
 
#define CXD56_GNSS_PVT_VELFIX_PRED   6
 
GNSS oribital infomation data type, almanac & ephemeris
#define CXD56_GNSS_DATA_GPS   0
 
#define CXD56_GNSS_DATA_GLONASS   1
 
#define CXD56_GNSS_DATA_QZSSL1CA   2
 
#define CXD56_GNSS_DATA_GALILEO   3
 
#define CXD56_GNSS_DATA_BEIDOU_D1   4
 
#define CXD56_GNSS_DATA_BEIDOU_D2   5
 
#define CXD56_GNSS_DATA_BEIDOU_ALM   6
 
GNSS satellite status
#define CXD56_GNSS_SV_STAT_NONE   (0)
 
#define CXD56_GNSS_SV_STAT_TRACKING   (1 << 0)
 
#define CXD56_GNSS_SV_STAT_POSITIONING   (1 << 1)
 
#define CXD56_GNSS_SV_STAT_CALC_VELOCITY   (1 << 2)
 
#define CXD56_GNSS_SV_STAT_VISIBLE   (1 << 3)
 
#define CXD56_GNSS_SV_STAT_SUB_CH   (1 << 4)
 
GNSS carrier phase status
#define CXD56_GNSS_SV_PHASESTAT_NONE   (0)
 
#define CXD56_GNSS_SV_PHASESTAT_UNKNOWN   (1 << 0)
 
#define CXD56_GNSS_SV_PHASESTAT_VALID   (1 << 1)
 
#define CXD56_GNSS_SV_PHASESTAT_RESET   (1 << 2)
 
#define CXD56_GNSS_SV_PHASESTAT_CYCLE_SLIP   (1 << 3)
 
#define CXD56_GNSS_SV_PHASESTAT_HALF_CYCLE_RESOLVED   (1 << 4)
 
GNSS Validity of raw measurement

struct #cxd56_gnss_sv_s::raw_stat

#define CXD56_GNSS_SV_RAWSTAT_NONE   (0)
 
#define CXD56_GNSS_SV_RAWSTAT_DOPPLER   (1 << 0)
 
#define CXD56_GNSS_SV_RAWSTAT_PSEUDORANGE   (1 << 1)
 
#define CXD56_GNSS_SV_RAWSTAT_CARRIERPHASE   (1 << 2)
 
#define CXD56_GNSS_SV_RAWSTAT_SVTIME   (1 << 3)
 
#define CXD56_GNSS_SV_RAWSTAT_SVCLOCKPARAM   (1 << 4)
 
#define CXD56_GNSS_SV_RAWSTAT_SVPOSVEL   (1 << 5)
 
GNSS Cause of measurement invalidity
#define CXD56_GNSS_SV_INVCAUS_NOT_TRACKED   (1 << 0)
 
#define CXD56_GNSS_SV_INVCAUS_NO_SIGNAL   (1 << 1)
 
#define CXD56_GNSS_SV_INVCAUS_NO_EPHEMERIS   (1 << 2)
 
#define CXD56_GNSS_SV_INVCAUS_CLK_NOT_ADJUSTED   (1 << 3)
 
#define CXD56_GNSS_SV_INVCAUS_BEFORE_TOW_LOCKED   (1 << 4)
 
#define CXD56_GNSS_SV_INVCAUS_SPEED_LIMIT   (1 << 5)
 
#define CXD56_GNSS_SV_INVCAUS_NOT_SUPPORTED   (1 << 6)
 
#define CXD56_GNSS_SV_INVCAUS_OTHER   (1 << 7)
 
#define CXD56_GNSS_PPS_NOT_ADJUSTED   0
 
#define CXD56_GNSS_PPS_ADJUSTED   1
 
#define CXD56_GNSS_PPS_ADJUSTED_SSDGLN   2
 
#define CXD56_GNSS_PPS_ADJUSTED_SSD   3
 
#define CXD56_GNSS_PPS_ADJUSTED_POS   4
 
#define CXD56_GNSS_PPS_DEGRADE2   5
 
#define CXD56_GNSS_PPS_DEGRADE   6
 
#define CXD56_GNSS_PPS_COMPLETE   7
 
#define CXD56_GNSS_RTK_INTERVAL_1HZ   1000 /* 1Hz */
 
#define CXD56_GNSS_RTK_INTERVAL_2HZ   500 /* 2Hz */
 
#define CXD56_GNSS_RTK_INTERVAL_5HZ   200 /* 5Hz */
 
#define CXD56_GNSS_RTK_INTERVAL_10HZ   100 /* 10Hz */
 
#define CXD56_GNSS_RTK_INTERVAL_20HZ   50 /* 20H */
 
Carrier phase max satellite number
#define CXD56_GNSS_RTK_MAX_SV_NUM   24
 
#define CXD56_GNSS_SPECTRUM_MAXNUM   37
 
#define CXD56_GNSS_PEAK_SPECTRUM_MAXNUM   3
 
#define CXD56_GNSS_QSM_MSG_BIT_NUM   250
 
#define CXD56_GNSS_QSM_NUM_BITS_IN_BYTE   8
 
#define CXD56_GNSS_SUPL_TRK_DATA_SIZE   (24)
 
#define CXD56_GNSS_PVTLOG_MAXNUM   170
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_FULL   0 /* Limit of the storage size */
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_HALF   1 /* 1/2 of the Storage size */
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_ONE_DATA   2 /* Each log stored */
 
assist bit fields
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_NONE   (0x00)
 
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_USER   (0x01)
 
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_CEPPOS   (0x02)
 
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_CEPVEL   (0x04)
 
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_AEPPOS   (0x08)
 
#define CXD56_GNSS_PVT_RECEIVER_ASSIST_AEPVEL   (0x10)
 
#define CXD56_GNSS_VERSION_MAXLEN   32
 
#define CXD56_GNSS_SLEEP   0
 
#define CXD56_GNSS_DEEPSLEEP   1
 
GNSS positionig data elements
#define CXD56_GNSS_PVT_RECEIVER_EXTRA_DATA_SIZE   (568)
 
#define CXD56_GNSS_PVT_RECEIVER_EXTRA_DATA    uint8_t extra[CXD56_GNSS_PVT_RECEIVER_EXTRA_DATA_SIZE]
 
#define CXD56_GNSS_PVT_SV_EXTRA_DATA_SIZE   40
 
#define CXD56_GNSS_PVT_SV_EXTRA_DATA    uint8_t extra[CXD56_GNSS_PVT_SV_EXTRA_DATA_SIZE]
 
#define CXD56_GNSS_FFT_MAXPOOLNUM   (8)
 
GNSS AGPS clear flag
#define CXD56_GNSS_GCLR_EPH   0x00000001
 
#define CXD56_GNSS_GCLR_ALM   0x00000002
 
#define CXD56_GNSS_GCLR_PV   0x00000004
 
#define CXD56_GNSS_GCLR_TIME   0x00000008
 
#define CXD56_GNSS_GCLR_TCXO   0x00010000
 
#define CXD56_GNSS_GCLR_ALL   0xffffffff
 
GNSS output data
#define CXD56_GNSS_SBAS_MESSAGE_DATA_LEN   (27)