You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

driver_italk.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. /*
  2. * This file is Copyright (c) 2010 by the GPSD project
  3. * SPDX-License-Identifier: BSD-2-clause
  4. */
  5. #ifndef _GPSD_ITALK_H_
  6. #define _GPSD_ITALK_H_
  7. /* 0 and 1 are responses to the <?> ping for iTalk and NMEA respectively */
  8. #define PROTO_ITALK 0
  9. #define PROTO_NMEA 1
  10. /*
  11. * Assistance from Timo Ylhainen of Fastrax is acknowledged and appreciated.
  12. *
  13. * iTalk is a messaging system which communicates between tasks, which may
  14. * be running on different devices (nodes). For our purposes (receiver
  15. * configuration), we will probably be sending to the SYSTEM task.
  16. */
  17. #define TASK_MASK 0x1f /* 5 low bits of src/dst fields */
  18. #define NODE_MASK 0xe0 /* 3 high bits of src/dst fields */
  19. #define NODE_UNDEF 0x00 /* Used in message routing */
  20. #define NODE_ITRAX 0x20 /* The receiver */
  21. #define NODE_HOST 0x40 /* Software on your computer */
  22. #define NODE_GPSWB 0x60 /* GPSWorkbench seems to be HOST|ITRAX */
  23. /* FIX-ME: These defines will likely be replaced by an enum
  24. * once I map every message to the task that sent it.
  25. */
  26. /* System controller on the receiver */
  27. #define TASK_SYSTEM 0
  28. /* Acquisition & Tracking messages (PD) */
  29. #define TASK_TRACK1 2
  30. #define TASK_TRACK2 3
  31. /* Data decoding messages (PD) */
  32. #define TASK_DATA 4
  33. /* Navigation messages are sent by these tasks (PD) */
  34. #define TASK_NAV1 7
  35. #define TASK_NAV2 8
  36. #define TASK_NAV3 9
  37. /* Host controller software (PD) */
  38. #define TASK_HOST 31
  39. #define MAX_NR_VISIBLE_PRNS 16
  40. /* iTalk Message IDs - isuite.fastrax.fi/sdk/331/Protocols/PRO_MsgId.html */
  41. #define ITALK_ACQ_DATA 1
  42. #define ITALK_PRN_STATUS 2
  43. #define ITALK_TRACK 3
  44. #define ITALK_PSEUDO 4
  45. #define ITALK_AGC 6
  46. #define ITALK_NAV_FIX 7
  47. #define ITALK_RAW_ALMANAC 9
  48. #define ITALK_RAW_EPHEMERIS 10
  49. #define ITALK_SV_HEALTH 11
  50. #define ITALK_UTC_IONO_MODEL 12
  51. #define ITALK_PRN_PRED 13
  52. #define ITALK_FREQ_PRED 14
  53. #define ITALK_SUBFRAME 15
  54. #define ITALK_BIT_STREAM 18
  55. #define ITALK_DBGTRACE 19
  56. #define ITALK_START 64
  57. #define ITALK_STOP 65
  58. #define ITALK_SLEEP 66
  59. #define ITALK_STATUS 67
  60. #define ITALK_ITALK_CONF 68
  61. #define ITALK_SYSINFO 69
  62. #define ITALK_ITALK_TASK_ROUTE 70
  63. #define ITALK_PARAM_CTRL 71
  64. #define ITALK_PARAMS_CHANGED 72
  65. #define ITALK_START_COMPLETED 73
  66. #define ITALK_STOP_COMPLETED 74
  67. #define ITALK_LOG_CMD 75
  68. #define ITALK_SYSTEM_START 76
  69. #define ITALK_STOP_SEARCH 79
  70. #define ITALK_SEARCH 80
  71. #define ITALK_PRED_SEARCH 81
  72. #define ITALK_SEARCH_DONE 82
  73. #define ITALK_TRACK_DROP 88
  74. #define ITALK_TRACK_STATUS 90
  75. #define ITALK_HANDOVER_DATA 92
  76. #define ITALK_CORE_SYNC 93
  77. #define ITALK_WAAS_RAWDATA 96
  78. #define ITALK_ASSISTANCE 98
  79. #define ITALK_PULL_FIX 99
  80. #define ITALK_MEMCTRL 112
  81. #define ITALK_STOP_TASK 255
  82. /* NAV_FIX */
  83. #define FIX_CONV_VEL_VALID 0x0002
  84. #define FIX_CONV_ACC_VALID 0x0004
  85. #define FIX_CONV_DOP_VALID 0x0010
  86. #define FIX_CONV_ERR_VALID 0x0020
  87. #define FIX_CONV_UTC_VALID 0x0040
  88. #define FIX_CONV_UND_VALID 0x0080
  89. #define FIX_CONV_MAG_VALID 0x0100
  90. #define FIX_CONV_GRID_VALID 0x0200
  91. #define FIX_CONV_VEL_ESTIMATED 0x0400
  92. #define FIX_FLAG_POS_REJECT_FOM 0x0003
  93. #define FIX_FLAG_POS_REJECT_DOP 0x0004
  94. #define FIX_FLAG_POS_PINNING 0x0020
  95. #define FIX_FLAG_VEL_REJECT_RES 0x0003
  96. #define FIX_FLAG_ACCELERATION 0x4000
  97. #define FIX_FLAG_VEL_RELIABLE 0x0020
  98. #define FIX_FLAG_VEL_RELIABLE_3D 0x0040
  99. #define FIX_FLAG_MASK_INVALID 0x0007
  100. #define FIX_FLAG_REJECT_NUM_SV 0x0001
  101. #define FIX_FLAG_REJECT_POSTRAIM 0x0002
  102. #define FIX_FLAG_REJECT_OTHER 0x0007
  103. #define FIX_FLAG_RELIABLE 0x0008
  104. #define FIX_FLAG_PF_RAIM 0x0010
  105. #define FIX_FLAG_3DFIX 0x0100
  106. #define FIX_FLAG_DGPS_CORRECTION 0x0200
  107. #define FIX_FLAG_TROPO 0x0400
  108. #define FIX_FLAG_IONO 0x0800
  109. #define FIX_FLAG_INS 0x2000
  110. #define FIXINFO_FLAG_VALID 0x0002
  111. #define FIXINFO_FLAG_NEW_FIX 0x0004
  112. #define FIXINFO_FLAG_SKY_FIX 0x0008
  113. #define FIXINFO_FLAG_AID_GPSTIME 0x0010
  114. #define FIXINFO_FLAG_AID_TIMESTAMP 0x0020
  115. #define FIXINFO_FLAG_AID_EPHEMERIS 0x0040
  116. #define FIXINFO_FLAG_AID_ALTITUDE 0x0080
  117. #define FIXINFO_FLAG_KALMAN 0x1000
  118. #define FIXINFO_FLAG_INTERNAL 0x2000
  119. #define FIXINFO_FLAG_FIRSTFIX 0x4000
  120. /* PRN_STATUS */
  121. #define PRN_FLAG_FOUND 0x0001
  122. #define PRN_FLAG_TRACKING 0x0002
  123. #define PRN_FLAG_USE_IN_NAV 0x0004
  124. /* UTC_IONO_MODEL */
  125. #define UTC_IONO_MODEL_UTCVALID 0x0001
  126. #define UTC_IONO_MODEL_IONOVALID 0x0002
  127. /* SUBFRAME */
  128. #define SUBFRAME_WORD_FLAG_MASK 0x03ff
  129. #define SUBFRAME_GPS_PREAMBLE_INVERTED 0x0400
  130. /* PSEUDO */
  131. #define PSEUDO_OBS_DOPPLER_OK 0x0001
  132. #define PSEUDO_OBS_PSEUDORANGE_OK 0x0002
  133. #define PSEUDO_OBS_TOW_OK 0x0004
  134. #define PSEUDO_OBS_PRN_OK 0x0008
  135. #define PSEUDO_OBS_ELEV_OK 0x0010
  136. #define PSEUDO_OBS_SNR_OK 0x0020
  137. #define PSEUDO_OBS_SV_HEALTHY 0x0040
  138. #define PSEUDO_OBS_NO_CROSS_CORR 0x0080
  139. #define PSEUDO_OBS_DATA_EXISTS 0x0100
  140. #define PSEUDO_OBS_DATA_GOOD 0x0200
  141. #define PSEUDO_OBS_BIT_LOCK 0x0400
  142. #define PSEUDO_OBS_FIRST_MEAS 0x0800
  143. #define PSEUDO_OBS_RAIM_P_OK 0x1000
  144. #define PSEUDO_OBS_RAIM_V_OK 0x2000
  145. #define PSEUDO_OBS_RAIM_T_OK 0x4000
  146. #define PSEUDO_OBS_PLL 0x8000
  147. #define PSEUDO_OBS_MEAS_OK ( PSEUDO_OBS_ELEV_OK | PSEUDO_OBS_SNR_OK | PSEUDO_OBS_PRN_OK | PSEUDO_OBS_NO_CROSS_CORR | PSEUDO_OBS_SV_HEALTHY | PSEUDO_OBS_DATA_EXISTS | PSEUDO_OBS_DATA_GOOD | PSEUDO_OBS_PSEUDORANGE_OK )
  148. #define PSEUDO_OBS_DOPPLER_MEAS_OK ( PSEUDO_OBS_ELEV_OK | PSEUDO_OBS_SNR_OK | PSEUDO_OBS_PRN_OK | PSEUDO_OBS_NO_CROSS_CORR | PSEUDO_OBS_SV_HEALTHY | PSEUDO_OBS_DATA_EXISTS | PSEUDO_OBS_DATA_GOOD | PSEUDO_OBS_DOPPLER_OK )
  149. #define PSEUDO_TOW_WEEK_OK 0x0001
  150. #define PSEUDO_TOW_OK 0x0002
  151. #define PSEUDO_RESYNCH 0x0004
  152. #define PSEUDO_FIRST_MEAS 0x0008
  153. #define PSEUDO_UNSCHEDULED 0x0010
  154. #define PSEUDO_OBS_CORRECTED_AMBIGUOUS 0x0001
  155. #define PSEUDO_OBS_CORRECTED_BY_SMOOTHING 0x0002
  156. #define PSEUDO_OBS_CORRECTED_BY_IONO 0x0008
  157. #define PSEUDO_OBS_CORRECTED_BY_TROPO 0x0010
  158. #define PSEUDO_OBS_CORRECTED_BY_FAST_CORR 0x0020
  159. #define PSEUDO_OBS_CORRECTED_BY_DGPS 0x0040
  160. #define PSEUDO_OBS_CORRECTED_BY_SLOW_CORR 0x0080
  161. #define PSEUDO_OBS_CORRECTED_BY_WAAS_IONO 0x0100
  162. #define PSEUDO_OBS_CORR_POSSIBLE_XCORR 0x4000
  163. #define PSEUDO_OBS_CORR_FRAME_LOCK 0x8000
  164. #define PSEUDO_OBS_CORRECTED_BY_WAAS ( PSEUDO_OBS_CORRECTED_BY_WAAS_IONO | PSEUDO_OBS_CORRECTED_BY_FAST_CORR)
  165. /* MEMCTRL */
  166. #define MEM_WRITE 0x0002
  167. #define MEM_READD 0x0003
  168. #define MEM_BOOT 0x0004
  169. #define MEM_ERASE 0x0006
  170. #define MEM_XTAL_CALIBRATE 0x000a
  171. /* BOOT flags based on isuite.fastrax.fi/sdk/331/Protocols/PRO_NMEA.html */
  172. #define MEM_BOOT_NORMAL 0x0000
  173. #define MEM_BOOT_INT_FWLOADER 0x0001
  174. #define MEM_BOOT_DL_FWLOADER 0x0002
  175. #define MEM_BOOT_RELOC_ALTFW 0x0003
  176. /* Config Parameters - isuite.fastrax.fi/sdk/331/System/SYS_Parameters.html */
  177. /* System parameters */
  178. #define SYS_SET_ID 0x0001
  179. #define SYS_FACTORY_SET_ID 0x0002
  180. #define SYS_AUTOSTART 0x0380
  181. #define START_MODE_AUTO 0x0301
  182. #define SYS_LKG_SAVE_TIME_LIMIT 0x0008
  183. #define SYS_LKG_SAVE_DIST_LIMIT 0x0009
  184. #define SYS_LKG_SAVE_STOP_TIME_LIMIT 0x000a
  185. #define SYS_WATCHDOG 0x0028
  186. #define SYS_WATCHDOG_TIMEOUT 0x0029
  187. #define SYS_BOOT_ERASE_PARAMS 0x0080
  188. #define SYS_ENABLE_UI_LEDS 0x0081
  189. /* Protocols parameters */
  190. #define SYS_ITALK_PORT 0x0010
  191. #define SYS_ITALK_SPEED 0x0011
  192. #define SYS_ITALK_MASK 0x0012
  193. #define SYS_NMEA_PORT 0x0020
  194. #define SYS_NMEA_SPEED 0x0021
  195. #define SYS_NMEA_MASK 0x0022
  196. #define TRACK_ALT_MSG_ROUTING 0x047f
  197. #define OBS_ALT_MSG_ROUTING 0x047e
  198. /* Fix Conversion parameters */
  199. #define NAV_DATUM_ID 0x0b08
  200. #define NAV_GRID_ID 0x0b09
  201. #define NAV_GRID_NUMBER 0x0b0a
  202. #define NAV_HEAD_VEL_THR 0x0b0b
  203. #define NAV_HEAD_VEL_FILTER 0x0b0c
  204. #define NAV_HEAD_VEL_THRMAX 0x0b0d
  205. #define NAV_HEAD_VEL_THR_PLL 0x0b0e
  206. #define NAV_HEAD_VEL_THRMAX_PLL 0x0b0f
  207. #define NAV_HOLD_HEADING_IF_NO_FIX 0x0bd0
  208. /* General navigation parameters */
  209. #define NAV_MODE 0x0b01
  210. #define NAV_FIX_INTERVAL 0x0b02
  211. #define NAV_OUTPUT_INTERVAL 0x0b03
  212. #define NAV_FOM_LIMIT 0x0b10
  213. #define NAV_VEL_FOM_LIMIT 0x0b15
  214. #define NAV_HDOP_LIMIT 0x0b11
  215. #define NAV_VDOP_LIMIT 0x0b12
  216. #define NAV_ALT_LIMIT 0x0b13
  217. #define NAV_VEL_LIMIT 0x0b14
  218. #define NAV_EXT_AIDING_ALT 0x0b20
  219. #define NAV_CS_INIT_VAR 0x0b30
  220. #define NAV_CS_PROC_VAR 0x0b31
  221. #define NAV_CS_MEAS_VAR 0x0b32
  222. #define NAV_FILTER_VEL_LOW 0x0b33
  223. #define NAV_FILTER_VEL_HIGH 0x0b34
  224. #define NAV_MAX_LKGAGE 0x0b40
  225. #define NAV_MAX_2D_FIX_SEC 0x0b41
  226. #define NAV_CARRIERSMOOTHING_ENA 0x0b81
  227. #define NAV_OLD_DATA_ENA 0x0b82
  228. #define NAV_SNR_WEIGHTING_ENA 0x0b83
  229. #define NAV_NORMAL_ENV_ENA 0x0b84
  230. #define NAV_IONO_ENA 0x0b85
  231. #define NAV_TROPO_ENA 0x0b87
  232. #define NAV_DGPS_ENA 0x0b88
  233. #define NAV_VEL_FILTER_ENA 0x0b8b
  234. #define NAV_ALT_LIMIT_ENA 0x0b8c
  235. #define NAV_VEL_LIMIT_ENA 0x0b8d
  236. #define NAV_EXT_AIDING_ALT_ENA 0x0b8e
  237. #define NAV_FOM_ENA 0x0b8f
  238. #define NAV_HDOP_ENA 0x0b90
  239. #define NAV_VDOP_ENA 0x0b91
  240. #define NAV_TENTATIVE_ENA 0x0b96
  241. #define NAV_PULLFIX_ENA 0x0b97
  242. #define NAV_2D_FIX_ENA 0x0ba0
  243. #define NAV_RESERVED_001 0x0ba1
  244. #define NAV_OUTPUT_LAST_POS_IF_NO_FIX 0x0bb0
  245. #define NAV_ESTIMATE_VEL_WITHOUT_PLL 0x0bb1
  246. #define NAV_OUTPUT_LAST_VEL_IF_NO_FIX 0x0bb2
  247. /* Position pinning parameters */
  248. #define NAV_PIN_VEL 0x0b35
  249. #define NAV_PIN_DRIFT_ERR 0x0b36
  250. #define NAV_PIN_XYZ_ERR 0x0b37
  251. #define NAV_PIN_TIMEOUT 0x0b38
  252. #define NAV_PIN_START_DELAY 0x0b39
  253. #define NAV_PINNING_ENA 0x0b8a
  254. /* Interval mode parameters */
  255. #define NAV_INTMODE_NBR_FIXES 0x0b22
  256. #define NAV_INTMODE_FIX_INTERVAL 0x0b23
  257. #define NAV_INTMODE_TRY_FIND_SV 0x0b24
  258. #define NAV_INTMODE_TRY_GET_FIX 0x0b25
  259. #define NAV_INTMODE_MAX_STAY_UP 0x0b26
  260. #define NAV_INTMODE_NUM_IGNORED_FIXES 0x0b27
  261. #define NAV_INTERVAL_MODE_ENA 0x0ba2
  262. /* Kalman navigation parameters */
  263. #define KLM_MODE 0x0801
  264. #define KLM_MAX_NUM_STATES 0x0802
  265. #define KLM_START_FLAGS 0x0803
  266. #define KLM_OUTPUT_FLAGS 0x0804
  267. #define KLM_NUM_OBS_LIMIT 0x0805
  268. #define KLM_MEAS_FLAGS 0x0806
  269. #define KLM_COV_LIMIT 0x0807
  270. #define KLM_DOPPLER_NOISE 0x0810
  271. #define KLM_RANGE_NOISE 0x0811
  272. #define KLM_DOPPLER_NOISE_LOW 0x0812
  273. #define KLM_RANGE_NOISE_LOW 0x0813
  274. #define KLM_NOISE_SNR_LOW 0x0814
  275. #define KLM_DOPPLER_NOISE_PLL 0x0815
  276. #define KLM_RANGE_NOISE_PLL 0x0816
  277. #define KLM_CLOCK_OFFSET_NOISE 0x0820
  278. #define KLM_CLOCK_DRIFT_NOISE 0x0821
  279. #define KLM_POS_NOISE 0x0822
  280. #define KLM_POS_NOISE_VERT 0x0823
  281. #define KLM_VEL_NOISE 0x0824
  282. #define KLM_VEL_NOISE_VERT 0x0825
  283. #define KLM_ACC_NOISE 0x0826
  284. #define KLM_ACC_NOISE_VERT 0x0827
  285. #define KLM_ACC_NOISE_PARAM 0x0828
  286. #define KLM_POS_INIT_UNC 0x0830
  287. #define KLM_VEL_INIT_UNC 0x0831
  288. #define KLM_CLOCK_OFFSET_INIT_UNC 0x0832
  289. #define KLM_CLOCK_DRIFT_INIT_UNC 0x0833
  290. #define KLM_RESERVED_001 0x0841
  291. #define KLM_RESERVED_002 0x0842
  292. #define KLM_RESERVED_003 0x0843
  293. #define KLM_RESERVED_004 0x0844
  294. #define KLM_RESERVED_005 0x0845
  295. #define KLM_RESERVED_006 0x0846
  296. #define KLM_RESERVED_007 0x0847
  297. #define KLM_RESERVED_008 0x0848
  298. /* Observation parameters */
  299. #define TRACK_MEAS_INTERVAL 0x0420
  300. #define TRACK_CHANNELS 0x041d
  301. #define OBS_ELEV_LIMIT 0x0101
  302. #define OBS_SNR_LIMIT 0x0102
  303. #define OBS_SNR_RAIM_LIMIT 0x0103
  304. #define OBS_CROSS_CORR_SNR_DIFF 0x0120
  305. #define OBS_MAX_SNR 0x0121
  306. #define OBS_PLL_CROSS_CORR_THR 0x0122
  307. #define OBS_FLL_CROSS_CORR_THR 0x0123
  308. #define OBS_FREQ_CROSS_CORR_THR 0x0124
  309. #define OBS_EPOCH_LIMIT 0x0130
  310. #define OBS_ELEV_LIMIT_ENA 0x0181
  311. #define OBS_SNR_LIMIT_ENA 0x0182
  312. #define OBS_SNR_RAIM_ENA 0x0183
  313. #define SAT_ORBIT_FIT_UPDATE 0x0203
  314. #define SAT_FIRST_WEEK 0x0204
  315. #define SAT_NUM_LEAP 0x0205
  316. #define SAT_PRED_MAX_LKGAGE 0x0220
  317. #define SAT_PRED_PHASE_TIMEOUT 0x0221
  318. #define SAT_PRED_LKG_TIMEOUT 0x0222
  319. #define SAT_ORBIT_CHECK 0x0281
  320. /* Unav Tracking parameters */
  321. #define TRACK_DLL_ALPHA 0x0401
  322. #define TRACK_DLL_BETA 0x0402
  323. #define TRACK_DLL_THR_HIGH 0x0403
  324. #define TRACK_DLL_THR_LOW 0x0404
  325. #define TRACK_DLL_POW_NARROW 0x0405
  326. #define TRACK_DLL_POW_WIDE 0x0406
  327. #define TRACK_FLL_RESPONSE_TIME 0x0407
  328. #define TRACK_POW_CALIBRATION 0x0408
  329. #define TRACK_FLL_THR 0x0409
  330. #define TRACK_FLL_POW_NARROW 0x040b
  331. #define TRACK_FLL_POW_WIDE 0x040c
  332. #define TRACK_PLL_CTH 0x040d
  333. #define TRACK_PLL_CDTH 0x040e
  334. #define TRACK_PLL_CD2TH 0x040f
  335. #define TRACK_RESERVED_000 0x0410
  336. #define TRACK_RESERVED_001 0x0411
  337. #define TRACK_RESERVED_002 0x0412
  338. #define TRACK_RESERVED_003 0x0413
  339. #define TRACK_RESERVED_004 0x0414
  340. #define TRACK_RESERVED_005 0x0415
  341. #define TRACK_RESERVED_006 0x0416
  342. #define TRACK_RESERVED_007 0x0417
  343. #define TRACK_RESERVED_008 0x0418
  344. #define TRACK_RESERVED_009 0x0419
  345. #define TRACK_RESERVED_010 0x0425
  346. #define TRACK_RESERVED_011 0x0426
  347. #define TRACK_RESERVED_012 0x0427
  348. #define TRACK_RESERVED_013 0x0428
  349. #define TRACK_RESERVED_014 0x0429
  350. #define TRACK_RESERVED_016 0x042a
  351. #define TRACK_RESERVED_017 0x042b
  352. #define TRACK_RESERVED_015 0x0483
  353. #define SUBF_CHECK_FLAGS 0x0432
  354. /* Unav Track task parameters */
  355. #define TRACK_GROUP_1 0x041a
  356. #define TRACK_GROUP_2 0x041b
  357. #define TRACK_GROUP_2_DELAY 0x041c
  358. #define TRACK_CC_DELAY 0x041e
  359. #define TRACK_CC_THR 0x041f
  360. #define TRACK_PLL_ENA 0x0480
  361. #define TRACK_NAVAID_ENA 0x0482
  362. #define TRACK_SHIFT_REG 0x0421
  363. /* Agc config parameters */
  364. #define TRACK_AGC_LO 0x0422
  365. #define TRACK_AGC_HI 0x0423
  366. #define TRACK_AGC_MAX_HI 0x0424
  367. #define TRACK_AGC_ENA 0x0481
  368. /* PPS parameters */
  369. #define PPS_DUTYCYCLE 0x0440
  370. #define PPS_FREQ 0x0441
  371. #define PPS_DELAY 0x0442
  372. #define PPS_SURVEYLEN 0x0443
  373. #define PPS_MEAS_MS 0x0444
  374. #define PPS_ENA 0x0490
  375. #define PPS_SYNC_TRACK 0x0491
  376. #define PPS_ENA_PRED 0x0492
  377. #define PPS_INVERT 0x0493
  378. /* Frequency plan parameters */
  379. #define FREQ_XTAL 0x0501
  380. #define FREQ_MCLK_NOM 0x0502
  381. #define FREQ_MCLK_DENOM 0x0503
  382. #define FREQ_RF_NOM 0x0504
  383. #define FREQ_RF_DENOM 0x0505
  384. #define FREQ_MIXER_OFFSET 0x0506
  385. #define FREQ_TME2 0x0507
  386. #define FREQ_PARAM_ENA 0x0581
  387. /* Search parameters */
  388. #define SEARCH_XTAL_UNC 0x0701
  389. #define SEARCH_DOPPLER_UNC 0x0702
  390. #define SEARCH_WIN_PRED_EVEN 0x0703
  391. #define SEARCH_WIN_PRED_ODD 0x0704
  392. #define SEARCH_SENS_FULL_R1 0x0705
  393. #define SEARCH_SENS_FULL_R2 0x0706
  394. #define SEARCH_SENS_FULL_R3 0x0707
  395. #define SEARCH_SENS_PRED_EVEN 0x0708
  396. #define SEARCH_SENS_PRED_ODD 0x0709
  397. #define SEARCH_PRED_ROUNDS 0x070a
  398. #define SEARCH_BACK_PRNS 0x070b
  399. #define SEARCH_GPS_MASK 0x070c
  400. #define SEARCH_WAAS_MASK 0x070d
  401. #define SEARCH_AUTO_PD_ROUNDS 0x070e
  402. #define SEARCH_FLAGS 0x070f
  403. #define SEARCH_PREC_PRED_TIMEOUT 0x0710
  404. #define SEARCH_PRED_TIMEOUT 0x0711
  405. #define SEARCH_FERRY_COND 0x0712
  406. #define SEARCH_IFFERRY_PRED_COND 0x0713
  407. #define SEARCH_TUNNEL_IN_SNR 0x0714
  408. #define SEARCH_TUNNEL_OUT_SNR 0x0715
  409. #define SEARCH_PRED_ENA 0x0781
  410. #define SEARCH_BITSYNC_ENA 0x0782
  411. #define SEARCH_AUTO_PRED_ENA 0x0783
  412. #define SEARCH_AUTO_PD_ENA 0x0784
  413. #define SEARCH_SE_PD 0x0785
  414. /* Unav Acquisition parameters */
  415. #define ACQ_SENS_9_COH 0x0901
  416. #define ACQ_SENS_9_NONCOH 0x0902
  417. #define ACQ_SENS_9_THR 0x0903
  418. #define ACQ_SENS_9_BIN 0x0904
  419. #define ACQ_SENS_10_COH 0x0905
  420. #define ACQ_SENS_10_NONCOH 0x0906
  421. #define ACQ_SENS_10_THR 0x0907
  422. #define ACQ_SENS_10_BIN 0x0908
  423. #define ACQ_MSG_ENA 0x0981
  424. #define ACQ_QUICK_SEARCH_ENA 0x0982
  425. #define SE_NONCOH_SHIFT 0x0940
  426. #define SE_IR_SHIFT 0x0941
  427. #define SE_THR 0x0942
  428. #define SE_INT_ENA 0x09a0
  429. /* Logging parameters */
  430. #define LOG_MODE 0x0d01
  431. #define LOG_INTERVAL_MIN 0x0d02
  432. #define LOG_INTERVAL_MAX 0x0d03
  433. #define LOG_MOVE_MIN 0x0d04
  434. #define LOG_MOVE_MAX 0x0d05
  435. #define LOG_VELOCITY_MIN 0x0d06
  436. #define LOG_VELOCITY_MAX 0x0d07
  437. #define LOG_MAXITEMS 0x0d08
  438. #define LOG_STORE_LAT_LONG 0x0d80
  439. #define LOG_STORE_ALT 0x0d81
  440. #define LOG_STORE_ALT_FULL 0x0d82
  441. #define LOG_STORE_GPSTIME 0x0d83
  442. #define LOG_STORE_GPSTIME_MS 0x0d84
  443. #define LOG_STORE_DIRECTION 0x0d85
  444. #define LOG_STORE_VEL 0x0d86
  445. #define LOG_STORE_VEL_VERT 0x0d87
  446. #define LOG_STORE_FIXINFO 0x0d88
  447. /* SBAS parameters */
  448. #define WAAS_TIMEOUT_MODE 0x0b60
  449. #define WAAS_MAX_CHANNELS 0x0b61
  450. #define WAAS_ENA 0x0bc0
  451. #define WAAS_MSG_0_ENA 0x0bc1
  452. #define WAAS_STRICT_ENA 0x0bc2
  453. /* Sony Track parameters */
  454. #define TRACK_DLL_COEFF_GPS 0x0f01
  455. #define TRACK_DLL_COEFF_DISCR 0x0f02
  456. #define TRACK_DLL_LIM_GPS 0x0f03
  457. #define TRACK_DLL4_COEFF_A 0x0f04
  458. #define TRACK_DLL4_COEFF_B 0x0f05
  459. #define TRACK_DLL4_COEFF_C 0x0f06
  460. #define TRACK_DLL4_COEFF_D 0x0f07
  461. #define TRACK_DLL4_FASTADJ_THRES 0x0f08
  462. #define TRACK_ELGATE_NARROW 0x0f09
  463. #define TRACK_COSTASLF_GPS 0x0f0a
  464. #define TRACK_COSTASLF_WAAS 0x0f0b
  465. #define TRACK_LPF_GPS_ACQ 0x0f0c
  466. #define TRACK_LPF_GPS_LOCK 0x0f0d
  467. #define TRACK_LPF_WAAS_LOCK 0x0f0e
  468. #define TRACK_LPF_NOISE 0x0f0f
  469. #define TRACK_SIGDETECT_TH 0x0f10
  470. #define TRACK_SIGDETECT_TH_HS 0x0f11
  471. #define TRACK_TIMEOUT_ACQ 0x0f12
  472. #define TRACK_TIMEOUT_ACQHS 0x0f13
  473. #define TRACK_TIMEOUT_REACQ 0x0f14
  474. #define TRACK_HANDOVER_OFFSET 0x0f15
  475. #define TRACK_CROSSCORR_THRES 0x0f16
  476. #define TRACK_DLLCTRL_INTERVAL 0x0f17
  477. #define TRACK_BITEXTRACT 0x0f18
  478. #define TRACK_RESERVED001 0x0f19
  479. #define TRACK_RESERVED002 0x0f1a
  480. #define TRACK_WAAS_PRN_BITSTREAM 0x0f1b
  481. #define TRACK_COSTAS_ERROR_TH 0x0f1d
  482. #define TRACK_CARRFLT_OUT_TH 0x0f1e
  483. #define TRACK_CARRFLT_MIDDLE_TH 0x0f1f
  484. #define TRACK_CARRFLT_OUT_DIV 0x0f20
  485. #define TRACK_CARRFLT_MIDDLE_DIV 0x0f21
  486. #define TRACK_CARRFLT_INBAND_DIV 0x0f22
  487. #define TRACK_LATCHTIME_OFFSET 0x0f23
  488. #define TRACK_DIRECTHANDOVER_OFFSET 0x0f24
  489. #define TRACK_EN_HS 0x0f80
  490. #define TRACK_CARR_AID 0x0f81
  491. #define WAAS_EN_DECODE 0x0f82
  492. #define TRACK_CARRCHKATLOCK 0x0f83
  493. #define TRACK_BL_REACQ 0x0f84
  494. /* Sony Test parameters */
  495. #define SONYTEST_DISABLE_PORTS 0x0f85
  496. /* Sony Acq parameters */
  497. #define SACQ_SEARCH_CH_NUM 0x0f30
  498. #define SACQ_NOISE_COUNT_NUM 0x0f31
  499. #define SACQ_NOISE_VALID_TIME 0x0f32
  500. #define SACQ_NOISE_K 0x0f33
  501. #define SACQ_PEAK_FD 0x0f34
  502. #define SACQ_PEAK_NFD 0x0f35
  503. #define SACQ_RESERVE 0x0f36
  504. #define SACQ_SEARCH_CH_NUM_VALID 0x0f96
  505. #endif /* _GPSD_ITALK_H_ */