mbgtools-lx  4.2.8
NTP_SYS_STATE Struct Reference

Structure that represents the current system status of an NTP device. More...

#include <gpsdefs.h>

Data Fields

uint32_t supp_flags
 Supported NTP system state values, see NTP_SYS_STATE_SUPP_FLAG_MASKS. More...
 
uint8_t leap_ind
 Leap indicator, see NTP_LI_BITS. More...
 
uint8_t sys_sync_src
 Current synchronization source, see NTP_SYNC_SRC_BITS. More...
 
uint8_t sys_evt_cnt
 Number of events, since the last time the event code changed. More...
 
uint8_t sys_rec_evt
 Most recent event message, see NTP_SYS_EVT_BITS. More...
 
uint8_t impl_type
 NTP implementation type, see NTP_IMPL. More...
 
uint8_t major_version
 Major version number. More...
 
uint8_t minor_version
 Minor version number. More...
 
uint8_t micro_version
 Micro version number. More...
 
uint16_t patch_lvl
 Patch level number. More...
 
uint8_t cpu_type
 Processor type, see NTP_CPU_TYPES. More...
 
uint8_t system
 Operating system, see NTP_SYSTEMS. More...
 
uint8_t stratum
 Current stratum level of the system. More...
 
int8_t precision
 Precision of the system clock (2^precision) More...
 
uint16_t sys_assoc
 Association ID of the current system peer, do not use NTP_SYS_STATE::sys_peer if this is supported. More...
 
int32_t root_delay
 [us] Total roundtrip delay to the system peer More...
 
int32_t root_disp
 [us] Total dispersion to the system peer More...
 
MBG_IP_ADDR ref_id
 Reference ID of the current system peer, see MBG_IP_ADDR. More...
 
NTP_TSTAMP ref_time
 Last time the system time has been adjusted, see NTP_TSTAMP. More...
 
NTP_TSTAMP sys_time
 Current system time, see NTP_TSTAMP. More...
 
uint16_t sys_peer
 Index of the current system peer. More...
 
uint8_t poll
 Current polling interval for the system peer (tc) More...
 
uint8_t minpoll
 Minimal polling interval for the system peer (mintc) More...
 
int64_t offset
 [ns] Combined offset to the system peer More...
 
int32_t freq
 [ppb] Frequency offset relative to hardware clock More...
 
int32_t sys_jitter
 [us] Combined jitter of the system More...
 
int32_t clk_jitter
 [us] Jitter of the clock More...
 
int32_t clk_wander
 [ppb] Frequency wander of the clock More...
 
uint8_t service_state
 Current state of the NTP service see MBG_NTP_SERVICE_STATES. More...
 
uint8_t reserved_1
 Reserved, currently always 0. More...
 
uint16_t reserved_2
 Reserved, currently always 0. More...
 
uint32_t reserved_3
 Reserved, currently always 0. More...
 

Detailed Description

Structure that represents the current system status of an NTP device.

This structure can be requested from a monitoring program to determine the device system status

Definition at line 16872 of file gpsdefs.h.

Field Documentation

◆ clk_jitter

int32_t NTP_SYS_STATE::clk_jitter

[us] Jitter of the clock

Definition at line 16910 of file gpsdefs.h.

◆ clk_wander

int32_t NTP_SYS_STATE::clk_wander

[ppb] Frequency wander of the clock

Definition at line 16911 of file gpsdefs.h.

◆ cpu_type

uint8_t NTP_SYS_STATE::cpu_type

Processor type, see NTP_CPU_TYPES.

Definition at line 16887 of file gpsdefs.h.

◆ freq

int32_t NTP_SYS_STATE::freq

[ppb] Frequency offset relative to hardware clock

Definition at line 16908 of file gpsdefs.h.

◆ impl_type

uint8_t NTP_SYS_STATE::impl_type

NTP implementation type, see NTP_IMPL.

Definition at line 16881 of file gpsdefs.h.

◆ leap_ind

uint8_t NTP_SYS_STATE::leap_ind

Leap indicator, see NTP_LI_BITS.

Definition at line 16876 of file gpsdefs.h.

◆ major_version

uint8_t NTP_SYS_STATE::major_version

Major version number.

Definition at line 16882 of file gpsdefs.h.

◆ micro_version

uint8_t NTP_SYS_STATE::micro_version

Micro version number.

Definition at line 16884 of file gpsdefs.h.

◆ minor_version

uint8_t NTP_SYS_STATE::minor_version

Minor version number.

Definition at line 16883 of file gpsdefs.h.

◆ minpoll

uint8_t NTP_SYS_STATE::minpoll

Minimal polling interval for the system peer (mintc)

Definition at line 16904 of file gpsdefs.h.

◆ offset

int64_t NTP_SYS_STATE::offset

[ns] Combined offset to the system peer

Definition at line 16906 of file gpsdefs.h.

◆ patch_lvl

uint16_t NTP_SYS_STATE::patch_lvl

Patch level number.

Definition at line 16886 of file gpsdefs.h.

◆ poll

uint8_t NTP_SYS_STATE::poll

Current polling interval for the system peer (tc)

Definition at line 16903 of file gpsdefs.h.

◆ precision

int8_t NTP_SYS_STATE::precision

Precision of the system clock (2^precision)

Definition at line 16891 of file gpsdefs.h.

◆ ref_id

MBG_IP_ADDR NTP_SYS_STATE::ref_id

Reference ID of the current system peer, see MBG_IP_ADDR.

Definition at line 16897 of file gpsdefs.h.

◆ ref_time

NTP_TSTAMP NTP_SYS_STATE::ref_time

Last time the system time has been adjusted, see NTP_TSTAMP.

Definition at line 16899 of file gpsdefs.h.

◆ reserved_1

uint8_t NTP_SYS_STATE::reserved_1

Reserved, currently always 0.

Definition at line 16914 of file gpsdefs.h.

◆ reserved_2

uint16_t NTP_SYS_STATE::reserved_2

Reserved, currently always 0.

Definition at line 16915 of file gpsdefs.h.

◆ reserved_3

uint32_t NTP_SYS_STATE::reserved_3

Reserved, currently always 0.

Definition at line 16917 of file gpsdefs.h.

◆ root_delay

int32_t NTP_SYS_STATE::root_delay

[us] Total roundtrip delay to the system peer

Definition at line 16894 of file gpsdefs.h.

◆ root_disp

int32_t NTP_SYS_STATE::root_disp

[us] Total dispersion to the system peer

Definition at line 16895 of file gpsdefs.h.

◆ service_state

uint8_t NTP_SYS_STATE::service_state

Current state of the NTP service see MBG_NTP_SERVICE_STATES.

Definition at line 16913 of file gpsdefs.h.

◆ stratum

uint8_t NTP_SYS_STATE::stratum

Current stratum level of the system.

Definition at line 16890 of file gpsdefs.h.

◆ supp_flags

uint32_t NTP_SYS_STATE::supp_flags

Supported NTP system state values, see NTP_SYS_STATE_SUPP_FLAG_MASKS.

Definition at line 16874 of file gpsdefs.h.

◆ sys_assoc

uint16_t NTP_SYS_STATE::sys_assoc

Association ID of the current system peer, do not use NTP_SYS_STATE::sys_peer if this is supported.

Definition at line 16892 of file gpsdefs.h.

◆ sys_evt_cnt

uint8_t NTP_SYS_STATE::sys_evt_cnt

Number of events, since the last time the event code changed.

Definition at line 16878 of file gpsdefs.h.

◆ sys_jitter

int32_t NTP_SYS_STATE::sys_jitter

[us] Combined jitter of the system

Definition at line 16909 of file gpsdefs.h.

◆ sys_peer

uint16_t NTP_SYS_STATE::sys_peer

Index of the current system peer.

Definition at line 16902 of file gpsdefs.h.

◆ sys_rec_evt

uint8_t NTP_SYS_STATE::sys_rec_evt

Most recent event message, see NTP_SYS_EVT_BITS.

Definition at line 16879 of file gpsdefs.h.

◆ sys_sync_src

uint8_t NTP_SYS_STATE::sys_sync_src

Current synchronization source, see NTP_SYNC_SRC_BITS.

Definition at line 16877 of file gpsdefs.h.

◆ sys_time

NTP_TSTAMP NTP_SYS_STATE::sys_time

Current system time, see NTP_TSTAMP.

Definition at line 16900 of file gpsdefs.h.

◆ system

uint8_t NTP_SYS_STATE::system

Operating system, see NTP_SYSTEMS.

Definition at line 16888 of file gpsdefs.h.


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