|
Myriota UltraLite SDK 2.4.0
|
GNSS positioning and time synchronisation. More...
Functions | |
| MYRIOTA_USER_API int | GNSSFix (void) |
| Perform a time and location fix from GNSS. | |
| MYRIOTA_USER_API bool | HasValidGNSSFix (void) |
| Check if the system has a valid GNSS fix. | |
| MYRIOTA_USER_API void | LocationGet (int32_t *Latitude, int32_t *Longitude, time_t *TimeStamp) |
| Get the last recorded location and timestamp. | |
| MYRIOTA_USER_API void | LocationSet (int32_t Latitude, int32_t Longitude) |
| Set the location. | |
| MYRIOTA_USER_API time_t | TimeGet (void) |
| Get the current epoch time. | |
| MYRIOTA_USER_API void | TimeSet (time_t Time) |
| Set the current epoch time. | |
GNSS positioning and time synchronisation.
| MYRIOTA_USER_API int GNSSFix | ( | void | ) |
Perform a time and location fix from GNSS.
Updates real-time clock and latitude and longitude values.
| MYRIOTA_USER_API bool HasValidGNSSFix | ( | void | ) |
Check if the system has a valid GNSS fix.
| MYRIOTA_USER_API void LocationGet | ( | int32_t * | Latitude, |
| int32_t * | Longitude, | ||
| time_t * | TimeStamp | ||
| ) |
Get the last recorded location and timestamp.
| Latitude[out] | Pointer to store the latitude in degrees multiplied by 1e7. |
| Longitude[out] | Pointer to store the longitude in degrees multiplied by 1e7. |
| TimeStamp[out] | Pointer to store the timestamp of the last fix. |
| MYRIOTA_USER_API void LocationSet | ( | int32_t | Latitude, |
| int32_t | Longitude | ||
| ) |
Set the location.
Location set may be overridden by GNSS fix if GNSS location fix is enabled.
| Latitude | Latitude in degrees multiplied by 1e7. |
| Longitude | Longitude in degrees multiplied by 1e7. |
| MYRIOTA_USER_API time_t TimeGet | ( | void | ) |
Get the current epoch time.
| MYRIOTA_USER_API void TimeSet | ( | time_t | Time | ) |
Set the current epoch time.
| Time | The epoch time to set. |