Struct ublox::NavTimeLsRef
source · pub struct NavTimeLsRef<'a>(/* private fields */);
Expand description
Leap second event information Contains a reference to an underlying buffer, contains accessor methods to retrieve data.
Implementations§
pub fn as_bytes(&self) -> &[u8] ⓘ
sourcepub fn reserved_1(&self) -> [u8; 3]
pub fn reserved_1(&self) -> [u8; 3]
sourcepub fn src_of_curr_ls(&self) -> u8
pub fn src_of_curr_ls(&self) -> u8
Information source for the current number of leap seconds. 0: Default (hardcoded in the firmware, can be outdated) 1: Derived from time difference between GPS and GLONASS time 2: GPS 3: SBAS 4: BeiDou 5: Galileo 6: Aided data 7: Configured 8: NavIC 255: Unknown
sourcepub fn current_ls(&self) -> i8
pub fn current_ls(&self) -> i8
Current number of leap seconds since start of GPS time (Jan 6, 1980). It reflects how much GPS time is ahead of UTC time. Galileo number of leap seconds is the same as GPS. BeiDou number of leap seconds is 14 less than GPS. GLONASS follows UTC time, so no leap seconds.
sourcepub fn src_of_ls_change(&self) -> u8
pub fn src_of_ls_change(&self) -> u8
Information source for the future leap second event. 0: No source 2: GPS 3: SBAS 4: BeiDou 5: Galileo 6: GLONASS 7: NavIC
sourcepub fn ls_change(&self) -> i8
pub fn ls_change(&self) -> i8
Future leap second change if one is scheduled. +1 = positive leap second, -1 = negative leap second, 0 = no future leap second event scheduled or no information available.
sourcepub fn time_to_ls_event(&self) -> i32
pub fn time_to_ls_event(&self) -> i32
Number of seconds until the next leap second event, or from the last leap second event if no future event scheduled. If > 0 event is in the future, = 0 event is now, < 0 event is in the past. Valid only if validTimeToLsEvent = 1.
sourcepub fn date_of_ls_gps_wn(&self) -> u16
pub fn date_of_ls_gps_wn(&self) -> u16
GPS week number (WN) of the next leap second event or the last one if no future event scheduled. Valid only if validTimeToLsEvent = 1.
sourcepub fn date_of_ls_gps_dn(&self) -> u16
pub fn date_of_ls_gps_dn(&self) -> u16
GPS day of week number (DN) for the next leap second event or the last one if no future event scheduled. Valid only if validTimeToLsEvent = 1. (GPS and Galileo DN: from 1 = Sun to 7 = Sat. BeiDou DN: from 0 = Sun to 6 = Sat.)
sourcepub fn reserved_2(&self) -> [u8; 3]
pub fn reserved_2(&self) -> [u8; 3]
sourcepub fn valid(&self) -> NavTimeLsFlags
pub fn valid(&self) -> NavTimeLsFlags
Validity flags see NavTimeLsFlags