Developer World
Spresense SDK Library v3.3.0-375c679
gnss.h File Reference
#include <arch/chip/gnss_type.h>

Go to the source code of this file.

Classes

struct  cxd56_gnss_ope_mode_param_s
 GNSS operation mode and cycle. More...
 
struct  cxd56_gnss_orbital_param_s
 Sattelite almanac, ephemeris data. More...
 
struct  cxd56_gnss_datetime_s
 date and time More...
 
struct  cxd56_gnss_ellipsoidal_position_s
 ellipsoidal position More...
 
struct  cxd56_gnss_orthogonal_position_s
 ellipsoidal position More...
 
struct  cxd56_gnss_cep_data_s
 
struct  cxd56_gnss_cep_age_s
 CEP age info. More...
 
struct  cxd56_gnss_agps_acquist_s
 acquist data and size for AGPS More...
 
struct  cxd56_gnss_agps_tow_assist_s
 tow assist data and size for AGPS More...
 
struct  cxd56_gnss_agps_utc_model_s
 utc model data and size for AGPS More...
 
struct  cxd56_gnss_agps_frametime_s
 Time from frame start[sec]. More...
 
struct  cxd56_gnss_agps_time_gps_s
 High precision receiver time. More...
 
struct  cxd56_gnss_agps_tau_gps_s
 different time between AGPS and GLONASS Time More...
 
struct  cxd56_gnss_spectrum_control_s
 Signal spectrum output control parameter. More...
 
struct  cxd56_gnss_test_info_s
 Factory test info. More...
 
struct  cxd56_gnss_test_result_s
 Factory test result. More...
 
struct  cxd56_gnss_signal_setting_s
 signal setting for reading data asychronously The field 'enable' of struct cxd56_gnss_signal_setting_s to be given as a parameter must be specified as 1 when setting and 0 when unsetting. Field 'gnsssig' specifies the value of 'Signal types from GNSS', this is not POSIX signal. Field 'signo' is application specific number of POSIX signal. 'data' will be passed as an argument to the handler. More...
 
struct  cxd56_gnss_signal_info_s
 Information for use after being signaled to read data asychronously. More...
 
struct  cxd56_pvtlog_setting_s
 PVTLOG setting Parameter. If the log interval(cycle) is smaller than the positioning interval, it is logged every positioning interval. The output timing is specified by the ratio to the log buffer in the GNSS device by threshold. Possible values are CXD56_GNSS_PVTLOG_THRESHOLD_FULL, CXD56_GNSS_PVTLOG_THRESHOLD_HALF, and CXD56_GNSS_PVTLOG_THRESHOLD_ONE_DATA. More...
 
struct  cxd56_pvtlog_status_s
 Stored logs status of PVTLOG. More...
 
struct  cxd56_rtk_setting_s
 RTK output setting. More...
 
struct  cxd56_gnss_set_var_ephemeris_s
 Sattelite ephemeris data. More...
 
struct  cxd56_gnss_get_var_ephemeris_s
 Sattelite ephemeris data. More...
 

Macros

#define EXTERN   extern "C"
 
#define CXD56_GNSS_IOCTL_START   1
 
#define CXD56_GNSS_IOCTL_STOP   2
 
#define CXD56_GNSS_IOCTL_SELECT_SATELLITE_SYSTEM   3
 
#define CXD56_GNSS_IOCTL_GET_SATELLITE_SYSTEM   4
 
#define CXD56_GNSS_IOCTL_SET_RECEIVER_POSITION_ELLIPSOIDAL   5
 
#define CXD56_GNSS_IOCTL_SET_RECEIVER_POSITION_ORTHOGONAL   6
 
#define CXD56_GNSS_IOCTL_SET_OPE_MODE   7
 
#define CXD56_GNSS_IOCTL_GET_OPE_MODE   8
 
#define CXD56_GNSS_IOCTL_SET_TCXO_OFFSET   9
 
#define CXD56_GNSS_IOCTL_GET_TCXO_OFFSET   10
 
#define CXD56_GNSS_IOCTL_SET_TIME   11
 
#define CXD56_GNSS_IOCTL_GET_ALMANAC   12
 
#define CXD56_GNSS_IOCTL_SET_ALMANAC   13
 
#define CXD56_GNSS_IOCTL_GET_EPHEMERIS   14
 
#define CXD56_GNSS_IOCTL_SET_EPHEMERIS   15
 
#define CXD56_GNSS_IOCTL_SAVE_BACKUP_DATA   16
 
#define CXD56_GNSS_IOCTL_ERASE_BACKUP_DATA   17
 
#define CXD56_GNSS_IOCTL_OPEN_CEP_DATA   18
 
#define CXD56_GNSS_IOCTL_CLOSE_CEP_DATA   19
 
#define CXD56_GNSS_IOCTL_CHECK_CEP_DATA   20
 
#define CXD56_GNSS_IOCTL_GET_CEP_AGE   21
 
#define CXD56_GNSS_IOCTL_RESET_CEP_FLAG   22
 
#define CXD56_GNSS_IOCTL_RTK_START   23
 
#define CXD56_GNSS_IOCTL_RTK_STOP   24
 
#define CXD56_GNSS_IOCTL_RTK_SET_INTERVAL   25
 
#define CXD56_GNSS_IOCTL_RTK_GET_INTERVAL   26
 
#define CXD56_GNSS_IOCTL_RTK_SELECT_SATELLITE_SYSTEM   27
 
#define CXD56_GNSS_IOCTL_RTK_GET_SATELLITE_SYSTEM   28
 
#define CXD56_GNSS_IOCTL_RTK_SET_EPHEMERIS_ENABLER   29
 
#define CXD56_GNSS_IOCTL_RTK_GET_EPHEMERIS_ENABLER   30
 
#define CXD56_GNSS_IOCTL_AGPS_SET_ACQUIST   31
 
#define CXD56_GNSS_IOCTL_AGPS_SET_FRAMETIME   32
 
#define CXD56_GNSS_IOCTL_AGPS_SET_TAU_GPS   33
 
#define CXD56_GNSS_IOCTL_AGPS_SET_TIME_GPS   34
 
#define CXD56_GNSS_IOCTL_AGPS_CLEAR_RECEIVER_INFO   35
 
#define CXD56_GNSS_IOCTL_AGPS_SET_TOW_ASSIST   36
 
#define CXD56_GNSS_IOCTL_AGPS_SET_UTC_MODEL   37
 
#define CXD56_GNSS_IOCTL_SPECTRUM_CONTROL   38
 
#define CXD56_GNSS_IOCTL_FACTORY_START_TEST   39
 
#define CXD56_GNSS_IOCTL_FACTORY_STOP_TEST   40
 
#define CXD56_GNSS_IOCTL_FACTORY_GET_TEST_RESULT   41
 
#define CXD56_GNSS_IOCTL_SIGNAL_SET   42
 
#define CXD56_GNSS_IOCTL_PVTLOG_START   43
 
#define CXD56_GNSS_IOCTL_PVTLOG_STOP   44
 
#define CXD56_GNSS_IOCTL_PVTLOG_DELETE_LOG   45
 
#define CXD56_GNSS_IOCTL_PVTLOG_GET_STATUS   46
 
#define CXD56_GNSS_IOCTL_NAVMSG_START   47
 
#define CXD56_GNSS_IOCTL_SET_VAR_EPHEMERIS   48
 
#define CXD56_GNSS_IOCTL_GET_VAR_EPHEMERIS   49
 
#define CXD56_GNSS_IOCTL_SET_USECASE   50
 
#define CXD56_GNSS_IOCTL_GET_USECASE   51
 
#define CXD56_GNSS_IOCTL_SET_1PPS_OUTPUT   52
 
#define CXD56_GNSS_IOCTL_GET_1PPS_OUTPUT   53
 
#define CXD56_GNSS_IOCTL_GET_VERSION   54
 
#define CXD56_GNSS_IOCTL_SLEEP   55
 
#define CXD56_GNSS_IOCTL_WAKEUP   56
 
#define CXD56_GNSS_IOCTL_RESET   57
 
#define CXD56_GNSS_IOCTL_INVAL   0
 
#define CXD56_GNSS_IOCTL_MAX   58
 
GNSS Start mode

GNSS start mode

#define CXD56_GNSS_STMOD_COLD   0
 
#define CXD56_GNSS_STMOD_WARM   1
 
#define CXD56_GNSS_STMOD_WARM_ACC2   2
 
#define CXD56_GNSS_STMOD_HOT   3
 
#define CXD56_GNSS_STMOD_HOT_ACC   4
 
#define CXD56_GNSS_STMOD_HOT_ACC2   5
 
#define CXD56_GNSS_STMOD_HOT_ACC3   6
 
#define CXD56_GNSS_STMOD_GSPQ   CXD56_GNSS_STMOD_HOT_ACC3
 
GNSS data size

almanac, ephemeris data size

#define CXD56_GNSS_GPS_ALMANAC_SIZE   2048
 
#define CXD56_GNSS_GPS_EPHEMERIS_SIZE   3072
 
#define CXD56_GNSS_GLONASS_ALMANAC_SIZE   576
 
#define CXD56_GNSS_GLONASS_EPHEMERIS_SIZE   1152
 
#define CXD56_GNSS_QZSSL1CA_ALMANAC_SIZE   640
 
#define CXD56_GNSS_QZSSL1CA_EPHEMERIS_SIZE   960
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_FULL   0
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_HALF   1
 
#define CXD56_GNSS_PVTLOG_THRESHOLD_ONE_DATA   2
 
Offset value that specifies the data type to read from GNSS
#define CXD56_GNSS_READ_OFFSET_LAST_GNSS   0x0000
 
#define CXD56_GNSS_READ_OFFSET_GNSS(N)   (0x1000 + 0x800 * (N))
 
#define CXD56_GNSS_READ_OFFSET_AGPS   0x5000
 
#define CXD56_GNSS_READ_OFFSET_RTK   0x6000
 
#define CXD56_GNSS_READ_OFFSET_GPSEPHEMERIS   0x7000
 
#define CXD56_GNSS_READ_OFFSET_GLNEPHEMERIS   0x8000
 
#define CXD56_GNSS_READ_OFFSET_SBAS   0x9000
 
#define CXD56_GNSS_READ_OFFSET_DCREPORT   0x9800
 
#define CXD56_GNSS_READ_OFFSET_SARRLM   0x9900
 
#define CXD56_GNSS_READ_OFFSET_SPECTRUM   0xa000
 
#define CXD56_GNSS_READ_OFFSET_INFO   0xf000
 
#define CXD56_GNSS_READ_OFFSET_PVTLOG   0x10000
 
Signal types from GNSS
#define CXD56_GNSS_SIG_GNSS   0
 
#define CXD56_GNSS_SIG_PVTLOG   2
 
#define CXD56_GNSS_SIG_AGPS   3
 
#define CXD56_GNSS_SIG_RTK   4
 
#define CXD56_GNSS_SIG_SPECTRUM   5
 
#define CXD56_GNSS_SIG_GPSEPHEMERIS   11
 
#define CXD56_GNSS_SIG_GLNEPHEMERIS   12
 
#define CXD56_GNSS_SIG_SBAS   14
 
#define CXD56_GNSS_SIG_DCREPORT   15
 
#define CXD56_GNSS_SIG_SARRLM   16