mbgtools-lx  4.2.8
PCPS_TIME Struct Reference

Local calendar date and time, plus sync status. More...

#include <pcpsdefs.h>

Data Fields

uint8_t sec100
 hundredths of seconds, 0..99, 10 ms resolution More...
 
uint8_t sec
 seconds, 0..59, or 60 if leap second More...
 
uint8_t min
 minutes, 0..59 More...
 
uint8_t hour
 hours, 0..23 More...
 
uint8_t mday
 day of month, 0..31 More...
 
uint8_t wday
 day of week, 1..7, 1 = Monday More...
 
uint8_t month
 month, 1..12 More...
 
uint8_t year
 year of the century, 0..99 More...
 
PCPS_TIME_STATUS status
 status bits, see PCPS_TIME_STATUS_FLAGS_COMMON More...
 
PCPS_SIG_VAL signal
 signal strength, see PCPS_SIG_VAL_DEFS More...
 
int8_t offs_utc
 [hours], 0 if not _pcps_has_utc_offs More...
 

Detailed Description

Local calendar date and time, plus sync status.

This legacy structure is supported by all bus level devices but has a time resultion of 10 ms only. For more accurate time stamps the structures PCPS_HR_TIME and PCPS_TIME_STAMP should be used preferably.

See also
PCPS_HR_TIME
PCPS_TIME_STAMP
PCPS_STIME

Definition at line 1128 of file pcpsdefs.h.

Field Documentation

◆ hour

◆ mday

◆ min

◆ month

◆ offs_utc

◆ sec

◆ sec100

uint8_t PCPS_TIME::sec100

◆ signal

PCPS_SIG_VAL PCPS_TIME::signal

signal strength, see PCPS_SIG_VAL_DEFS

Definition at line 1141 of file pcpsdefs.h.

Referenced by mbg_snprint_date_time(), pcps_probe_device(), show_modulation(), and show_time_and_status().

◆ status

◆ wday

uint8_t PCPS_TIME::wday

day of week, 1..7, 1 = Monday

Definition at line 1136 of file pcpsdefs.h.

Referenced by pcps_probe_device(), pcps_time_is_valid(), and pcps_time_to_time_str().

◆ year


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