24#ifndef __ARCH_ARM_INCLUDE_CXD56XX_GNSS_H
25#define __ARCH_ARM_INCLUDE_CXD56XX_GNSS_H
28#define EXTERN extern "C"
39#include <arch/chip/gnss_type.h>
61#define CXD56_GNSS_IOCTL_START 1
72#define CXD56_GNSS_IOCTL_STOP 2
89#define CXD56_GNSS_IOCTL_SELECT_SATELLITE_SYSTEM 3
102#define CXD56_GNSS_IOCTL_GET_SATELLITE_SYSTEM 4
125#define CXD56_GNSS_IOCTL_SET_RECEIVER_POSITION_ELLIPSOIDAL 5
140#define CXD56_GNSS_IOCTL_SET_RECEIVER_POSITION_ORTHOGONAL 6
151#define CXD56_GNSS_IOCTL_SET_OPE_MODE 7
160#define CXD56_GNSS_IOCTL_GET_OPE_MODE 8
177#define CXD56_GNSS_IOCTL_SET_TCXO_OFFSET 9
186#define CXD56_GNSS_IOCTL_GET_TCXO_OFFSET 10
202#define CXD56_GNSS_IOCTL_SET_TIME 11
213#define CXD56_GNSS_IOCTL_GET_ALMANAC 12
224#define CXD56_GNSS_IOCTL_SET_ALMANAC 13
235#define CXD56_GNSS_IOCTL_GET_EPHEMERIS 14
246#define CXD56_GNSS_IOCTL_SET_EPHEMERIS 15
264#define CXD56_GNSS_IOCTL_SAVE_BACKUP_DATA 16
274#define CXD56_GNSS_IOCTL_ERASE_BACKUP_DATA 17
288#define CXD56_GNSS_IOCTL_OPEN_CEP_DATA 18
299#define CXD56_GNSS_IOCTL_CLOSE_CEP_DATA 19
309#define CXD56_GNSS_IOCTL_CHECK_CEP_DATA 20
337#define CXD56_GNSS_IOCTL_GET_CEP_AGE 21
348#define CXD56_GNSS_IOCTL_RESET_CEP_FLAG 22
354#define CXD56_GNSS_IOCTL_RTK_START 23
360#define CXD56_GNSS_IOCTL_RTK_STOP 24
366#define CXD56_GNSS_IOCTL_RTK_SET_INTERVAL 25
372#define CXD56_GNSS_IOCTL_RTK_GET_INTERVAL 26
378#define CXD56_GNSS_IOCTL_RTK_SELECT_SATELLITE_SYSTEM 27
384#define CXD56_GNSS_IOCTL_RTK_GET_SATELLITE_SYSTEM 28
390#define CXD56_GNSS_IOCTL_RTK_SET_EPHEMERIS_ENABLER 29
396#define CXD56_GNSS_IOCTL_RTK_GET_EPHEMERIS_ENABLER 30
405#define CXD56_GNSS_IOCTL_AGPS_SET_ACQUIST 31
414#define CXD56_GNSS_IOCTL_AGPS_SET_FRAMETIME 32
424#define CXD56_GNSS_IOCTL_AGPS_SET_TAU_GPS 33
433#define CXD56_GNSS_IOCTL_AGPS_SET_TIME_GPS 34
443#define CXD56_GNSS_IOCTL_AGPS_CLEAR_RECEIVER_INFO 35
452#define CXD56_GNSS_IOCTL_AGPS_SET_TOW_ASSIST 36
461#define CXD56_GNSS_IOCTL_AGPS_SET_UTC_MODEL 37
470#define CXD56_GNSS_IOCTL_SPECTRUM_CONTROL 38
485#define CXD56_GNSS_IOCTL_FACTORY_START_TEST 39
494#define CXD56_GNSS_IOCTL_FACTORY_STOP_TEST 40
503#define CXD56_GNSS_IOCTL_FACTORY_GET_TEST_RESULT 41
513#define CXD56_GNSS_IOCTL_SIGNAL_SET 42
523#define CXD56_GNSS_IOCTL_PVTLOG_START 43
531#define CXD56_GNSS_IOCTL_PVTLOG_STOP 44
540#define CXD56_GNSS_IOCTL_PVTLOG_DELETE_LOG 45
551#define CXD56_GNSS_IOCTL_PVTLOG_GET_STATUS 46
557#define CXD56_GNSS_IOCTL_NAVMSG_START 47
570#define CXD56_GNSS_IOCTL_SET_VAR_EPHEMERIS 48
583#define CXD56_GNSS_IOCTL_GET_VAR_EPHEMERIS 49
593#define CXD56_GNSS_IOCTL_SET_USECASE 50
602#define CXD56_GNSS_IOCTL_GET_USECASE 51
612#define CXD56_GNSS_IOCTL_SET_1PPS_OUTPUT 52
621#define CXD56_GNSS_IOCTL_GET_1PPS_OUTPUT 53
630#define CXD56_GNSS_IOCTL_GET_VERSION 54
639#define CXD56_GNSS_IOCTL_SLEEP 55
648#define CXD56_GNSS_IOCTL_WAKEUP 56
657#define CXD56_GNSS_IOCTL_RESET 57
661#define CXD56_GNSS_IOCTL_INVAL 0
662#define CXD56_GNSS_IOCTL_MAX 58
677#define CXD56_GNSS_STMOD_COLD 0
678#define CXD56_GNSS_STMOD_WARM 1
679#define CXD56_GNSS_STMOD_WARM_ACC2 2
680#define CXD56_GNSS_STMOD_HOT 3
681#define CXD56_GNSS_STMOD_HOT_ACC 4
682#define CXD56_GNSS_STMOD_HOT_ACC2 5
683#define CXD56_GNSS_STMOD_HOT_ACC3 6
684#define CXD56_GNSS_STMOD_GSPQ CXD56_GNSS_STMOD_HOT_ACC3
693#define CXD56_GNSS_GPS_ALMANAC_SIZE 2048
695#define CXD56_GNSS_GPS_EPHEMERIS_SIZE 3072
697#define CXD56_GNSS_GLONASS_ALMANAC_SIZE 576
699#define CXD56_GNSS_GLONASS_EPHEMERIS_SIZE 1152
701#define CXD56_GNSS_QZSSL1CA_ALMANAC_SIZE 640
703#define CXD56_GNSS_QZSSL1CA_EPHEMERIS_SIZE 960
711#define CXD56_GNSS_PVTLOG_THRESHOLD_FULL 0
712#define CXD56_GNSS_PVTLOG_THRESHOLD_HALF 1
713#define CXD56_GNSS_PVTLOG_THRESHOLD_ONE_DATA 2
724#define CXD56_GNSS_READ_OFFSET_LAST_GNSS 0x0000
728#define CXD56_GNSS_READ_OFFSET_GNSS(N) (0x1000 + 0x800 * (N))
732#define CXD56_GNSS_READ_OFFSET_AGPS 0x5000
736#define CXD56_GNSS_READ_OFFSET_RTK 0x6000
740#define CXD56_GNSS_READ_OFFSET_GPSEPHEMERIS 0x7000
744#define CXD56_GNSS_READ_OFFSET_GLNEPHEMERIS 0x8000
748#define CXD56_GNSS_READ_OFFSET_SBAS 0x9000
752#define CXD56_GNSS_READ_OFFSET_DCREPORT 0x9800
756#define CXD56_GNSS_READ_OFFSET_SARRLM 0x9900
760#define CXD56_GNSS_READ_OFFSET_SPECTRUM 0xa000
764#define CXD56_GNSS_READ_OFFSET_INFO 0xf000
768#define CXD56_GNSS_READ_OFFSET_PVTLOG 0x10000
779#define CXD56_GNSS_SIG_GNSS 0
783#define CXD56_GNSS_SIG_PVTLOG 2
787#define CXD56_GNSS_SIG_AGPS 3
791#define CXD56_GNSS_SIG_RTK 4
795#define CXD56_GNSS_SIG_SPECTRUM 5
799#define CXD56_GNSS_SIG_GPSEPHEMERIS 11
803#define CXD56_GNSS_SIG_GLNEPHEMERIS 12
807#define CXD56_GNSS_SIG_SBAS 14
811#define CXD56_GNSS_SIG_DCREPORT 15
815#define CXD56_GNSS_SIG_SARRLM 16
uint8_t step1
Definition: gnss.h:984
uint32_t satellite
Definition: gnss.h:994
double altitude
Definition: gnss.h:880
float cn
Definition: gnss.h:1006
uint8_t enable
Definition: gnss.h:980
uint32_t gnss
Definition: gnss.h:1073
uint8_t gnsssig
Definition: gnss.h:1024
uint32_t reserve2
Definition: gnss.h:996
uint32_t cycle
Definition: gnss.h:847
uint16_t sec
Definition: gnss.h:951
uint32_t reserve3
Definition: gnss.h:997
float age
Definition: gnss.h:911
int signo
Definition: gnss.h:1025
uint32_t mode
Definition: gnss.h:840
int fd
Definition: gnss.h:1022
void * data
Definition: gnss.h:1026
double latitude
Definition: gnss.h:878
float cepi
Definition: gnss.h:912
float doppler
Definition: gnss.h:1007
struct cxd56_gnss_date_s date
Definition: gnss.h:868
uint32_t * data
Definition: gnss.h:859
uint32_t frac
Definition: gnss.h:952
uint32_t threshold
Definition: gnss.h:1054
uint16_t size
Definition: gnss.h:922
uint8_t point2
Definition: gnss.h:983
uint64_t sbasout
Definition: gnss.h:1075
uint32_t size
Definition: gnss.h:1085
int ephout
Definition: gnss.h:1074
uint8_t * data
Definition: gnss.h:921
double longitude
Definition: gnss.h:879
int32_t z
Definition: gnss.h:891
uint8_t point1
Definition: gnss.h:982
struct cxd56_gnss_status_s status
Definition: gnss.h:1063
uint32_t type
Definition: gnss.h:856
int interval
Definition: gnss.h:1072
uint8_t step2
Definition: gnss.h:985
uint32_t time
Definition: gnss.h:981
double taugps
Definition: gnss.h:971
uint32_t reserve1
Definition: gnss.h:995
int32_t y
Definition: gnss.h:890
int32_t x
Definition: gnss.h:889
struct cxd56_gnss_time_s time
Definition: gnss.h:869
acquist data and size for AGPS
Definition: gnss.h:920
Time from frame start[sec].
Definition: gnss.h:950
different time between AGPS and GLONASS Time
Definition: gnss.h:970
High precision receiver time.
Definition: gnss.h:960
tow assist data and size for AGPS
Definition: gnss.h:930
utc model data and size for AGPS
Definition: gnss.h:940
CEP age info.
Definition: gnss.h:910
Definition: gnss_type.h:355
date and time
Definition: gnss.h:867
ellipsoidal position
Definition: gnss.h:877
Sattelite ephemeris data.
Definition: gnss.h:1093
GNSS operation mode and cycle.
Definition: gnss.h:834
Sattelite almanac, ephemeris data.
Definition: gnss.h:855
ellipsoidal position
Definition: gnss.h:888
Sattelite ephemeris data.
Definition: gnss.h:1083
Information for use after being signaled to read data asychronously.
Definition: gnss.h:1034
signal setting for reading data asychronously The field 'enable' of struct cxd56_gnss_signal_setting_...
Definition: gnss.h:1021
Signal spectrum output control parameter.
Definition: gnss.h:979
Definition: gnss_type.h:1211
Factory test info.
Definition: gnss.h:993
Factory test result.
Definition: gnss.h:1005
Definition: gnss_type.h:365
PVTLOG setting Parameter. If the log interval(cycle) is smaller than the positioning interval,...
Definition: gnss.h:1052
Stored logs status of PVTLOG.
Definition: gnss.h:1062
RTK output setting.
Definition: gnss.h:1071