mbgtools-lx  4.2.8
TM_GPS Struct Reference

Local date and time computed from GPS time. More...

#include <gpsdefs.h>

Data Fields

int16_t year
 year number, 0..9999 More...
 
int8_t month
 month, 1..12 More...
 
int8_t mday
 day of month, 1..31 More...
 
int16_t yday
 day of year, 1..365, or 366 in case of leap year More...
 
int8_t wday
 day of week, 0..6 == Sun..Sat More...
 
int8_t hour
 hours, 0..23 More...
 
int8_t min
 minutes, 0..59 More...
 
int8_t sec
 seconds, 0..59, or 60 in case of inserted leap second More...
 
int32_t frac
 fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units More...
 
int32_t offs_from_utc
 local time offset from UTC [sec] More...
 
uint16_t status
 status flags, see TM_GPS_STATUS_BIT_MASKS More...
 

Detailed Description

Local date and time computed from GPS time.

The current number of leap seconds have to be added to get UTC from GPS time. Additional corrections could have been made according to the time zone/daylight saving parameters TZDL defined by the user. The status field can be checked to see which corrections have actually been applied.

Note
Conversion from GPS time to UTC and/or local time can only be done if some valid UTC correction parameters are available in the receiver's non-volatile memory.

Definition at line 2593 of file gpsdefs.h.

Field Documentation

◆ frac

int32_t TM_GPS::frac

fractions of a second, 1/RECEIVER_INFO::ticks_per_sec units

Definition at line 2603 of file gpsdefs.h.

Referenced by nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), and show_gps_ucap().

◆ hour

◆ mday

◆ min

◆ month

◆ offs_from_utc

int32_t TM_GPS::offs_from_utc

local time offset from UTC [sec]

Definition at line 2604 of file gpsdefs.h.

Referenced by nano_time_64_to_tm_gps(), set_date_time(), and show_time_and_status().

◆ sec

int8_t TM_GPS::sec

seconds, 0..59, or 60 in case of inserted leap second

Definition at line 2602 of file gpsdefs.h.

Referenced by mbg_get_all_ucap_info(), mbg_str_tm_gps_date_time(), nano_time_64_to_tm_gps(), pcps_str_tm_gps_date_time(), set_date_time(), show_gps_ucap(), and tm_gps_to_nano_time_64().

◆ status

uint16_t TM_GPS::status

status flags, see TM_GPS_STATUS_BIT_MASKS

Definition at line 2605 of file gpsdefs.h.

Referenced by set_date_time(), show_gps_ucap(), and show_time_and_status().

◆ wday

int8_t TM_GPS::wday

day of week, 0..6 == Sun..Sat

Definition at line 2599 of file gpsdefs.h.

Referenced by nano_time_64_to_tm_gps(), and pcps_str_tm_gps_date_time().

◆ yday

int16_t TM_GPS::yday

day of year, 1..365, or 366 in case of leap year

Definition at line 2598 of file gpsdefs.h.

Referenced by nano_time_64_to_tm_gps().

◆ year


The documentation for this struct was generated from the following file: