le_gnss_interface.h

Go to the documentation of this file.
1 
2 
3 /*
4  * ====================== WARNING ======================
5  *
6  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
7  * DO NOT MODIFY IN ANY WAY.
8  *
9  * ====================== WARNING ======================
10  */
11 
12 /**
13  * @page c_gnss GNSS
14  *
15  * @ref le_gnss_interface.h "API Reference" <br>
16  * @ref platformConstraintsGnss <br>
17  * @ref howToGNSS "How To Use GNSS" <br>
18  * @ref toolsTarget_gnss "GNSS target tool" <br>
19  *
20  * <HR>
21  *
22  * This API provides access to the GNSS device.
23  *
24  * GNSS or Global Navigation Satellite System is a satellite navigation system with global coverage.
25  *
26  * This API provides function to configure the GNSS device and retrieve position information.
27  *
28  * @section le_gnss_binding IPC interfaces binding
29  *
30  * All the functions of this API are provided by the @b positioningService application service.
31  *
32  * Here's a code sample binding to Positioning services:
33  * @verbatim
34  bindings:
35  {
36  clientExe.clientComponent.le_gnss -> positioningService.le_gnss
37  }
38  @endverbatim
39  *
40  * @section le_gnss_ControlApi GNSS Control API
41  *
42  * @subsection le_gnss_EnableDisable Enable/Disable GNSS device
43  *
44  * The application can enable/disable the GNSS device with the le_gnss_Enable()
45  * / le_gnss_Disable() functions.
46  * By default the GNSS device is enabled for the positioningService application service.
47  * Also see @ref howToGNSS.
48  *
49  * A sample code can be seen in the following page:
50  * - @subpage c_gnssSampleCodeEnableDisable
51  *
52  * @subsection le_gnss_StartStop Start/Stop GNSS device
53  *
54  * The application can start/stop the GNSS device with the le_gnss_Start() / le_gnss_Stop()
55  * functions.
56  * The default "HOT" start condition is applied and all assistance data are used.
57  * Also see @ref howToGNSS.
58  *
59  * A sample code can be seen in the following page:
60  * - @subpage c_gnssSampleCodeStartStop
61  *
62  * @subsubsection le_gnss_StartingMode Starting mode
63  *
64  * Starting modes are used only for test purposes and allow start performance measurement.
65  * @note For more information about start performances, please refer to your specific
66  * platform documentation.
67  *
68  * @subsubsection SettingConfiguration Setting configuration
69  *
70  * @warning The GNSS setting configuration depends on the platform. Please refer to
71  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
72  *
73  * @subsubsection le_gnss_Data GNSS data
74  * The following table describes the <b>minimum</b> required data for those starting modes:
75  *
76  * | GNSS Data / Starting mode | HOT | WARM | COLD | FACTORY |
77  *| -----------------------| -----| ------| ----- | ------- |
78  *| Broadcasted Ephemeris | Used | | | |
79  *| Extended Ephemeris | Used(1) | Used(2) | Used(2) | Removed (3) |
80  *| Approximate Time and Position | Used | Used | | |
81  *| Almanac | Used | Used | Used | Used (Factory) |
82  *
83  * For example, a requested HOT start without valid broadcasted ephemeris will be treated
84  * as a WARM start.
85  *
86  * @note (1) Extended Ephemeris can be used if Broadcasted Ephemeris are not valid.
87  * The Extended Ephemeris could be loaded using the le_gnss_LoadExtendedEphemerisFile()
88  * function.
89  * @note (2) Extended Ephemeris is used if the Extended Ephemeris file is loaded and valid.
90  * @note (3) Extended Ephemeris are removed when a FACTORY start is requested.
91  * The Extended Ephemeris could be loaded again using the le_gnss_LoadExtendedEphemerisFile()
92  * function.
93  *
94  * @subsubsection le_gnss_TTFF Time To First Fix (TTFF)
95  * The le_gnss_GetTtff() function provides the TTFF (first between 2-Dimensional or 3-Dimensional
96  * position fix) of the last position fix.
97  * The GNSS fix position is calculated by the GNSS engine. Its state can be retrieved by
98  * le_gnss_GetPositionState() function. The GNSS fix position states are given by le_gnss_FixState_t
99  * enum.
100  * @note The "estimated" fix is obtained when less than 3 Satellites Vehicle (SV) are used to
101  * establish the fix. It includes the case when no SVs are used.
102  *
103  * Please refer to @ref le_gnss_APIcallsRequirements. Also see @ref howToGNSS.
104  *
105  * A sample code can be seen in the following page:
106  * - @subpage c_gnssSampleCodeReStart
107  *
108  * @subsubsection le_gnss_InjectUtcTime Inject UTC time
109  * The le_gnss_InjectUtcTime() function injects the UTC time into the location engine. Providing an
110  * accurate UTC time reduces the time to find the first fix.
111  * @note It is mandatory to enable the 'Extended Ephemeris' file injection into the GNSS device with
112  * le_gnss_EnableExtendedEphemerisFile() before injecting time with le_gnss_InjectUtcTime API.
113  * @warning Your GNSS device may require a restart to take into account the enabling of the
114  * 'Extended Ephemeris' file injection.
115  * Please refer to your platform documentation @ref platformConstraintsGnss_SettingConfiguration for
116  * further details.
117  *
118  * @subsubsection le_gnss_ForceHotRestart Force HOT restart
119  * The le_gnss_ForceHotRestart() function performs a "HOT" restart of the GNSS device. The current
120  * GNSS session is stopped, then started using the available @ref le_gnss_Data.
121  * Please refer to @ref le_gnss_APIcallsRequirements. Also see @ref howToGNSS.
122  *
123  * @subsubsection le_gnss_ForceWarmRestart Force WARM restart
124  * The le_gnss_ForceWarmRestart() function performs a "WARM" restart of the GNSS device. The current
125  * GNSS session is stopped, then started using the available @ref le_gnss_Data.
126  * Please refer to @ref le_gnss_APIcallsRequirements. Also see @ref howToGNSS.
127  * @Note This API has a platform dependent feature. Please refer to
128  * @ref platformConstraintsGnss_WarmRestart for further details.
129  *
130  * @subsubsection le_gnss_ForceColdRestart Force COLD restart
131  * The le_gnss_ForceColdRestart() function performs a "COLD" restart of the GNSS device. The current
132  * GNSS session is stopped, then started using the available @ref le_gnss_Data.
133  * Please refer to @ref le_gnss_APIcallsRequirements. Also see @ref howToGNSS.
134  *
135  * @subsubsection le_gnss_ForceFactoryRestart Force FACTORY restart
136  * The le_gnss_ForceFactoryRestart() function performs a "FACTORY" restart of the GNSS device.
137  * The current GNSS session is stopped, then started using the available @ref le_gnss_Data.
138  * Please refer to @ref le_gnss_APIcallsRequirements. Also see @ref howToGNSS.
139  *
140  * @subsection le_gnss_AcquisitionRate Acquisition rate
141  * The GNSS position is computed and delivered each acquisition rate. The acquisition rate defines
142  * the time interval that must elapse between two final GPS positions calculation and reports.
143  * Its default value is 1 second.
144  * The application can configure/retreive the GNSS device acquisition rate with the
145  * le_gnss_SetAcquisitionRate() / le_gnss_GetAcquisitionRate() functions.
146  *
147  * Please refer to @ref le_gnss_APIcallsRequirements.
148  *
149  * A sample code can be seen in the following page:
150  * - @subpage c_gnssSampleCodeAcquisitionRate
151  *
152  * @subsection le_gnss_SetGetConstellation GNSS constellation selection
153  *
154  * The le_gnss_SetConstellation() function selects the GNSS constellation(s) used in solution.
155  * If all GNSS constellations are disabled, the GNSS engine is disabled.
156  *
157  * @warning Your GNSS device may require a restart to take into account this change.
158  * Please refer to your platform documentation @ref platformConstraintsGnss_SettingConfiguration for
159  * further details.
160  *
161  * Combinations of constellation for GPS, GLONASS, BDS, GALILEO and QZSS satellites are currently
162  * supported. Constellation for SBAS satellites is not supported.
163  *
164  * @warning Some constellation types are unsupported depending on the plateform. Please refer to
165  * @ref platformConstraintsGnss_ConstellationType section for full details.
166  *
167  * All supported GNSS constellations are enabled by default.
168  * The le_gnss_GetConstellation() function gets the GNSS constellation(s) enabled to be used
169  * in solution.
170  *
171  * le_gnss_SetConstellationArea sets the area for a GNSS constellation. le_gnss_GetConstellationArea
172  * gets the area for a GNSS constellation.
173  *
174  * A sample code can be seen in the following page:
175  * - @subpage c_gnssSampleCodeConstellation
176  *
177  * @subsection le_gnss_SetGetMinElevation GNSS minimum elevation selection
178  *
179  * The le_gnss_SetMinElevation() function sets the GNSS minimum elevation.
180  * Satellites with elevation lower than the minimum elevation will be ignored.
181  *
182  * The le_gnss_GetMinElevation() function gets the GNSS minimum elevation.
183  *
184  * A sample code can be seen in the following page:
185  * - @subpage c_gnssSampleCodeMinElevation
186  *
187  * @subsection le_gnss_NmeaSentences NMEA sentences selection
188  *
189  * The le_gnss_SetNmeaSentences() function selects the enabled NMEA sentences in the
190  * @ref le_gnss_NMEA with a bit mask. The supported values are listed in @ref le_gnss_NmeaBitMask_t.
191  *
192  * @note This function may be subject to limitations depending on the platform. Please refer to the
193  * @ref platformConstraintsGnss page.
194  *
195  * @warning Your GNSS device may require a restart to take into account this change.
196  * Please refer to your platform documentation @ref platformConstraintsGnss_SettingConfiguration for
197  * further details.
198  *
199  * @warning Some NMEA sentences are unsupported depending on the plateform. Please refer to
200  * @ref platformConstraintsGnss_nmeaMask section for full details.
201  *
202  * @note All supported NMEA sentences are enabled by default.
203  *
204  * The le_gnss_GetNmeaSentences() function gets the bit mask of the enabled NMEA sentences in the
205  * @ref le_gnss_NMEA.
206  *
207  * Please refer to @ref le_gnss_APIcallsRequirements.
208  *
209  * A sample code can be seen in the following page:
210  * - @subpage c_gnssSampleCodeNmeaSentences
211  *
212  * @subsection le_gnss_APIcallsRequirements API calls Requirements
213  * The following table shows the pre-requisites when using the GNSS service API function set.
214  * ''LE_OK or error code'' means the function is authorized in the corresponding state, the request
215  * is performed and the result is returned; otherwise the returned error is indicated for each state
216  *.
217  * | Function / GNSS state | UNINITIALIZED | READY | ACTIVE | DISABLED |
218  *| ----------------------------- | --------------------------- | -----------------------------| --------------------------- | --------------------------- |
219  *| le_gnss_Start() | LE_NOT_PERMITTED | LE_OK or error code | LE_DUPLICATE | LE_NOT_PERMITTED |
220  *| le_gnss_Stop() | LE_NOT_PERMITTED | LE_DUPLICATE | LE_OK or error code | LE_NOT_PERMITTED |
221  *| le_gnss_ForceHotRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |
222  *| le_gnss_ForceWarmRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |
223  *| le_gnss_ForceColdRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |
224  *| le_gnss_ForceFactoryRestart() | LE_NOT_PERMITTED | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED |
225  *| le_gnss_Disable() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_DUPLICATE |
226  *| le_gnss_Enable() | LE_NOT_PERMITTED | LE_DUPLICATE | LE_DUPLICATE | LE_OK or error code |
227  *| le_gnss_SetConstellation() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
228  *| le_gnss_GetConstellation() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
229  *| le_gnss_SetConstellationArea() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
230  *| le_gnss_GetConstellationArea() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
231  *| le_gnss_GetTtff() | LE_NOT_PERMITTED | LE_OK or error code | LE_OK or error code | LE_NOT_PERMITTED |
232  *| le_gnss_SetAcquisitionRate() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
233  *| le_gnss_GetAcquisitionRate() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
234  *| le_gnss_SetNmeaSentences() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
235  *| le_gnss_GetNmeaSentences() | LE_NOT_PERMITTED | LE_OK or error code | LE_NOT_PERMITTED | LE_NOT_PERMITTED |
236  *
237  * Also see @ref howToGNSS.
238  *
239  * @section le_gnss_Information GNSS position information
240  * @ref le_gnss_NMEA
241  *
242  * @ref le_gnss_GetInfo
243  *
244  * @subsection le_gnss_NMEA NMEA Flow
245  * The National Marine Electronics Association (NMEA) standard defines an electrical interface
246  * and data protocol for communications between marine instrumentation.
247  *
248  * The NMEA-0183, scope of this document, defines a set of frame prefixed by
249  * $GP (concerning Global Positioning System),
250  * $GL (concerning GLONASS)
251  * and $GN (concerning combination of navigation systems).
252  * For more details about NMEA standards, please refer to http://www.nmea.org/.
253  *
254  * That NMEA frames flow can be retrieved from the "/dev/nmea" device folder, using for example
255  * the shell command $<EM> cat /dev/nmea | grep '$G'</EM>
256  *
257  * @subsection le_gnss_GetInfo Get position information
258  * The position information is referenced to a position sample object.
259  *
260  * An application can register a handler to be notified of the
261  * updated position each @ref le_gnss_AcquisitionRate, returning a position sample object.
262  *
263  * The GNSS information commonly used such as
264  * device state, position, time and date, satellites information and accuracy
265  * can be queried using the following functions:
266  * - le_gnss_GetState()
267  * - le_gnss_GetPositionState()
268  * - le_gnss_GetLocation()
269  * - le_gnss_GetAltitude()
270  * - le_gnss_GetDate()
271  * - le_gnss_GetTime()
272  * - le_gnss_GetGpsTime()
273  * - le_gnss_GetGpsLeapSeconds()
274  * - le_gnss_GetEpochTime()
275  * - le_gnss_GetTimeAccuracy()
276  * - le_gnss_GetHorizontalSpeed()
277  * - le_gnss_GetVerticalSpeed()
278  * - le_gnss_GetDirection()
279  * - le_gnss_GetSatellitesInfo()
280  * - le_gnss_GetSbasConstellationCategory()
281  * - le_gnss_GetSatellitesStatus()
282  * - le_gnss_GetDop()
283  * - le_gnss_GetDilutionOfPrecision()
284  * - le_gnss_GetAltitudeOnWgs84()
285  * - le_gnss_GetMagneticDeviation()
286  *
287  * le_gnss_SetDataResolution() function can be called to configure the resolution of position data
288  * type per client session. Currently, three data types are supported:
289  * - Vertical position accuracy provided by le_gnss_GetAltitude().
290  * - Vertical speed accuracy provided by le_gnss_GetVerticalSpeed().
291  * - Horizontal speed accuracy provided by le_gnss_GetHorizontalSpeed().
292  * Each data type can be set with a resolution from 0 to 3 decimal place.
293  *
294  * For example, to get the vertical position accuracy with a resolution of 2 decimal places,
295  * le_gnss_SetDataResolution() function is called with vertical position accuracy set as data type
296  * and 2 decimal place is set as resolution, then le_gnss_GetAltitude() function is called.
297  *
298  * @note If le_gnss_SetDataResolution() function is not called, the position data types are received
299  * in their default accuracies.
300  *
301  * le_gnss_ConvertDataCoordinateSystem() function can be called to convert a location data value
302  * from a coordinate system to another. Currently it is possible to convert the following data
303  * types:
304  * - Latitude
305  * - Longitude
306  * - Altitude
307  *
308  * System coordinates source and destination are currently:
309  * - Coordinate system WGS84
310  * - Coordinate system PZ90
311  *
312  * @note Only conversion from WGS84 coordinate system to PZ90 coordinate system is currently
313  * supported.
314  * @note The altitude in coordinate system WGS84 is obtained by le_gnss_GetAltitudeOnWgs84()
315  * function.
316  *
317  * A sample code using le_gnss_ConvertDataCoordinate() function can be seen in the following page:
318  * - @subpage c_gnssSampleCodePosition
319  *
320  * le_gnss_GetDilutionOfPrecision() gets the DOP parameters (Dilution Of Precision) with a
321  * resolution of 3 decimal places by default. This resolution can be modified by calling the
322  * @c le_gnss_SetDopResolution() function first.
323  *
324  * As @c le_gnss_SetDopResolution() sets the resolution per client session,
325  * @c le_gnss_SetDopResolution() and @c le_gnss_GetDilutionOfPrecision() functions should be called
326  * in the same thread or client session.
327  *
328  * A sample code can be seen in the following page:
329  * - @subpage c_gnssSampleCodePosition
330  *
331  * The handler can be managed using le_gnss_AddPositionHandler()
332  * and le_gnss_RemovePositionHandler().
333  * When a position is computed, the handler is called.
334  *
335  * The application has to release each position sample object received by the handler,
336  * using the le_gnss_ReleaseSampleRef().
337  *
338  * A sample code can be seen in the following page:
339  * - @subpage c_gnssSampleCodePosition
340  *
341  * @section le_gnss_Assisted_GNSS Assisted GNSS
342  *
343  * @ref le_gnss_Assisted_GNSS_EE
344  * @ref le_gnss_Assisted_GNSS_UP
345  *
346  * @subsection le_gnss_Assisted_GNSS_EE Server based Extended Ephemeris
347  *
348  * @todo Add detailed documentation.
349  *
350  * With le_gnss_LoadExtendedEphemerisFile() , you can load an 'Extended Ephemeris' file into
351  * the GNSS device from the filesystem.
352  * You have to download the file before loading it.
353  * @warning Ensure to check that the downloaded file is supported for your specific platform.
354  *
355  * With le_gnss_GetExtendedEphemerisValidity(), you will to get the validity of the last injected
356  * Extended Ephemeris.
357  *
358  * You can enable/disable the use of the 'Extended Ephemeris' file into the GNSS device with
359  * le_gnss_EnableExtendedEphemerisFile() / le_gnss_DisableExtendedEphemerisFile() functions.
360  * @warning Ensure to check configuration capabilities for your specific platform.
361  * A reboot must be required if your platform doesn't allow run-time configuration.
362  *
363  * A sample code can be seen in the following page:
364  * - @subpage c_gnssSampleCodeXtra
365  *
366  * @subsection le_gnss_Assisted_GNSS_UP 3GPP User Plane (OMA SUPL)
367  *
368  * That 3GPP User Plane A-GNSS (Assisted GNSS) protocol is defined by two different standardization
369  * bodies, 3GPP and Open Mobile Alliance (OMA). For more information, please refer to the standard.
370  *
371  * Both MS-Assisted and MS-Based position determination methods are supported in the User Plane.
372  *
373  * In MS-Assisted mode, the MS (Mobile Station) measures the signals from the GNSS satellites
374  *, then returns the retrieved GNSS data to the SUPL (Secure User Plan Location) server, where the
375  * position calculation is performed.
376  *
377  * In MS-Based mode, the MS gets the assistance data from the SUPL (Secure User Plan Location)
378  * server. The MS measures the signals from the GNSS satellites and makes the position calculation.
379  *
380  * The data transport over User Plan is done using the TCP/IP protocol.
381  *
382  * The Assisted-GNSS mode can be configured thru the le_gnss_SetSuplAssistedMode() function.
383  *
384  * The supported modes are the following:
385  * - Standalone mode: That 3GPP User Plane A-GNSS feature is deactivated.
386  * - MS-Based mode
387  * - MS-Assisted mode
388  *
389  * Moreover, the le_gnss_GetSuplAssistedMode() function reads the configured Assisted-GNSS mode.
390  *
391  * The SUPL server is configured using the le_gnss_SetSuplServerUrl() function. That function sets
392  * the SUPL server URL and optionally the port number.
393  *
394  * The SUPL certificate to be used in A-GNSS sessions is injected through the
395  * le_gnss_InjectSuplCertificate() function and deleted through the le_gnss_DeleteSuplCertificate()
396  * function.
397  * The SUPL certificate lenght given as parameter to le_gnss_InjectSuplCertificate() must be less
398  * than LE_GNSS_SUPL_CERTIFICATE_MAX_LEN.
399  *
400  * <HR>
401  *
402  * Copyright (C) Sierra Wireless Inc.
403  */
404 /**
405  * @page c_gnssSampleCode Sample code for GNSS device
406  *
407  * @include "apps/test/positioning/gnssTest/gnssTest/gnssTest.c"
408  */
409 /**
410  * @page c_gnssSampleCodeEnableDisable Sample code for Enable/Disable GNSS device
411  *
412  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssEnable
413  */
414 /**
415  * @page c_gnssSampleCodeStartStop Sample code for Start/Stop GNSS device
416  *
417  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssControl
418  */
419 /**
420  * @page c_gnssSampleCodeReStart Sample code for restart GNSS device and get TTFF
421  *
422  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssReStart
423  */
424 /**
425  * @page c_gnssSampleCodeAcquisitionRate Sample code for GNSS acquisition rate configuration
426  *
427  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssControl
428  */
429 /**
430  * @page c_gnssSampleCodeConstellation Sample code for GNSS constellation selection
431  *
432  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssControl
433  */
434 /**
435  * @page c_gnssSampleCodeMinElevation Sample code for GNSS minimum elevation
436  *
437  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssControl
438  */
439 /**
440  * @page c_gnssSampleCodeNmeaSentences Sample code for GNSS NMEA sentences selection
441  *
442  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssControl
443  */
444 /**
445  * @page c_gnssSampleCodePosition Sample code for GNSS position information
446  *
447  * @snippet "apps/test/positioning/gnssTest/gnssTest/gnssTest.c" GnssPosition
448  */
449 /**
450  * @page c_gnssSampleCodeXtra Sample code for GNSS Server based Extended Ephemeris
451  *
452  * @include "apps/test/positioning/gnssXtraTest/gnssXtraTest/xtraTest.c"
453  */
454 /**
455  * @file le_gnss_interface.h
456  *
457  * Legato @ref c_gnss include file.
458  *
459  * Copyright (C) Sierra Wireless Inc.
460  */
461 
462 #ifndef LE_GNSS_INTERFACE_H_INCLUDE_GUARD
463 #define LE_GNSS_INTERFACE_H_INCLUDE_GUARD
464 
465 
466 #include "legato.h"
467 
468 
469 //--------------------------------------------------------------------------------------------------
470 /**
471  * Type for handler called when a server disconnects.
472  */
473 //--------------------------------------------------------------------------------------------------
474 typedef void (*le_gnss_DisconnectHandler_t)(void *);
475 
476 //--------------------------------------------------------------------------------------------------
477 /**
478  *
479  * Connect the current client thread to the service providing this API. Block until the service is
480  * available.
481  *
482  * For each thread that wants to use this API, either ConnectService or TryConnectService must be
483  * called before any other functions in this API. Normally, ConnectService is automatically called
484  * for the main thread, but not for any other thread. For details, see @ref apiFilesC_client.
485  *
486  * This function is created automatically.
487  */
488 //--------------------------------------------------------------------------------------------------
490 (
491  void
492 );
493 
494 //--------------------------------------------------------------------------------------------------
495 /**
496  *
497  * Try to connect the current client thread to the service providing this API. Return with an error
498  * if the service is not available.
499  *
500  * For each thread that wants to use this API, either ConnectService or TryConnectService must be
501  * called before any other functions in this API. Normally, ConnectService is automatically called
502  * for the main thread, but not for any other thread. For details, see @ref apiFilesC_client.
503  *
504  * This function is created automatically.
505  *
506  * @return
507  * - LE_OK if the client connected successfully to the service.
508  * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is
509  * bound.
510  * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
511  * - LE_COMM_ERROR if the Service Directory cannot be reached.
512  */
513 //--------------------------------------------------------------------------------------------------
515 (
516  void
517 );
518 
519 //--------------------------------------------------------------------------------------------------
520 /**
521  * Set handler called when server disconnection is detected.
522  *
523  * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants
524  * to continue without exiting, it should call longjmp() from inside the handler.
525  */
526 //--------------------------------------------------------------------------------------------------
528 (
529  le_gnss_DisconnectHandler_t disconnectHandler,
530  void *contextPtr
531 );
532 
533 //--------------------------------------------------------------------------------------------------
534 /**
535  *
536  * Disconnect the current client thread from the service providing this API.
537  *
538  * Normally, this function doesn't need to be called. After this function is called, there's no
539  * longer a connection to the service, and the functions in this API can't be used. For details, see
540  * @ref apiFilesC_client.
541  *
542  * This function is created automatically.
543  */
544 //--------------------------------------------------------------------------------------------------
546 (
547  void
548 );
549 
550 
551 //--------------------------------------------------------------------------------------------------
552 /**
553  * Maximum length of the SUP Server URL string.
554  */
555 //--------------------------------------------------------------------------------------------------
556 #define LE_GNSS_SUPL_SERVER_URL_MAX_LEN 256
557 
558 //--------------------------------------------------------------------------------------------------
559 /**
560  * Maximum length of the SUP Server URL string.
561  * One extra byte is added for the null character.
562  */
563 //--------------------------------------------------------------------------------------------------
564 #define LE_GNSS_SUPL_SERVER_URL_MAX_BYTES 257
565 
566 //--------------------------------------------------------------------------------------------------
567 /**
568  * Maximum SUPL certificate size.
569  */
570 //--------------------------------------------------------------------------------------------------
571 #define LE_GNSS_SUPL_CERTIFICATE_MAX_LEN 2000
572 
573 //--------------------------------------------------------------------------------------------------
574 /**
575  * Maximum SUPL certificate string size.
576  * One extra byte is added for the null character.
577  */
578 //--------------------------------------------------------------------------------------------------
579 #define LE_GNSS_SUPL_CERTIFICATE_MAX_BYTES 2001
580 
581 //--------------------------------------------------------------------------------------------------
582 /**
583  * Define the maximum length of the Satellites Vehicle information list
584  */
585 //--------------------------------------------------------------------------------------------------
586 #define LE_GNSS_SV_INFO_MAX_LEN 80
587 
588 //--------------------------------------------------------------------------------------------------
589 /**
590  * Define the maximal bit mask for enabled NMEA sentences
591  *
592  * @note This maximal value should be coherent with @ref le_gnss_NmeaBitMask_t
593  */
594 //--------------------------------------------------------------------------------------------------
595 #define LE_GNSS_NMEA_SENTENCES_MAX 4194303
596 
597 //--------------------------------------------------------------------------------------------------
598 /**
599  * @deprecated LE_GNSS_NMEA_MASK_PQXFI is deprecated. LE_GNSS_NMEA_MASK_PTYPE is to be used instead.
600  * Setting LE_GNSS_NMEA_MASK_PTYPE will also set LE_GNSS_NMEA_MASK_PQXFI.
601  * LE_GNSS_NMEA_MASK_PTYPE supports all Proprietary type masks: PQXFI, PQGSA and PQGSV.
602  */
603 //--------------------------------------------------------------------------------------------------
604 #define LE_GNSS_NMEA_MASK_PQXFI 16384
605 
606 //--------------------------------------------------------------------------------------------------
607 /**
608  * Define the maximal degree for the minimal elevation
609  */
610 //--------------------------------------------------------------------------------------------------
611 #define LE_GNSS_MIN_ELEVATION_MAX_DEGREE 90
612 
613 //--------------------------------------------------------------------------------------------------
614 /**
615  * Satellite Vehicle (SV) ID to PRN offset definitions
616  *
617  * @note SV ID is given both in le_gnss_GetSatellitesInfo() API and NMEA flow. Its corresponding
618  * PRN code can be computed adding the following offset according to its constellation.
619  */
620 //--------------------------------------------------------------------------------------------------
621 #define LE_GNSS_PRN_OFFSET_GPS 0
622 
623 //--------------------------------------------------------------------------------------------------
624 /**
625  */
626 //--------------------------------------------------------------------------------------------------
627 #define LE_GNSS_PRN_OFFSET_SBAS 87
628 
629 //--------------------------------------------------------------------------------------------------
630 /**
631  */
632 //--------------------------------------------------------------------------------------------------
633 #define LE_GNSS_PRN_OFFSET_GLONASS -64
634 
635 //--------------------------------------------------------------------------------------------------
636 /**
637  */
638 //--------------------------------------------------------------------------------------------------
639 #define LE_GNSS_PRN_OFFSET_GALILEO -300
640 
641 //--------------------------------------------------------------------------------------------------
642 /**
643  */
644 //--------------------------------------------------------------------------------------------------
645 #define LE_GNSS_PRN_OFFSET_BEIDOU -200
646 
647 //--------------------------------------------------------------------------------------------------
648 /**
649  */
650 //--------------------------------------------------------------------------------------------------
651 #define LE_GNSS_PRN_OFFSET_QZSS 0
652 
653 //--------------------------------------------------------------------------------------------------
654 /**
655  * Reference type for dealing with GNSS position samples.
656  */
657 //--------------------------------------------------------------------------------------------------
658 typedef struct le_gnss_Sample* le_gnss_SampleRef_t;
659 
660 
661 //--------------------------------------------------------------------------------------------------
662 /**
663  * Enumeration for GNSS device state
664  */
665 //--------------------------------------------------------------------------------------------------
666 typedef enum
667 {
669  ///< The GNSS device is not initialized
671  ///< The GNSS device is ready
673  ///< The GNSS device is active
675  ///< The GNSS device is disabled
677  ///< Do not use
678 }
680 
681 
682 //--------------------------------------------------------------------------------------------------
683 /**
684  * GNSS fix position states.
685  */
686 //--------------------------------------------------------------------------------------------------
687 typedef enum
688 {
690  ///< The GNSS fix position is not fixed.
692  ///< 2-Dimensional position fix.
694  ///< 3-Dimensional position fix.
696  ///< Estimated (i.e. forward predicted) position fix.
697 }
699 
700 
701 //--------------------------------------------------------------------------------------------------
702 /**
703  * Resolutions values.
704  */
705 //--------------------------------------------------------------------------------------------------
706 typedef enum
707 {
709  ///< Resolution of 0 decimal place.
711  ///< Resolution of 1 decimal place.
713  ///< Resolution of 2 decimal places.
715  ///< Resolution of 3 decimal places.
717  ///< Unknown resolution.
718 }
720 
721 
722 //--------------------------------------------------------------------------------------------------
723 /**
724  ** Data types.
725  */
726 //--------------------------------------------------------------------------------------------------
727 typedef enum
728 {
730  ///< Vertical accuracy data.
732  ///< Vertical speed accuracy data.
734  ///< Horizontal speed accuracy data.
736  ///< Unknown data type.
737 }
739 
740 
741 //--------------------------------------------------------------------------------------------------
742 /**
743  * SBAS constellation category
744  */
745 //--------------------------------------------------------------------------------------------------
746 typedef enum
747 {
749  ///< Satellite Vehicle of Satellite-based augmentation system
750  ///< (SBAS) EGNOS constellation.
752  ///< Satellite Vehicle of Satellite-based augmentation system
753  ///< (SBAS) WAAS constellation.
755  ///< Satellite Vehicle of Satellite-based augmentation system
756  ///< (SBAS) GAGAN constellation.
758  ///< Satellite Vehicle of Satellite-based augmentation system
759  ///< (SBAS) MSAS constellation.
761  ///< Satellite Vehicle of Satellite-based augmentation system
762  ///< (SBAS) SDCM constellation.
764  ///< Satellite Vehicle of Satellite-based augmentation system
765  ///< (SBAS) unknown constellation.
766 }
768 
769 
770 //--------------------------------------------------------------------------------------------------
771 /**
772  * GNSS constellation type.
773  */
774 //--------------------------------------------------------------------------------------------------
775 typedef enum
776 {
778  ///< GNSS constellation field not defined.
780  ///< Satellite Vehicle of GPS constellation.
781  ///< North American satellite navigation system
783  ///< Satellite Vehicle of SBAS constellation.
784  ///< Satellite-based augmentation system
786  ///< Satellite Vehicle of Glonass constellation.
787  ///< Russian satellite navigation system
789  ///< Satellite Vehicle of Galileo constellation.
790  ///< European Union satellite navigation system
792  ///< Satellite Vehicle of Beidou constellation.
793  ///< Chinese satellite navigation system
795  ///< Satellite Vehicle of QZSS constellation.
796  ///< Japanese satellite navigation system
798  ///< Maximum value.
799 }
801 
802 
803 //--------------------------------------------------------------------------------------------------
804 /**
805  * Assisted-GNSS mode
806  */
807 //--------------------------------------------------------------------------------------------------
808 typedef enum
809 {
811  ///< Standalone mode.
813  ///< MS-Based mode.
815  ///< MS-Assisted mode.
816 }
818 
819 
820 //--------------------------------------------------------------------------------------------------
821 /**
822  * Dilution of precision type
823  */
824 //--------------------------------------------------------------------------------------------------
825 typedef enum
826 {
828  ///< Position dilution of precision.
830  ///< Horizontal dilution of precision.
832  ///< Vertical dilution of precision.
834  ///< Geometric dilution of precision.
836  ///< Time dilution of precision.
837  LE_GNSS_DOP_LAST = 5
838  ///<
839 }
841 
842 
843 //--------------------------------------------------------------------------------------------------
844 /**
845  * GNSS constellation area type
846  */
847 //--------------------------------------------------------------------------------------------------
848 typedef enum
849 {
851  ///< Unset area.
853  ///< Worldwide area.
855  ///< Outside US area.
856 }
858 
859 
860 //--------------------------------------------------------------------------------------------------
861 /**
862  * GNSS constellation Bit Mask (8 bits) indicating the GNSS constellation(s)
863  * used in solution.
864  *
865  */
866 //--------------------------------------------------------------------------------------------------
867 typedef enum
868 {
869  LE_GNSS_CONSTELLATION_GPS = 0x1, ///< GPS constellation used in solution.
870  ///< North American satellite navigation system
871  LE_GNSS_CONSTELLATION_GLONASS = 0x2, ///< GLONASS constellation used in solution.
872  ///< Russian satellite navigation system
873  LE_GNSS_CONSTELLATION_BEIDOU = 0x4, ///< BEIDOU constellation used in solution.
874  ///< Chinese satellite navigation system
875  LE_GNSS_CONSTELLATION_GALILEO = 0x8, ///< GALILEO constellation used in solution.
876  ///< European Union satellite navigation system
877  LE_GNSS_CONSTELLATION_SBAS = 0x10, ///< SBAS constellation used in solution.
878  LE_GNSS_CONSTELLATION_QZSS = 0x20 ///< QZSS constellation used in solution.
879  ///< Japanese satellite navigation system
880 }
882 
883 
884 //--------------------------------------------------------------------------------------------------
885 /**
886  * NMEA sentences Bit Mask indicating the NMEA sentences enabled in the NMEA flow.
887  *
888  * @warning The supported NMEA sentences depend on the platform. Please refer to your platform
889  * documentation for further details.
890  *
891  * @note The bit mask values should be coherent with @ref LE_GNSS_NMEA_SENTENCES_MAX
892  */
893 //--------------------------------------------------------------------------------------------------
894 typedef enum
895 {
896  LE_GNSS_NMEA_MASK_GPGGA = 0x1, ///< GPGGA type enabled: GPS fix data.
897  LE_GNSS_NMEA_MASK_GPGSA = 0x2, ///< GPGSA type enabled: GPS DOP and active satellites.
898  LE_GNSS_NMEA_MASK_GPGSV = 0x4, ///< GPGSV type enabled: GPS satellites in view.
899  LE_GNSS_NMEA_MASK_GPRMC = 0x8, ///< GPRMC type enabled: GPS recommended minimum data.
900  LE_GNSS_NMEA_MASK_GPVTG = 0x10, ///< GPVTG type enabled: GPS vector track and speed over the ground.
901  LE_GNSS_NMEA_MASK_GLGSV = 0x20, ///< GLGSV type enabled: GLONASS satellites in view.
902  LE_GNSS_NMEA_MASK_GNGNS = 0x40, ///< GNGNS type enabled: GNSS fix data.
903  LE_GNSS_NMEA_MASK_GNGSA = 0x80, ///< GNGSA type enabled: GNSS DOP and active satellites.
904  LE_GNSS_NMEA_MASK_GAGGA = 0x100, ///< GAGGA type enabled: Galileo fix data.
905  LE_GNSS_NMEA_MASK_GAGSA = 0x200, ///< GAGSA type enabled: Galileo DOP and active satellites.
906  LE_GNSS_NMEA_MASK_GAGSV = 0x400, ///< GAGSV type enabled: Galileo satellites in view.
907  LE_GNSS_NMEA_MASK_GARMC = 0x800, ///< GARMC type enabled: Galileo recommended minimum data.
908  LE_GNSS_NMEA_MASK_GAVTG = 0x1000, ///< GAVTG type enabled: Galileo vector track and speed over the ground.
909  LE_GNSS_NMEA_MASK_PSTIS = 0x2000, ///< PSTIS type enabled: GPS session start indication.
910  LE_GNSS_NMEA_MASK_REMOVED = 0x4000, ///<
911  LE_GNSS_NMEA_MASK_PTYPE = 0x8000, ///< PTYPE type enabled: Proprietary Type mask.
912  LE_GNSS_NMEA_MASK_GPGRS = 0x10000, ///< GPGRS type enabled: GPS Range residuals.
913  LE_GNSS_NMEA_MASK_GPGLL = 0x20000, ///< GPGLL type enabled: GPS Geographic position, latitude / longitude.
914  LE_GNSS_NMEA_MASK_DEBUG = 0x40000, ///< DEBUG type enabled: Debug NMEA indication.
915  LE_GNSS_NMEA_MASK_GPDTM = 0x80000, ///< GPDTM type enabled: Local geodetic datum and datum offset from a
916  LE_GNSS_NMEA_MASK_GAGNS = 0x100000 ///< GAGNS type enabled: Fix data for Galileo.
917 }
919 
920 
921 //--------------------------------------------------------------------------------------------------
922 /**
923  * Coordinate system
924  */
925 //--------------------------------------------------------------------------------------------------
926 typedef enum
927 {
929  ///< Coordinate system WGS84.
931  ///< Coordinate system PZ90.
933  ///< Maximum value.
934 }
936 
937 
938 //--------------------------------------------------------------------------------------------------
939 /**
940  ** Location data types
941  */
942 //--------------------------------------------------------------------------------------------------
943 typedef enum
944 {
946  ///< Latitude data position.
948  ///< Longitude data position.
950  ///< Altitude data position.
952  ///< Maximum value.
953 }
955 
956 
957 //--------------------------------------------------------------------------------------------------
958 /**
959  * Reference type used by Add/Remove functions for EVENT 'le_gnss_Position'
960  */
961 //--------------------------------------------------------------------------------------------------
962 typedef struct le_gnss_PositionHandler* le_gnss_PositionHandlerRef_t;
963 
964 
965 //--------------------------------------------------------------------------------------------------
966 /**
967  * Handler for position information.
968  *
969  */
970 //--------------------------------------------------------------------------------------------------
971 typedef void (*le_gnss_PositionHandlerFunc_t)
972 (
973  le_gnss_SampleRef_t positionSampleRef,
974  ///< Position's sample reference
975  void* contextPtr
976  ///<
977 );
978 
979 //--------------------------------------------------------------------------------------------------
980 /**
981  * Set the GNSS constellation bit mask
982  *
983  * @return
984  * - LE_FAULT The function failed.
985  * - LE_UNSUPPORTED If the request is not supported.
986  * - LE_NOT_PERMITTED If the GNSS device is not initialized, disabled or active.
987  * - LE_OK The function succeeded.
988  *
989  * @warning Some constellation types are unsupported depending on the plateform. Please refer to
990  * @ref platformConstraintsGnss_ConstellationType section for full details.
991  *
992  * @warning The settings are platform dependent. Please refer to
993  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
994  */
995 //--------------------------------------------------------------------------------------------------
997 (
998  le_gnss_ConstellationBitMask_t constellationMask
999  ///< [IN] GNSS constellation used in solution.
1000 );
1001 
1002 //--------------------------------------------------------------------------------------------------
1003 /**
1004  * Get the GNSS constellation bit mask
1005  *
1006  * @return
1007  * - LE_OK on success
1008  * - LE_FAULT on failure
1009  */
1010 //--------------------------------------------------------------------------------------------------
1012 (
1013  le_gnss_ConstellationBitMask_t* constellationMaskPtr
1014  ///< [OUT] GNSS constellation used in solution.
1015 );
1016 
1017 //--------------------------------------------------------------------------------------------------
1018 /**
1019  * Set the area for the GNSS constellation
1020  *
1021  * @return
1022  * - LE_OK The function succeeded.
1023  * - LE_FAULT The function failed.
1024  * - LE_UNSUPPORTED If the request is not supported.
1025  * - LE_NOT_PERMITTED If the GNSS device is not initialized, disabled or active.
1026  * - LE_BAD_PARAMETER Invalid constellation area.
1027  *
1028  * @warning The settings are platform dependent. Please refer to
1029  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1030  */
1031 //--------------------------------------------------------------------------------------------------
1033 (
1034  le_gnss_Constellation_t satConstellation,
1035  ///< [IN] GNSS constellation type.
1036  le_gnss_ConstellationArea_t constellationArea
1037  ///< [IN] GNSS constellation area.
1038 );
1039 
1040 //--------------------------------------------------------------------------------------------------
1041 /**
1042  * Get the area for the GNSS constellation
1043  *
1044  * @return
1045  * - LE_OK On success
1046  * - LE_FAULT On failure
1047  * - LE_UNSUPPORTED Request not supported
1048  * - LE_NOT_PERMITTED If the GNSS device is not initialized, disabled or active.
1049  */
1050 //--------------------------------------------------------------------------------------------------
1052 (
1053  le_gnss_Constellation_t satConstellation,
1054  ///< [IN] GNSS constellation type.
1055  le_gnss_ConstellationArea_t* constellationAreaPtr
1056  ///< [OUT] GNSS constellation area.
1057 );
1058 
1059 //--------------------------------------------------------------------------------------------------
1060 /**
1061  * This function enables the use of the 'Extended Ephemeris' file into the GNSS device.
1062  *
1063  * @return
1064  * - LE_FAULT The function failed.
1065  * - LE_OK The function succeeded.
1066  *
1067  * @warning The settings are platform dependent. Please refer to
1068  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1069  */
1070 //--------------------------------------------------------------------------------------------------
1072 (
1073  void
1074 );
1075 
1076 //--------------------------------------------------------------------------------------------------
1077 /**
1078  * This function disables the use of the 'Extended Ephemeris' file into the GNSS device.
1079  *
1080  * @return
1081  * - LE_FAULT The function failed.
1082  * - LE_OK The function succeeded.
1083  *
1084  * @warning The settings are platform dependent. Please refer to
1085  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1086  */
1087 //--------------------------------------------------------------------------------------------------
1089 (
1090  void
1091 );
1092 
1093 //--------------------------------------------------------------------------------------------------
1094 /**
1095  * This function must be called to load an 'Extended Ephemeris' file into the GNSS device.
1096  *
1097  * @return
1098  * - LE_FAULT The function failed to inject the 'Extended Ephemeris' file.
1099  * - LE_TIMEOUT A time-out occurred.
1100  * - LE_FORMAT_ERROR 'Extended Ephemeris' file format error.
1101  * - LE_OK The function succeeded.
1102  *
1103  */
1104 //--------------------------------------------------------------------------------------------------
1106 (
1107  int fd
1108  ///< [IN] Extended ephemeris file descriptor
1109 );
1110 
1111 //--------------------------------------------------------------------------------------------------
1112 /**
1113  * This function must be called to get the validity of the last injected Extended Ephemeris.
1114  *
1115  * @return
1116  * - LE_FAULT The function failed to get the validity
1117  * - LE_OK The function succeeded.
1118  *
1119  */
1120 //--------------------------------------------------------------------------------------------------
1122 (
1123  uint64_t* startTimePtr,
1124  ///< [OUT] Start time in seconds (since Jan. 1, 1970)
1125  uint64_t* stopTimePtr
1126  ///< [OUT] Stop time in seconds (since Jan. 1, 1970)
1127 );
1128 
1129 //--------------------------------------------------------------------------------------------------
1130 /**
1131  * This function must be called to inject the UTC time into the GNSS device.
1132  *
1133  * @return
1134  * - LE_OK The function succeeded.
1135  * - LE_FAULT The function failed to inject the UTC time.
1136  * - LE_TIMEOUT A time-out occurred.
1137  *
1138  * @note It is mandatory to enable the 'Extended Ephemeris' file injection into the GNSS device with
1139  * le_gnss_EnableExtendedEphemerisFile() before injecting time with this API.
1140  */
1141 //--------------------------------------------------------------------------------------------------
1143 (
1144  uint64_t timeUtc,
1145  ///< [IN] [IN] UTC time since Jan. 1, 1970 in milliseconds
1146  uint32_t timeUnc
1147  ///< [IN] [IN] Time uncertainty in milliseconds
1148 );
1149 
1150 //--------------------------------------------------------------------------------------------------
1151 /**
1152  * This function starts the GNSS device.
1153  *
1154  * @return
1155  * - LE_FAULT The function failed.
1156  * - LE_DUPLICATE If the GNSS device is already started.
1157  * - LE_NOT_PERMITTED If the GNSS device is not initialized or disabled.
1158  * - LE_OK The function succeeded.
1159  *
1160  */
1161 //--------------------------------------------------------------------------------------------------
1163 (
1164  void
1165 );
1166 
1167 //--------------------------------------------------------------------------------------------------
1168 /**
1169  * This function stops the GNSS device.
1170  *
1171  * @return
1172  * - LE_FAULT The function failed.
1173  * - LE_DUPLICATE If the GNSS device is already stopped.
1174  * - LE_NOT_PERMITTED If the GNSS device is not initialized or disabled.
1175  * - LE_OK The function succeeded.
1176  *
1177  */
1178 //--------------------------------------------------------------------------------------------------
1180 (
1181  void
1182 );
1183 
1184 //--------------------------------------------------------------------------------------------------
1185 /**
1186  * This function performs a "HOT" restart of the GNSS device.
1187  *
1188  * @return
1189  * - LE_FAULT The function failed.
1190  * - LE_NOT_PERMITTED If the GNSS device is not enabled or not started.
1191  * - LE_OK The function succeeded.
1192  *
1193  */
1194 //--------------------------------------------------------------------------------------------------
1196 (
1197  void
1198 );
1199 
1200 //--------------------------------------------------------------------------------------------------
1201 /**
1202  * This function performs a "WARM" restart of the GNSS device.
1203  *
1204  * @return
1205  * - LE_FAULT The function failed.
1206  * - LE_NOT_PERMITTED If the GNSS device is not enabled or not started.
1207  * - LE_OK The function succeeded.
1208  *
1209  * @Note This API has a platform dependent feature. Please refer to
1210  * @ref platformConstraintsGnss_WarmRestart for further details.
1211  */
1212 //--------------------------------------------------------------------------------------------------
1214 (
1215  void
1216 );
1217 
1218 //--------------------------------------------------------------------------------------------------
1219 /**
1220  * This function performs a "COLD" restart of the GNSS device.
1221  *
1222  * @return
1223  * - LE_FAULT The function failed.
1224  * - LE_NOT_PERMITTED If the GNSS device is not enabled or not started.
1225  * - LE_OK The function succeeded.
1226  *
1227  */
1228 //--------------------------------------------------------------------------------------------------
1230 (
1231  void
1232 );
1233 
1234 //--------------------------------------------------------------------------------------------------
1235 /**
1236  * This function performs a "FACTORY" restart of the GNSS device.
1237  *
1238  * @return
1239  * - LE_FAULT The function failed.
1240  * - LE_NOT_PERMITTED If the GNSS device is not enabled or not started.
1241  * - LE_OK The function succeeded.
1242  *
1243  */
1244 //--------------------------------------------------------------------------------------------------
1246 (
1247  void
1248 );
1249 
1250 //--------------------------------------------------------------------------------------------------
1251 /**
1252  * Get the TTFF in milliseconds
1253  *
1254  * @return
1255  * - LE_BUSY The position is not fixed and TTFF can't be measured.
1256  * - LE_NOT_PERMITTED If the GNSS device is not enabled or not started.
1257  * - LE_OK Function succeeded.
1258  * - LE_FAULT If there are some other errors.
1259  *
1260  */
1261 //--------------------------------------------------------------------------------------------------
1263 (
1264  uint32_t* ttffPtr
1265  ///< [OUT] TTFF in milliseconds
1266 );
1267 
1268 //--------------------------------------------------------------------------------------------------
1269 /**
1270  * This function enables the GNSS device.
1271  *
1272  * @return
1273  * - LE_FAULT The function failed.
1274  * - LE_DUPLICATE If the GNSS device is already enabled.
1275  * - LE_NOT_PERMITTED If the GNSS device is not initialized.
1276  * - LE_OK The function succeeded.
1277  *
1278  * @warning The settings are platform dependent. Please refer to
1279  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1280  */
1281 //--------------------------------------------------------------------------------------------------
1283 (
1284  void
1285 );
1286 
1287 //--------------------------------------------------------------------------------------------------
1288 /**
1289  * This function disables the GNSS device.
1290  *
1291  * @return
1292  * - LE_FAULT The function failed.
1293  * - LE_DUPLICATE If the GNSS device is already disabled.
1294  * - LE_NOT_PERMITTED If the GNSS device is not initialized or started.
1295  * - LE_OK The function succeeded.
1296  *
1297  * @warning The settings are platform dependent. Please refer to
1298  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1299  */
1300 //--------------------------------------------------------------------------------------------------
1302 (
1303  void
1304 );
1305 
1306 //--------------------------------------------------------------------------------------------------
1307 /**
1308  * This function sets the GNSS device acquisition rate.
1309  *
1310  * @return
1311  * - LE_OK on success
1312  * - LE_FAULT on failure
1313  * - LE_UNSUPPORTED request not supported
1314  * - LE_TIMEOUT a time-out occurred
1315  * - LE_NOT_PERMITTED If the GNSS device is not in "ready" state.
1316  * - LE_OUT_OF_RANGE if acquisition rate value is equal to zero
1317  *
1318  * @warning This function may be subject to limitations depending on the platform. Please refer to
1319  * the @ref platformConstraintsGnss page.
1320  *
1321  * @warning The settings are platform dependent. Please refer to
1322  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1323  */
1324 //--------------------------------------------------------------------------------------------------
1326 (
1327  uint32_t rate
1328  ///< [IN] Acquisition rate in milliseconds.
1329 );
1330 
1331 //--------------------------------------------------------------------------------------------------
1332 /**
1333  * This function gets the GNSS device acquisition rate.
1334  *
1335  * @return
1336  * - LE_OK on success
1337  * - LE_FAULT on failure
1338  * - LE_NOT_PERMITTED If the GNSS device is not in "ready" state.
1339  */
1340 //--------------------------------------------------------------------------------------------------
1342 (
1343  uint32_t* ratePtr
1344  ///< [OUT] Acquisition rate in milliseconds.
1345 );
1346 
1347 //--------------------------------------------------------------------------------------------------
1348 /**
1349  * Add handler function for EVENT 'le_gnss_Position'
1350  *
1351  * This event provides information on position.
1352  *
1353  * - A handler reference, which is only needed for later removal of the handler.
1354  *
1355  * @note Doesn't return on failure, so there's no need to check the return value for errors.
1356  */
1357 //--------------------------------------------------------------------------------------------------
1359 (
1360  le_gnss_PositionHandlerFunc_t handlerPtr,
1361  ///< [IN]
1362  void* contextPtr
1363  ///< [IN]
1364 );
1365 
1366 //--------------------------------------------------------------------------------------------------
1367 /**
1368  * Remove handler function for EVENT 'le_gnss_Position'
1369  */
1370 //--------------------------------------------------------------------------------------------------
1372 (
1373  le_gnss_PositionHandlerRef_t handlerRef
1374  ///< [IN]
1375 );
1376 
1377 //--------------------------------------------------------------------------------------------------
1378 /**
1379  * This function gets the position sample's fix state
1380  *
1381  * - LE_OK on success
1382  * - LE_FAULT on failure
1383  *
1384  * @note If the caller is passing an invalid Position sample reference into this function,
1385  * it is a fatal error, the function will not return.
1386  */
1387 //--------------------------------------------------------------------------------------------------
1389 (
1390  le_gnss_SampleRef_t positionSampleRef,
1391  ///< [IN] Position sample's reference.
1392  le_gnss_FixState_t* statePtr
1393  ///< [OUT] Position fix state.
1394 );
1395 
1396 //--------------------------------------------------------------------------------------------------
1397 /**
1398  * Get the location's data (Latitude, Longitude, Horizontal accuracy).
1399  *
1400  * @return
1401  * - LE_FAULT Function failed to get the location's data
1402  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to INT32_MAX).
1403  * - LE_OK Function succeeded.
1404  *
1405  * @note latitudePtr, longitudePtr and hAccuracyPtr can be set to NULL if not needed.
1406  *
1407  * @note The latitude and longitude values are based on the WGS84 standard coordinate system.
1408  *
1409  * @note The latitude and longitude values are given in degrees with 6 decimal places like:
1410  * Latitude +48858300 = 48.858300 degrees North
1411  * Longitude +2294400 = 2.294400 degrees East
1412  * (The latitude and longitude values are given in degrees, minutes, seconds in NMEA frame)
1413  *
1414  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1415  * valid. Please compare them with INT32_MAX.
1416  *
1417  * @note If the caller is passing an invalid Position sample reference into this function,
1418  * it is a fatal error, the function will not return.
1419  */
1420 //--------------------------------------------------------------------------------------------------
1422 (
1423  le_gnss_SampleRef_t positionSampleRef,
1424  ///< [IN] Position sample's reference.
1425  int32_t* latitudePtr,
1426  ///< [OUT] WGS84 Latitude in degrees, positive North [resolution 1e-6].
1427  int32_t* longitudePtr,
1428  ///< [OUT] WGS84 Longitude in degrees, positive East [resolution 1e-6].
1429  int32_t* hAccuracyPtr
1430  ///< [OUT] Horizontal position's accuracy in meters [resolution 1e-2].
1431 );
1432 
1433 //--------------------------------------------------------------------------------------------------
1434 /**
1435  * Get the position sample's altitude.
1436  *
1437  * @return
1438  * - LE_FAULT Function failed to get the altitude. Invalid Position reference provided.
1439  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to INT32_MAX).
1440  * - LE_OK Function succeeded.
1441  *
1442  * @note Altitude is in meters, above Mean Sea Level, with 3 decimal places (3047 = 3.047 meters).
1443  *
1444  * @note For a 2D position fix, the altitude will be indicated as invalid and set to INT32_MAX
1445  *
1446  * @note Vertical position accuracy is default set to meters with 1 decimal place (3047 = 3.0
1447  * meters). To change its accuracy, call the @c le_gnss_SetDataResolution() function. Vertical
1448  * position accuracy is set as data type and accuracy from 0 to 3 decimal place is set as
1449  * resolution.
1450  *
1451  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1452  * valid. Please compare them with INT32_MAX.
1453  *
1454  * @note If the caller is passing an invalid Position reference into this function,
1455  * it is a fatal error, the function will not return.
1456  *
1457  * @note altitudePtr, altitudeAccuracyPtr can be set to NULL if not needed.
1458  */
1459 //--------------------------------------------------------------------------------------------------
1461 (
1462  le_gnss_SampleRef_t positionSampleRef,
1463  ///< [IN] Position sample's reference.
1464  int32_t* altitudePtr,
1465  ///< [OUT] Altitude in meters, above Mean Sea Level [resolution 1e-3].
1466  int32_t* vAccuracyPtr
1467  ///< [OUT] Vertical position's accuracy in meters.
1468 );
1469 
1470 //--------------------------------------------------------------------------------------------------
1471 /**
1472  * Get the position sample's time.
1473  *
1474  * @return
1475  * - LE_FAULT Function failed to get the time.
1476  * - LE_OUT_OF_RANGE The retrieved time is invalid (all fields are set to 0).
1477  * - LE_OK Function succeeded.
1478  *
1479  * @note If the caller is passing an invalid Position sample reference into this function,
1480  * it is a fatal error, the function will not return.
1481  */
1482 //--------------------------------------------------------------------------------------------------
1484 (
1485  le_gnss_SampleRef_t positionSampleRef,
1486  ///< [IN] Position sample's reference.
1487  uint16_t* hoursPtr,
1488  ///< [OUT] UTC Hours into the day [range 0..23].
1489  uint16_t* minutesPtr,
1490  ///< [OUT] UTC Minutes into the hour [range 0..59].
1491  uint16_t* secondsPtr,
1492  ///< [OUT] UTC Seconds into the minute [range 0..59].
1493  uint16_t* millisecondsPtr
1494  ///< [OUT] UTC Milliseconds into the second [range 0..999].
1495 );
1496 
1497 //--------------------------------------------------------------------------------------------------
1498 /**
1499  * Get the position sample's GPS time.
1500  *
1501  * @return
1502  * - LE_FAULT Function failed to get the time.
1503  * - LE_OUT_OF_RANGE The retrieved time is invalid (all fields are set to 0).
1504  * - LE_OK Function succeeded.
1505  *
1506  * @note If the caller is passing an invalid Position sample reference into this function,
1507  * it is a fatal error, the function will not return.
1508  */
1509 //--------------------------------------------------------------------------------------------------
1511 (
1512  le_gnss_SampleRef_t positionSampleRef,
1513  ///< [IN] Position sample's reference.
1514  uint32_t* gpsWeekPtr,
1515  ///< [OUT] GPS week number from midnight, Jan. 6, 1980.
1516  uint32_t* gpsTimeOfWeekPtr
1517  ///< [OUT] Amount of time in milliseconds into the GPS week.
1518 );
1519 
1520 //--------------------------------------------------------------------------------------------------
1521 /**
1522  * Get the position sample's epoch time.
1523  *
1524  * @return
1525  * - LE_FAULT Function failed to acquire the epoch time.
1526  * - LE_OK Function succeeded.
1527  * - LE_OUT_OF_RANGE The retrieved time is invalid (all fields are set to 0).
1528  *
1529  * @note The epoch time is the number of seconds elapsed since January 1, 1970
1530  * (midnight UTC/GMT), not counting leaps seconds.
1531  *
1532  * @note If the caller is passing an invalid position sample reference into this function,
1533  * it is a fatal error, the function will not return.
1534  */
1535 //--------------------------------------------------------------------------------------------------
1537 (
1538  le_gnss_SampleRef_t positionSampleRef,
1539  ///< [IN] Position sample's reference.
1540  uint64_t* millisecondsPtr
1541  ///< [OUT] Milliseconds since Jan. 1, 1970.
1542 );
1543 
1544 //--------------------------------------------------------------------------------------------------
1545 /**
1546  * Get the position sample's time accurary.
1547  *
1548  * @return
1549  * - LE_FAULT Function failed to get the time.
1550  * - LE_OUT_OF_RANGE The retrieved time accuracy is invalid (set to UINT16_MAX).
1551  * - LE_OK Function succeeded.
1552  *
1553  * @note If the caller is passing an invalid Position sample reference into this function,
1554  * it is a fatal error, the function will not return.
1555  */
1556 //--------------------------------------------------------------------------------------------------
1558 (
1559  le_gnss_SampleRef_t positionSampleRef,
1560  ///< [IN] Position sample's reference.
1561  uint32_t* timeAccuracyPtr
1562  ///< [OUT] Estimated time accuracy in nanoseconds
1563 );
1564 
1565 //--------------------------------------------------------------------------------------------------
1566 /**
1567  * Get the position sample's UTC leap seconds in advance
1568  *
1569  * @return
1570  * - LE_FAULT Function failed to get the leap seconds.
1571  * - LE_OUT_OF_RANGE The retrieved time accuracy is invalid (set to UINT8_MAX).
1572  * - LE_OK Function succeeded.
1573  *
1574  * @note The leap seconds in advance is the accumulated time in seconds since the start of GPS Epoch
1575  * time (Jan 6, 1980). This value has to be added to the UTC time (since Jan. 1, 1970)
1576  *
1577  * @note Insertion of each UTC leap second is usually decided about six months in advance by the
1578  * International Earth Rotation and Reference Systems Service (IERS).
1579  *
1580  * @note If the caller is passing an invalid position sample reference or a null pointer into this
1581  * function, it is a fatal error, the function will not return.
1582  */
1583 //--------------------------------------------------------------------------------------------------
1585 (
1586  le_gnss_SampleRef_t positionSampleRef,
1587  ///< [IN] Position sample's reference.
1588  uint8_t* leapSecondsPtr
1589  ///< [OUT] UTC leap seconds in advance in seconds
1590 );
1591 
1592 //--------------------------------------------------------------------------------------------------
1593 /**
1594  * Get the position sample's date.
1595  *
1596  * @return
1597  * - LE_FAULT Function failed to get the date.
1598  * - LE_OUT_OF_RANGE The retrieved date is invalid (all fields are set to 0).
1599  * - LE_OK Function succeeded.
1600  *
1601  * @note If the caller is passing an invalid Position sample reference into this function,
1602  * it is a fatal error, the function will not return.
1603  */
1604 //--------------------------------------------------------------------------------------------------
1606 (
1607  le_gnss_SampleRef_t positionSampleRef,
1608  ///< [IN] Position sample's reference.
1609  uint16_t* yearPtr,
1610  ///< [OUT] UTC Year A.D. [e.g. 2014].
1611  uint16_t* monthPtr,
1612  ///< [OUT] UTC Month into the year [range 1...12].
1613  uint16_t* dayPtr
1614  ///< [OUT] UTC Days into the month [range 1...31].
1615 );
1616 
1617 //--------------------------------------------------------------------------------------------------
1618 /**
1619  * Get the position sample's horizontal speed.
1620  *
1621  * - LE_FAULT Function failed to find the positionSample.
1622  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to UINT32_MAX).
1623  * - LE_OK Function succeeded.
1624  *
1625  * @note hSpeedPtr, hSpeedAccuracyPtr can be set to NULL if not needed.
1626  *
1627  * @note Horizontal speed is in meters/second with 2 decimal places (3047 = 30.47 meters/second).
1628  *
1629  * @note Horizontal speed accuracy estimate is default set to meters/second with 1 decimal place
1630  * (304 = 30.4 meters/second). To change its accuracy, call the @c le_gnss_SetDataResolution()
1631  * function. Horizontal speed accuracy estimate is set as data type and accuracy from 0 to 3
1632  * decimal place is set as resolution.
1633  *
1634  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1635  * valid. Please compare them with UINT32_MAX.
1636  *
1637  * @note If the caller is passing an invalid Position sample reference into this function,
1638  * it is a fatal error, the function will not return.
1639  *
1640  * @warning The Horizontal speed accuracy is platform dependent. Please refer to
1641  * @ref platformConstraintsGnss_speedAccuracies section for full details.
1642  */
1643 //--------------------------------------------------------------------------------------------------
1645 (
1646  le_gnss_SampleRef_t positionSampleRef,
1647  ///< [IN] Position sample's reference.
1648  uint32_t* hspeedPtr,
1649  ///< [OUT] Horizontal speed in meters/second [resolution 1e-2].
1650  uint32_t* hspeedAccuracyPtr
1651  ///< [OUT] Horizontal speed's accuracy estimate in meters/second.
1652 );
1653 
1654 //--------------------------------------------------------------------------------------------------
1655 /**
1656  * Get the position sample's vertical speed.
1657  *
1658  * @return
1659  * - LE_FAULT The function failed to find the positionSample.
1660  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is not valid (set to INT32_MAX).
1661  * - LE_OK The function succeeded.
1662  *
1663  * @note vSpeedPtr, vSpeedAccuracyPtr can be set to NULL if not needed.
1664  *
1665  * @note For a 2D position Fix, the vertical speed will be indicated as invalid
1666  * and set to INT32_MAX.
1667  *
1668  * @note Vertical speed accuracy estimate is default set to meters/second with 1 decimal place
1669  * (304 = 30.4 meters/second). To change its accuracy, call the @c le_gnss_SetDataResolution()
1670  * function. Vertical speed accuracy estimate is set as data type and accuracy from 0 to 3
1671  * decimal place is set as resolution.
1672  *
1673  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1674  * valid. Please compare them with INT32_MAX.
1675  *
1676  * @note If the caller is passing an invalid Position sample reference into this function,
1677  * it is a fatal error, the function will not return.
1678  *
1679  * @warning The Vertical speed accuracy is platform dependent. Please refer to
1680  * @ref platformConstraintsGnss_speedAccuracies section for full details.
1681  */
1682 //--------------------------------------------------------------------------------------------------
1684 (
1685  le_gnss_SampleRef_t positionSampleRef,
1686  ///< [IN] Position sample's reference.
1687  int32_t* vspeedPtr,
1688  ///< [OUT] Vertical speed in meters/second [resolution 1e-2],
1689  ///< positive up.
1690  int32_t* vspeedAccuracyPtr
1691  ///< [OUT] Vertical speed's accuracy estimate in meters/second.
1692 );
1693 
1694 //--------------------------------------------------------------------------------------------------
1695 /**
1696  * Get the position sample's direction. Direction of movement is the direction that the vehicle or
1697  * person is actually moving.
1698  *
1699  * @return
1700  * - LE_FAULT Function failed to find the positionSample.
1701  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to UINT32_MAX).
1702  * - LE_OK Function succeeded.
1703  *
1704  * @note Direction and direction accuracy are given in degrees with 1 decimal place: 1755 = 175.5
1705  * degrees.
1706  * Direction ranges from 0 to 359.9 degrees, where 0 is True North.
1707  *
1708  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1709  * valid. Please compare them with UINT32_MAX.
1710  *
1711  * @note directionPtr, directionAccuracyPtr can be set to NULL if not needed.
1712  *
1713  * @note If the caller is passing an invalid Position sample reference into this function,
1714  * it is a fatal error, the function will not return.
1715  */
1716 //--------------------------------------------------------------------------------------------------
1718 (
1719  le_gnss_SampleRef_t positionSampleRef,
1720  ///< [IN] Position sample's reference.
1721  uint32_t* directionPtr,
1722  ///< [OUT] Direction in degrees [resolution 1e-1].
1723  ///< Range: 0 to 359.9, where 0 is True North
1724  uint32_t* directionAccuracyPtr
1725  ///< [OUT] Direction's accuracy estimate
1726  ///< in degrees [resolution 1e-1].
1727 );
1728 
1729 //--------------------------------------------------------------------------------------------------
1730 /**
1731  * Get the Satellites Vehicle information.
1732  *
1733  * @return
1734  * - LE_FAULT Function failed to find the positionSample.
1735  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid.
1736  * - LE_OK Function succeeded.
1737  *
1738  * @note satId[] can be set to 0 if that information list index is not configured, so
1739  * all satellite parameters (satConst[], satSnr[],satAzim[], satElev[]) are fixed to 0.
1740  *
1741  * @note For LE_OUT_OF_RANGE returned code, invalid value depends on field type:
1742  * UINT16_MAX for satId, LE_GNSS_SV_CONSTELLATION_UNDEFINED for satConst, false for satUsed,
1743  * UINT8_MAX for satSnr, UINT16_MAX for satAzim, UINT8_MAX for satElev.
1744  *
1745  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1746  * valid.
1747  *
1748  * @note If the caller is passing an invalid Position sample reference into this function,
1749  * it is a fatal error, the function will not return.
1750  */
1751 //--------------------------------------------------------------------------------------------------
1753 (
1754  le_gnss_SampleRef_t positionSampleRef,
1755  ///< [IN] Position sample's reference.
1756  uint16_t* satIdPtr,
1757  ///< [OUT] Satellites in View ID number, referring
1758  ///< to NMEA standard.
1759  size_t* satIdSizePtr,
1760  ///< [INOUT]
1761  le_gnss_Constellation_t* satConstPtr,
1762  ///< [OUT] GNSS constellation type.
1763  size_t* satConstSizePtr,
1764  ///< [INOUT]
1765  bool* satUsedPtr,
1766  ///< [OUT] TRUE if satellite in View Used
1767  ///< for Navigation.
1768  size_t* satUsedSizePtr,
1769  ///< [INOUT]
1770  uint8_t* satSnrPtr,
1771  ///< [OUT] Satellites in View Signal To
1772  ///< Noise Ratio [dBHz].
1773  size_t* satSnrSizePtr,
1774  ///< [INOUT]
1775  uint16_t* satAzimPtr,
1776  ///< [OUT] Satellites in View Azimuth [degrees].
1777  ///< Range: 0 to 360
1778  ///< If Azimuth angle is currently unknown,
1779  ///< the value is set to UINT16_MAX.
1780  size_t* satAzimSizePtr,
1781  ///< [INOUT]
1782  uint8_t* satElevPtr,
1783  ///< [OUT] Satellites in View Elevation [degrees].
1784  ///< Range: 0 to 90
1785  ///< If Elevation angle is currently unknown,
1786  ///< the value is set to UINT8_MAX.
1787  size_t* satElevSizePtr
1788  ///< [INOUT]
1789 );
1790 
1791 //--------------------------------------------------------------------------------------------------
1792 /**
1793  * Get the SBAS constellation category given the SBAS satellite number ID.
1794  *
1795  */
1796 //--------------------------------------------------------------------------------------------------
1798 (
1799  uint16_t satId
1800  ///< [IN] SBAS satellite number ID, referring to NMEA standard.
1801 );
1802 
1803 //--------------------------------------------------------------------------------------------------
1804 /**
1805  * Get the Satellites Vehicle status.
1806  *
1807  * @return
1808  * - LE_FAULT Function failed to find the positionSample.
1809  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to UINT8_MAX).
1810  * - LE_OK Function succeeded.
1811  *
1812  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1813  * valid. Please compare them with UINT8_MAX.
1814  *
1815  * @note If the caller is passing an invalid Position sample reference into this function,
1816  * it is a fatal error, the function will not return.
1817  */
1818 //--------------------------------------------------------------------------------------------------
1820 (
1821  le_gnss_SampleRef_t positionSampleRef,
1822  ///< [IN] Position sample's reference.
1823  uint8_t* satsInViewCountPtr,
1824  ///< [OUT] Number of satellites expected to be in view.
1825  uint8_t* satsTrackingCountPtr,
1826  ///< [OUT] Number of satellites in view, when tracking.
1827  uint8_t* satsUsedCountPtr
1828  ///< [OUT] Number of satellites in view used for Navigation.
1829 );
1830 
1831 //--------------------------------------------------------------------------------------------------
1832 /**
1833  * Get the DOP parameters (Dilution Of Precision) for the fixed position
1834  *
1835  * @return
1836  * - LE_FAULT Function failed to find the positionSample.
1837  * - LE_OUT_OF_RANGE At least one of the retrieved parameters is invalid (set to UINT16_MAX).
1838  * - LE_OK Function succeeded.
1839  *
1840  * @deprecated This function is deprecated, le_gnss_GetDilutionOfPrecision() should be used for
1841  * new code.
1842  *
1843  * @note The DOP values are given with 3 decimal places like: DOP value 2200 = 2.200
1844  *
1845  * @note In case the function returns LE_OUT_OF_RANGE, some of the retrieved parameters may be
1846  * valid. Please compare them with UINT16_MAX.
1847  *
1848  * @note If the caller is passing an invalid Position sample reference into this function,
1849  * it is a fatal error, the function will not return.
1850  */
1851 //--------------------------------------------------------------------------------------------------
1853 (
1854  le_gnss_SampleRef_t positionSampleRef,
1855  ///< [IN] Position sample's reference.
1856  uint16_t* hdopPtr,
1857  ///< [OUT] Horizontal Dilution of Precision [resolution 1e-3].
1858  uint16_t* vdopPtr,
1859  ///< [OUT] Vertical Dilution of Precision [resolution 1e-3].
1860  uint16_t* pdopPtr
1861  ///< [OUT] Position Dilution of Precision [resolution 1e-3].
1862 );
1863 
1864 //--------------------------------------------------------------------------------------------------
1865 /**
1866  * Get the DOP parameter (Dilution Of Precision) for the fixed position.
1867  *
1868  * @return
1869  * - LE_FAULT Function failed to find the DOP value.
1870  * - LE_OUT_OF_RANGE The retrieved parameter is invalid (set to UINT16_MAX).
1871  * - LE_OK Function succeeded.
1872  *
1873  * @note This function replaces the deprecated function le_gnss_GetDop().
1874  *
1875  * @note The DOP value is given with 3 decimal places by default like: DOP value 2200 = 2.200
1876  * The resolution can be modified by calling the @c le_gnss_SetDopResolution() function.
1877  *
1878  * @note If the caller is passing an invalid Position sample reference into this function,
1879  * it is a fatal error, the function will not return.
1880  */
1881 //--------------------------------------------------------------------------------------------------
1883 (
1884  le_gnss_SampleRef_t positionSampleRef,
1885  ///< [IN] Position sample's reference.
1886  le_gnss_DopType_t dopType,
1887  ///< [IN] Dilution of Precision type.
1888  uint16_t* dopPtr
1889  ///< [OUT] Dilution of Precision corresponding to the dopType
1890 );
1891 
1892 //--------------------------------------------------------------------------------------------------
1893 /**
1894  * Get the position sample's altitude with respect to the WGS-84 ellipsoid
1895  *
1896  * @return
1897  * - LE_FAULT Function failed to get the altitude.
1898  * - LE_OUT_OF_RANGE The altitudeOnWgs84 is invalid (set to INT32_MAX).
1899  * - LE_OK Function succeeded.
1900  *
1901  * @note altitudeOnWgs84 is in meters, with respect to the WGS-84 ellipsoid with 3 decimal
1902  * places (3047 = 3.047 meters).
1903  *
1904  * @note For a 2D position fix, the altitude with respect to the WGS-84 ellipsoid will be indicated
1905  * as invalid and set to INT32_MAX.
1906  *
1907  * @note If the caller is passing an invalid Position reference into this function,
1908  * it is a fatal error, the function will not return.
1909  */
1910 //--------------------------------------------------------------------------------------------------
1912 (
1913  le_gnss_SampleRef_t positionSampleRef,
1914  ///< [IN] Position sample's reference.
1915  int32_t* altitudeOnWgs84Ptr
1916  ///< [OUT] Altitude in meters, between WGS-84 earth ellipsoid
1917  ///< and mean sea level [resolution 1e-3].
1918 );
1919 
1920 //--------------------------------------------------------------------------------------------------
1921 /**
1922  * Get the position sample's magnetic deviation. It is the difference between the bearing to
1923  * true north and the bearing shown on a magnetic compass. The deviation is positive when the
1924  * magnetic north is east of true north.
1925  *
1926  * @return
1927  * - LE_FAULT Function failed to find the positionSample.
1928  * - LE_OUT_OF_RANGE The magneticDeviation is invalid (set to INT32_MAX).
1929  * - LE_OK Function succeeded.
1930  *
1931  * @note magneticDeviation is in degrees, with 1 decimal places (47 = 4.7 degree).
1932  *
1933  * @note If the caller is passing an invalid Position sample reference into this function,
1934  * it is a fatal error, the function will not return.
1935  */
1936 //--------------------------------------------------------------------------------------------------
1938 (
1939  le_gnss_SampleRef_t positionSampleRef,
1940  ///< [IN] Position sample's reference.
1941  int32_t* magneticDeviationPtr
1942  ///< [OUT] MagneticDeviation in degrees [resolution 1e-1].
1943 );
1944 
1945 //--------------------------------------------------------------------------------------------------
1946 /**
1947  * This function gets the last updated position sample object reference.
1948  *
1949  * @return A reference to last Position's sample.
1950  *
1951  * @note
1952  * On failure, the process exits, so you don't have to worry about checking the returned
1953  * reference for validity.
1954  */
1955 //--------------------------------------------------------------------------------------------------
1957 (
1958  void
1959 );
1960 
1961 //--------------------------------------------------------------------------------------------------
1962 /**
1963  * This function must be called to release the position sample.
1964  *
1965  * @note If the caller is passing an invalid Position sample reference into this function,
1966  * it is a fatal error, the function will not return.
1967  */
1968 //--------------------------------------------------------------------------------------------------
1970 (
1971  le_gnss_SampleRef_t positionSampleRef
1972  ///< [IN] Position sample's reference.
1973 );
1974 
1975 //--------------------------------------------------------------------------------------------------
1976 /**
1977  * This function sets the SUPL Assisted-GNSS mode.
1978  *
1979  * @return
1980  * - LE_OK on success
1981  * - LE_FAULT on failure
1982  * - LE_UNSUPPORTED request not supported
1983  * - LE_TIMEOUT a time-out occurred
1984  *
1985  * @warning The settings are platform dependent. Please refer to
1986  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
1987  */
1988 //--------------------------------------------------------------------------------------------------
1990 (
1991  le_gnss_AssistedMode_t assistedMode
1992  ///< [IN] Assisted-GNSS mode.
1993 );
1994 
1995 //--------------------------------------------------------------------------------------------------
1996 /**
1997  * This function gets the SUPL Assisted-GNSS mode.
1998  *
1999  * @return
2000  * - LE_OK on success
2001  * - LE_FAULT on failure
2002  */
2003 //--------------------------------------------------------------------------------------------------
2005 (
2006  le_gnss_AssistedMode_t* assistedModePtr
2007  ///< [OUT] Assisted-GNSS mode.
2008 );
2009 
2010 //--------------------------------------------------------------------------------------------------
2011 /**
2012  * This function sets the SUPL server URL.
2013  * That server URL is a NULL-terminated string with a maximum string length (including NULL
2014  * terminator) equal to 256. Optionally the port number is specified after a colon.
2015  *
2016  * @return
2017  * - LE_OK on success
2018  * - LE_FAULT on failure
2019  * - LE_BUSY service is busy
2020  * - LE_TIMEOUT a time-out occurred
2021  *
2022  * @note If the SUPL server URL size is bigger than the maximum string length (including NULL
2023  * terminator) size, it is a fatal error, the function will not return.
2024  *
2025  * @warning The settings are platform dependent. Please refer to
2026  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
2027  */
2028 //--------------------------------------------------------------------------------------------------
2030 (
2031  const char* LE_NONNULL suplServerUrl
2032  ///< [IN] SUPL server URL.
2033 );
2034 
2035 //--------------------------------------------------------------------------------------------------
2036 /**
2037  * This function injects the SUPL certificate to be used in A-GNSS sessions. Certificates must
2038  * be encoded in DER. Other certificate encryptions (e.g., PEM, CER and CRT)
2039  * aren't supported.
2040  *
2041  * @return
2042  * - LE_OK on success
2043  * - LE_BAD_PARAMETER on invalid parameter
2044  * - LE_FAULT on failure
2045  * - LE_BUSY service is busy
2046  * - LE_TIMEOUT a time-out occurred
2047  *
2048  * @note If the SUPL certificate size is bigger than the Maximum SUPL certificate size,
2049  * it is a fatal error, the function will not return.
2050  */
2051 //--------------------------------------------------------------------------------------------------
2053 (
2054  uint8_t suplCertificateId,
2055  ///< [IN] ID of the SUPL certificate.
2056  ///< Certificate ID range is 0 to 9
2057  uint16_t suplCertificateLen,
2058  ///< [IN] SUPL certificate size in Bytes.
2059  const char* LE_NONNULL suplCertificate
2060  ///< [IN] SUPL certificate contents.
2061 );
2062 
2063 //--------------------------------------------------------------------------------------------------
2064 /**
2065  * This function deletes the SUPL certificate.
2066  *
2067  * @return
2068  * - LE_OK on success
2069  * - LE_BAD_PARAMETER on invalid parameter
2070  * - LE_FAULT on failure
2071  * - LE_BUSY service is busy
2072  * - LE_TIMEOUT a time-out occurred
2073  */
2074 //--------------------------------------------------------------------------------------------------
2076 (
2077  uint8_t suplCertificateId
2078  ///< [IN] ID of the SUPL certificate.
2079  ///< Certificate ID range is 0 to 9
2080 );
2081 
2082 //--------------------------------------------------------------------------------------------------
2083 /**
2084  * This function sets the enabled NMEA sentences using a bit mask.
2085  *
2086  * @return
2087  * - LE_OK Success
2088  * - LE_BAD_PARAMETER Bit mask exceeds the maximal value
2089  * - LE_FAULT Failure
2090  * - LE_BUSY Service is busy
2091  * - LE_TIMEOUT Timeout occurred
2092  * - LE_NOT_PERMITTED GNSS device is not in "ready" state
2093  *
2094  * @warning This function may be subject to limitations depending on the platform. Please refer to
2095  * the @ref platformConstraintsGnss page.
2096  *
2097  * @note Some NMEA sentences are unsupported depending on the plateform. Please refer to
2098  * @ref platformConstraintsGnss_nmeaMask section for full details. Setting an unsuported NMEA
2099  * sentence won't report an error.
2100  *
2101  * @warning The settings are platform dependent. Please refer to
2102  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
2103  *
2104  * @deprecated LE_GNSS_NMEA_MASK_PQXFI is deprecated. LE_GNSS_NMEA_MASK_PTYPE should be used
2105  * instead. Setting LE_GNSS_NMEA_MASK_PTYPE will also set LE_GNSS_NMEA_MASK_PQXFI.
2106  */
2107 //--------------------------------------------------------------------------------------------------
2109 (
2110  le_gnss_NmeaBitMask_t nmeaMask
2111  ///< [IN] Bit mask for enabled NMEA sentences.
2112 );
2113 
2114 //--------------------------------------------------------------------------------------------------
2115 /**
2116  * This function gets the bit mask for the enabled NMEA sentences.
2117  *
2118  * @return
2119  * - LE_OK Success
2120  * - LE_FAULT Failure
2121  * - LE_BUSY Service is busy
2122  * - LE_TIMEOUT Timeout occurred
2123  * - LE_NOT_PERMITTED GNSS device is not in "ready" state
2124  *
2125  * @note If the caller is passing an null pointer to this function, it is a fatal error
2126  * and the function will not return.
2127  *
2128  * @note Some NMEA sentences are unsupported depending on the plateform. Please refer to
2129  * @ref platformConstraintsGnss_nmeaMask section for full details. The bit mask for an unset
2130  * or unsupported NMEA sentence is zero.
2131  */
2132 //--------------------------------------------------------------------------------------------------
2134 (
2135  le_gnss_NmeaBitMask_t* nmeaMaskPtrPtr
2136  ///< [OUT] Bit mask for enabled NMEA sentences.
2137 );
2138 
2139 //--------------------------------------------------------------------------------------------------
2140 /**
2141  * This function returns the status of the GNSS device.
2142  *
2143  */
2144 //--------------------------------------------------------------------------------------------------
2146 (
2147  void
2148 );
2149 
2150 //--------------------------------------------------------------------------------------------------
2151 /**
2152  * This function sets the GNSS minimum elevation.
2153  *
2154  * @return
2155  * - LE_OK on success
2156  * - LE_FAULT on failure
2157  * - LE_OUT_OF_RANGE if the minimum elevation is above range
2158  * - LE_UNSUPPORTED request not supported
2159  *
2160  * @warning The settings are platform dependent. Please refer to
2161  * @ref platformConstraintsGnss_SettingConfiguration section for full details.
2162  */
2163 //--------------------------------------------------------------------------------------------------
2165 (
2166  uint8_t minElevation
2167  ///< [IN] Minimum elevation in degrees [range 0..90].
2168 );
2169 
2170 //--------------------------------------------------------------------------------------------------
2171 /**
2172  * This function gets the GNSS minimum elevation.
2173  *
2174  * @return
2175  * - LE_OK on success
2176  * - LE_FAULT on failure
2177  * - LE_UNSUPPORTED request not supported
2178  *
2179  * @note If the caller is passing an null pointer to this function, it is a fatal error
2180  * and the function will not return.
2181  */
2182 //--------------------------------------------------------------------------------------------------
2184 (
2185  uint8_t* minElevationPtrPtr
2186  ///< [OUT] Minimum elevation in degrees [range 0..90].
2187 );
2188 
2189 //--------------------------------------------------------------------------------------------------
2190 /**
2191  * Set the resolution for the DOP parameters
2192  *
2193  * @return LE_OK Function succeeded.
2194  * @return LE_BAD_PARAMETER Invalid parameter provided.
2195  * @return LE_FAULT Function failed.
2196  *
2197  * @note The function sets the same resolution to all DOP values returned by
2198  * le_gnss_GetDilutionOfPrecision() API. The resolution setting takes effect immediately.
2199  *
2200  * @note The resolution setting is done per client session.
2201  */
2202 //--------------------------------------------------------------------------------------------------
2204 (
2205  le_gnss_Resolution_t resolution
2206  ///< [IN] Resolution.
2207 );
2208 
2209 //--------------------------------------------------------------------------------------------------
2210 /**
2211  * Set the resolution for the specific type of data
2212  *
2213  * @return LE_OK Function succeeded.
2214  * @return LE_BAD_PARAMETER Invalid parameter provided.
2215  * @return LE_FAULT Function failed.
2216  *
2217  * @note The resolution setting takes effect immediately and is not persistent to reset.
2218  *
2219  * @note The resolution setting is done per client session.
2220  */
2221 //--------------------------------------------------------------------------------------------------
2223 (
2224  le_gnss_DataType_t dataType,
2225  ///< [IN] Data type.
2226  le_gnss_Resolution_t resolution
2227  ///< [IN] Resolution.
2228 );
2229 
2230 //--------------------------------------------------------------------------------------------------
2231 /**
2232  * This function converts a location data parameter from/to multi-coordinate system
2233  *
2234  * @return
2235  * - LE_OK on success
2236  * - LE_FAULT on failure
2237  * - LE_BAD_PARAMETER Invalid parameter provided.
2238  * - LE_UNSUPPORTED request not supported
2239  *
2240  * @note The resolution of location data parameter remains unchanged after the conversion.
2241  */
2242 //--------------------------------------------------------------------------------------------------
2244 (
2245  le_gnss_CoordinateSystem_t coordinateSrc,
2246  ///< [IN] Coordinate system to convert from.
2247  le_gnss_CoordinateSystem_t coordinateDst,
2248  ///< [IN] Coordinate system to convert to.
2249  le_gnss_LocationDataType_t locationDataType,
2250  ///< [IN] Type of location data to convert.
2251  int64_t locationDataSrc,
2252  ///< [IN] Data to convert.
2253  int64_t* locationDataDstPtr
2254  ///< [OUT] Converted Data.
2255 );
2256 
2257 #endif // LE_GNSS_INTERFACE_H_INCLUDE_GUARD
Longitude data position.
Definition: le_gnss_interface.h:947
Definition: le_gnss_interface.h:748
le_gnss_AssistedMode_t
Definition: le_gnss_interface.h:808
le_result_t le_gnss_GetDirection(le_gnss_SampleRef_t positionSampleRef, uint32_t *directionPtr, uint32_t *directionAccuracyPtr)
le_gnss_DopType_t
Definition: le_gnss_interface.h:825
Coordinate system WGS84.
Definition: le_gnss_interface.h:928
le_result_t le_gnss_GetAltitude(le_gnss_SampleRef_t positionSampleRef, int32_t *altitudePtr, int32_t *vAccuracyPtr)
The GNSS device is not initialized.
Definition: le_gnss_interface.h:668
le_gnss_SbasConstellationCategory_t le_gnss_GetSbasConstellationCategory(uint16_t satId)
le_result_t le_gnss_InjectSuplCertificate(uint8_t suplCertificateId, uint16_t suplCertificateLen, const char *LE_NONNULL suplCertificate)
Do not use.
Definition: le_gnss_interface.h:676
void(* le_gnss_PositionHandlerFunc_t)(le_gnss_SampleRef_t positionSampleRef, void *contextPtr)
Definition: le_gnss_interface.h:972
le_result_t le_gnss_GetSatellitesInfo(le_gnss_SampleRef_t positionSampleRef, uint16_t *satIdPtr, size_t *satIdSizePtr, le_gnss_Constellation_t *satConstPtr, size_t *satConstSizePtr, bool *satUsedPtr, size_t *satUsedSizePtr, uint8_t *satSnrPtr, size_t *satSnrSizePtr, uint16_t *satAzimPtr, size_t *satAzimSizePtr, uint8_t *satElevPtr, size_t *satElevSizePtr)
Resolution of 3 decimal places.
Definition: le_gnss_interface.h:714
le_gnss_LocationDataType_t
Definition: le_gnss_interface.h:943
Definition: le_gnss_interface.h:788
le_result_t le_gnss_GetExtendedEphemerisValidity(uint64_t *startTimePtr, uint64_t *stopTimePtr)
GNGSA type enabled: GNSS DOP and active satellites.
Definition: le_gnss_interface.h:903
le_result_t
Definition: le_basics.h:35
Vertical dilution of precision.
Definition: le_gnss_interface.h:831
le_result_t le_gnss_Start(void)
Standalone mode.
Definition: le_gnss_interface.h:810
le_gnss_PositionHandlerRef_t le_gnss_AddPositionHandler(le_gnss_PositionHandlerFunc_t handlerPtr, void *contextPtr)
Russian satellite navigation system.
Definition: le_gnss_interface.h:871
le_result_t le_gnss_GetEpochTime(le_gnss_SampleRef_t positionSampleRef, uint64_t *millisecondsPtr)
le_result_t le_gnss_ForceFactoryRestart(void)
struct le_gnss_Sample * le_gnss_SampleRef_t
Definition: le_gnss_interface.h:658
le_result_t le_gnss_LoadExtendedEphemerisFile(int fd)
PSTIS type enabled: GPS session start indication.
Definition: le_gnss_interface.h:909
le_result_t le_gnss_GetAcquisitionRate(uint32_t *ratePtr)
void le_gnss_DisconnectService(void)
Definition: le_gnss_interface.h:757
Horizontal speed accuracy data.
Definition: le_gnss_interface.h:733
GAGNS type enabled: Fix data for Galileo.
Definition: le_gnss_interface.h:916
Definition: le_gnss_interface.h:779
PTYPE type enabled: Proprietary Type mask.
Definition: le_gnss_interface.h:911
Definition: le_gnss_interface.h:791
Chinese satellite navigation system.
Definition: le_gnss_interface.h:873
Resolution of 2 decimal places.
Definition: le_gnss_interface.h:712
GNGNS type enabled: GNSS fix data.
Definition: le_gnss_interface.h:902
Position dilution of precision.
Definition: le_gnss_interface.h:827
GAGGA type enabled: Galileo fix data.
Definition: le_gnss_interface.h:904
le_result_t le_gnss_ForceColdRestart(void)
Unknown resolution.
Definition: le_gnss_interface.h:716
GAGSA type enabled: Galileo DOP and active satellites.
Definition: le_gnss_interface.h:905
Estimated (i.e. forward predicted) position fix.
Definition: le_gnss_interface.h:695
le_result_t le_gnss_ForceWarmRestart(void)
le_gnss_State_t
Definition: le_gnss_interface.h:666
le_result_t le_gnss_InjectUtcTime(uint64_t timeUtc, uint32_t timeUnc)
GPGSV type enabled: GPS satellites in view.
Definition: le_gnss_interface.h:898
le_result_t le_gnss_SetDataResolution(le_gnss_DataType_t dataType, le_gnss_Resolution_t resolution)
GPGRS type enabled: GPS Range residuals.
Definition: le_gnss_interface.h:912
Outside US area.
Definition: le_gnss_interface.h:854
Latitude data position.
Definition: le_gnss_interface.h:945
Definition: le_gnss_interface.h:760
Definition: le_gnss_interface.h:785
Japanese satellite navigation system.
Definition: le_gnss_interface.h:878
le_result_t le_gnss_SetConstellationArea(le_gnss_Constellation_t satConstellation, le_gnss_ConstellationArea_t constellationArea)
le_result_t le_gnss_GetTtff(uint32_t *ttffPtr)
le_result_t le_gnss_GetConstellation(le_gnss_ConstellationBitMask_t *constellationMaskPtr)
Resolution of 0 decimal place.
Definition: le_gnss_interface.h:708
Altitude data position.
Definition: le_gnss_interface.h:949
The GNSS device is active.
Definition: le_gnss_interface.h:672
void le_gnss_RemovePositionHandler(le_gnss_PositionHandlerRef_t handlerRef)
le_result_t le_gnss_SetSuplServerUrl(const char *LE_NONNULL suplServerUrl)
Maximum value.
Definition: le_gnss_interface.h:797
Coordinate system PZ90.
Definition: le_gnss_interface.h:930
le_result_t le_gnss_EnableExtendedEphemerisFile(void)
Unset area.
Definition: le_gnss_interface.h:850
3-Dimensional position fix.
Definition: le_gnss_interface.h:693
le_result_t le_gnss_GetAltitudeOnWgs84(le_gnss_SampleRef_t positionSampleRef, int32_t *altitudeOnWgs84Ptr)
le_result_t le_gnss_GetTime(le_gnss_SampleRef_t positionSampleRef, uint16_t *hoursPtr, uint16_t *minutesPtr, uint16_t *secondsPtr, uint16_t *millisecondsPtr)
le_result_t le_gnss_GetSuplAssistedMode(le_gnss_AssistedMode_t *assistedModePtr)
le_result_t le_gnss_GetLocation(le_gnss_SampleRef_t positionSampleRef, int32_t *latitudePtr, int32_t *longitudePtr, int32_t *hAccuracyPtr)
le_result_t le_gnss_DisableExtendedEphemerisFile(void)
Time dilution of precision.
Definition: le_gnss_interface.h:835
GAVTG type enabled: Galileo vector track and speed over the ground.
Definition: le_gnss_interface.h:908
le_result_t le_gnss_TryConnectService(void)
le_result_t le_gnss_SetAcquisitionRate(uint32_t rate)
le_result_t le_gnss_SetMinElevation(uint8_t minElevation)
Definition: le_gnss_interface.h:751
le_gnss_NmeaBitMask_t
Definition: le_gnss_interface.h:894
le_result_t le_gnss_GetDilutionOfPrecision(le_gnss_SampleRef_t positionSampleRef, le_gnss_DopType_t dopType, uint16_t *dopPtr)
le_result_t le_gnss_DeleteSuplCertificate(uint8_t suplCertificateId)
North American satellite navigation system.
Definition: le_gnss_interface.h:869
le_result_t le_gnss_ConvertDataCoordinateSystem(le_gnss_CoordinateSystem_t coordinateSrc, le_gnss_CoordinateSystem_t coordinateDst, le_gnss_LocationDataType_t locationDataType, int64_t locationDataSrc, int64_t *locationDataDstPtr)
le_gnss_FixState_t
Definition: le_gnss_interface.h:687
2-Dimensional position fix.
Definition: le_gnss_interface.h:691
le_result_t le_gnss_GetMagneticDeviation(le_gnss_SampleRef_t positionSampleRef, int32_t *magneticDeviationPtr)
Definition: le_gnss_interface.h:794
Maximum value.
Definition: le_gnss_interface.h:951
void le_gnss_ReleaseSampleRef(le_gnss_SampleRef_t positionSampleRef)
Definition: le_gnss_interface.h:782
le_result_t le_gnss_GetNmeaSentences(le_gnss_NmeaBitMask_t *nmeaMaskPtrPtr)
DEBUG type enabled: Debug NMEA indication.
Definition: le_gnss_interface.h:914
GPGLL type enabled: GPS Geographic position, latitude / longitude.
Definition: le_gnss_interface.h:913
The GNSS device is disabled.
Definition: le_gnss_interface.h:674
le_result_t le_gnss_GetVerticalSpeed(le_gnss_SampleRef_t positionSampleRef, int32_t *vspeedPtr, int32_t *vspeedAccuracyPtr)
MS-Assisted mode.
Definition: le_gnss_interface.h:814
le_result_t le_gnss_SetSuplAssistedMode(le_gnss_AssistedMode_t assistedMode)
Unknown data type.
Definition: le_gnss_interface.h:735
le_result_t le_gnss_GetDate(le_gnss_SampleRef_t positionSampleRef, uint16_t *yearPtr, uint16_t *monthPtr, uint16_t *dayPtr)
le_gnss_ConstellationBitMask_t
Definition: le_gnss_interface.h:867
le_result_t le_gnss_SetDopResolution(le_gnss_Resolution_t resolution)
GPVTG type enabled: GPS vector track and speed over the ground.
Definition: le_gnss_interface.h:900
Maximum value.
Definition: le_gnss_interface.h:932
Vertical accuracy data.
Definition: le_gnss_interface.h:729
void le_gnss_ConnectService(void)
GPRMC type enabled: GPS recommended minimum data.
Definition: le_gnss_interface.h:899
le_result_t le_gnss_GetSatellitesStatus(le_gnss_SampleRef_t positionSampleRef, uint8_t *satsInViewCountPtr, uint8_t *satsTrackingCountPtr, uint8_t *satsUsedCountPtr)
European Union satellite navigation system.
Definition: le_gnss_interface.h:875
le_result_t le_gnss_Stop(void)
Definition: le_gnss_interface.h:763
Worldwide area.
Definition: le_gnss_interface.h:852
le_gnss_CoordinateSystem_t
Definition: le_gnss_interface.h:926
le_gnss_State_t le_gnss_GetState(void)
le_result_t le_gnss_SetNmeaSentences(le_gnss_NmeaBitMask_t nmeaMask)
Horizontal dilution of precision.
Definition: le_gnss_interface.h:829
le_gnss_ConstellationArea_t
Definition: le_gnss_interface.h:848
le_result_t le_gnss_GetPositionState(le_gnss_SampleRef_t positionSampleRef, le_gnss_FixState_t *statePtr)
le_result_t le_gnss_GetMinElevation(uint8_t *minElevationPtrPtr)
le_result_t le_gnss_Disable(void)
GPGGA type enabled: GPS fix data.
Definition: le_gnss_interface.h:896
void le_gnss_SetServerDisconnectHandler(le_gnss_DisconnectHandler_t disconnectHandler, void *contextPtr)
Definition: le_gnss_interface.h:754
le_result_t le_gnss_GetHorizontalSpeed(le_gnss_SampleRef_t positionSampleRef, uint32_t *hspeedPtr, uint32_t *hspeedAccuracyPtr)
le_gnss_SampleRef_t le_gnss_GetLastSampleRef(void)
le_result_t le_gnss_SetConstellation(le_gnss_ConstellationBitMask_t constellationMask)
le_gnss_Resolution_t
Definition: le_gnss_interface.h:706
GNSS constellation field not defined.
Definition: le_gnss_interface.h:777
Vertical speed accuracy data.
Definition: le_gnss_interface.h:731
le_result_t le_gnss_ForceHotRestart(void)
SBAS constellation used in solution.
Definition: le_gnss_interface.h:877
MS-Based mode.
Definition: le_gnss_interface.h:812
le_result_t le_gnss_Enable(void)
void(* le_gnss_DisconnectHandler_t)(void *)
Definition: le_gnss_interface.h:474
le_result_t le_gnss_GetGpsTime(le_gnss_SampleRef_t positionSampleRef, uint32_t *gpsWeekPtr, uint32_t *gpsTimeOfWeekPtr)
GPDTM type enabled: Local geodetic datum and datum offset from a.
Definition: le_gnss_interface.h:915
GPGSA type enabled: GPS DOP and active satellites.
Definition: le_gnss_interface.h:897
le_gnss_SbasConstellationCategory_t
Definition: le_gnss_interface.h:746
le_result_t le_gnss_GetConstellationArea(le_gnss_Constellation_t satConstellation, le_gnss_ConstellationArea_t *constellationAreaPtr)
le_result_t le_gnss_GetGpsLeapSeconds(le_gnss_SampleRef_t positionSampleRef, uint8_t *leapSecondsPtr)
The GNSS device is ready.
Definition: le_gnss_interface.h:670
Resolution of 1 decimal place.
Definition: le_gnss_interface.h:710
The GNSS fix position is not fixed.
Definition: le_gnss_interface.h:689
Geometric dilution of precision.
Definition: le_gnss_interface.h:833
GLGSV type enabled: GLONASS satellites in view.
Definition: le_gnss_interface.h:901
GAGSV type enabled: Galileo satellites in view.
Definition: le_gnss_interface.h:906
le_result_t le_gnss_GetTimeAccuracy(le_gnss_SampleRef_t positionSampleRef, uint32_t *timeAccuracyPtr)
le_gnss_DataType_t
Definition: le_gnss_interface.h:727
struct le_gnss_PositionHandler * le_gnss_PositionHandlerRef_t
Definition: le_gnss_interface.h:962
GARMC type enabled: Galileo recommended minimum data.
Definition: le_gnss_interface.h:907
le_gnss_Constellation_t
Definition: le_gnss_interface.h:775
le_result_t le_gnss_GetDop(le_gnss_SampleRef_t positionSampleRef, uint16_t *hdopPtr, uint16_t *vdopPtr, uint16_t *pdopPtr)