mbgtools-lx  4.2.8
NTP_PEER_STATE Struct Reference

Structure that represents the status of an NTP peer. More...

#include <gpsdefs.h>

Data Fields

uint32_t supp_flags
 Supported NTP peer state values, see NTP_PEER_STATE_SUPP_FLAG_MASKS. More...
 
uint16_t ass_id
 Association ID of the peer. More...
 
uint16_t peer_status_flags
 Peer status flags, see NTP_PEER_STATUS_FLAG_MASKS. More...
 
uint8_t leap_ind
 Leap indicator, see NTP_LI_BITS. More...
 
uint8_t peer_sel_stat
 Current selection status of the peer, see NTP_PEER_SEL_STATUS_BITS. More...
 
uint8_t peer_evt_cnt
 Number of events, since the last time the event code changed. More...
 
uint8_t peer_rec_evt
 Most recent event message, see NTP_PEER_EVT_BITS. More...
 
uint8_t peer_reach_stat
 Current reach status of the peer, see NTP_REACH_STAT_BITS. More...
 
uint8_t reserved_1
 Reserved, currently always 0. More...
 
uint16_t reserved_2
 Reserved, currently always 0. More...
 
MBG_IP_ADDR_PORT src_addr
 Source address of the NTP peer, see MBG_IP_ADDR_PORT. More...
 
MBG_IP_ADDR_PORT dst_addr
 Destination address of the NTP peer, see MBG_IP_ADDR_PORT. More...
 
uint8_t stratum
 Current stratum level of the NTP peer. More...
 
int8_t precision
 Precision of the peer clock (2^precision) More...
 
uint16_t reserved_3
 Reserved, currently always 0. More...
 
int32_t root_delay
 [us] Total roundtrip delay to the system peer of the NTP peer More...
 
int32_t root_disp
 [us] Total dispersion to the system peer of the NTP peer More...
 
MBG_IP_ADDR ref_id
 Reference ID of the NTP peer, see MBG_IP_ADDR. More...
 
NTP_TSTAMP ref_time
 Last time the NTP peers time has been adjusted, see NTP_TSTAMP. More...
 
NTP_TSTAMP rec_time
 Current system time of the NTP peer, see NTP_TSTAMP. More...
 
uint8_t reach
 Shift register for the last 8 polling intervals. More...
 
uint8_t reserved_4
 Reserved, currently always 0. More...
 
uint16_t unreach
 Counter for the number of unsuccessful polling intervals. More...
 
uint8_t host_mode
 NTP mode of the requesting host, see NTP_MODE_BITS. More...
 
uint8_t peer_mode
 NTP mode of the peer, see NTP_MODE_BITS. More...
 
uint8_t host_poll
 Host NTP polling interval. More...
 
uint8_t peer_poll
 Peer NTP polling interval. More...
 
uint8_t headway
 Indicator for the KoD packet, TODO: further investigation. More...
 
uint8_t reserved_5
 Reserved, currently always 0. More...
 
uint16_t flash_stat_flags
 Flash status flags, see NTP_FLASH_STAT_FLAG_MASKS. More...
 
uint16_t key_id
 ID of symmetric authentication key. More...
 
uint16_t reserved_6
 Reserved, currently always 0. More...
 
int64_t offset
 [ns] filter offset to this NTP peer More...
 
int64_t delay
 [ns] filter delay to this NTP peer More...
 
int32_t disp
 [us] filter dispersion of the NTP peer More...
 
int32_t jitter
 [us] filter jitter of the NTP peer More...
 
uint32_t xleave
 [ns] interleave delay of the NTP peer More...
 
uint8_t n_filter_values
 Number of filter values available, currently always 0. More...
 
uint8_t reserved_7
 Reserved, currently always 0. More...
 
uint16_t reserved_8
 Reserved, currently always 0. More...
 
uint32_t reserved_9
 Reserved, currently always 0. More...
 

Detailed Description

Structure that represents the status of an NTP peer.

This structure should be requested via NTP_PEER_STATE_IDX

See also
NTP_PEER_STATE_IDX

Definition at line 17400 of file gpsdefs.h.

Field Documentation

◆ ass_id

uint16_t NTP_PEER_STATE::ass_id

Association ID of the peer.

Definition at line 17404 of file gpsdefs.h.

◆ delay

int64_t NTP_PEER_STATE::delay

[ns] filter delay to this NTP peer

Definition at line 17448 of file gpsdefs.h.

◆ disp

int32_t NTP_PEER_STATE::disp

[us] filter dispersion of the NTP peer

Definition at line 17450 of file gpsdefs.h.

◆ dst_addr

MBG_IP_ADDR_PORT NTP_PEER_STATE::dst_addr

Destination address of the NTP peer, see MBG_IP_ADDR_PORT.

Definition at line 17417 of file gpsdefs.h.

◆ flash_stat_flags

uint16_t NTP_PEER_STATE::flash_stat_flags

Flash status flags, see NTP_FLASH_STAT_FLAG_MASKS.

Definition at line 17442 of file gpsdefs.h.

◆ headway

uint8_t NTP_PEER_STATE::headway

Indicator for the KoD packet, TODO: further investigation.

Definition at line 17440 of file gpsdefs.h.

◆ host_mode

uint8_t NTP_PEER_STATE::host_mode

NTP mode of the requesting host, see NTP_MODE_BITS.

Definition at line 17435 of file gpsdefs.h.

◆ host_poll

uint8_t NTP_PEER_STATE::host_poll

Host NTP polling interval.

Definition at line 17437 of file gpsdefs.h.

◆ jitter

int32_t NTP_PEER_STATE::jitter

[us] filter jitter of the NTP peer

Definition at line 17451 of file gpsdefs.h.

◆ key_id

uint16_t NTP_PEER_STATE::key_id

ID of symmetric authentication key.

Definition at line 17444 of file gpsdefs.h.

◆ leap_ind

uint8_t NTP_PEER_STATE::leap_ind

Leap indicator, see NTP_LI_BITS.

Definition at line 17407 of file gpsdefs.h.

◆ n_filter_values

uint8_t NTP_PEER_STATE::n_filter_values

Number of filter values available, currently always 0.

Definition at line 17455 of file gpsdefs.h.

◆ offset

int64_t NTP_PEER_STATE::offset

[ns] filter offset to this NTP peer

Definition at line 17447 of file gpsdefs.h.

◆ peer_evt_cnt

uint8_t NTP_PEER_STATE::peer_evt_cnt

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

Definition at line 17409 of file gpsdefs.h.

◆ peer_mode

uint8_t NTP_PEER_STATE::peer_mode

NTP mode of the peer, see NTP_MODE_BITS.

Definition at line 17436 of file gpsdefs.h.

◆ peer_poll

uint8_t NTP_PEER_STATE::peer_poll

Peer NTP polling interval.

Definition at line 17438 of file gpsdefs.h.

◆ peer_reach_stat

uint8_t NTP_PEER_STATE::peer_reach_stat

Current reach status of the peer, see NTP_REACH_STAT_BITS.

Definition at line 17412 of file gpsdefs.h.

◆ peer_rec_evt

uint8_t NTP_PEER_STATE::peer_rec_evt

Most recent event message, see NTP_PEER_EVT_BITS.

Definition at line 17410 of file gpsdefs.h.

◆ peer_sel_stat

uint8_t NTP_PEER_STATE::peer_sel_stat

Current selection status of the peer, see NTP_PEER_SEL_STATUS_BITS.

Definition at line 17408 of file gpsdefs.h.

◆ peer_status_flags

uint16_t NTP_PEER_STATE::peer_status_flags

Peer status flags, see NTP_PEER_STATUS_FLAG_MASKS.

Definition at line 17405 of file gpsdefs.h.

◆ precision

int8_t NTP_PEER_STATE::precision

Precision of the peer clock (2^precision)

Definition at line 17420 of file gpsdefs.h.

◆ reach

uint8_t NTP_PEER_STATE::reach

Shift register for the last 8 polling intervals.

Definition at line 17431 of file gpsdefs.h.

◆ rec_time

NTP_TSTAMP NTP_PEER_STATE::rec_time

Current system time of the NTP peer, see NTP_TSTAMP.

Definition at line 17429 of file gpsdefs.h.

◆ ref_id

MBG_IP_ADDR NTP_PEER_STATE::ref_id

Reference ID of the NTP peer, see MBG_IP_ADDR.

Definition at line 17426 of file gpsdefs.h.

◆ ref_time

NTP_TSTAMP NTP_PEER_STATE::ref_time

Last time the NTP peers time has been adjusted, see NTP_TSTAMP.

Definition at line 17428 of file gpsdefs.h.

◆ reserved_1

uint8_t NTP_PEER_STATE::reserved_1

Reserved, currently always 0.

Definition at line 17413 of file gpsdefs.h.

◆ reserved_2

uint16_t NTP_PEER_STATE::reserved_2

Reserved, currently always 0.

Definition at line 17414 of file gpsdefs.h.

◆ reserved_3

uint16_t NTP_PEER_STATE::reserved_3

Reserved, currently always 0.

Definition at line 17421 of file gpsdefs.h.

◆ reserved_4

uint8_t NTP_PEER_STATE::reserved_4

Reserved, currently always 0.

Definition at line 17432 of file gpsdefs.h.

◆ reserved_5

uint8_t NTP_PEER_STATE::reserved_5

Reserved, currently always 0.

Definition at line 17441 of file gpsdefs.h.

◆ reserved_6

uint16_t NTP_PEER_STATE::reserved_6

Reserved, currently always 0.

Definition at line 17445 of file gpsdefs.h.

◆ reserved_7

uint8_t NTP_PEER_STATE::reserved_7

Reserved, currently always 0.

Definition at line 17456 of file gpsdefs.h.

◆ reserved_8

uint16_t NTP_PEER_STATE::reserved_8

Reserved, currently always 0.

Definition at line 17457 of file gpsdefs.h.

◆ reserved_9

uint32_t NTP_PEER_STATE::reserved_9

Reserved, currently always 0.

Definition at line 17459 of file gpsdefs.h.

◆ root_delay

int32_t NTP_PEER_STATE::root_delay

[us] Total roundtrip delay to the system peer of the NTP peer

Definition at line 17423 of file gpsdefs.h.

◆ root_disp

int32_t NTP_PEER_STATE::root_disp

[us] Total dispersion to the system peer of the NTP peer

Definition at line 17424 of file gpsdefs.h.

◆ src_addr

MBG_IP_ADDR_PORT NTP_PEER_STATE::src_addr

Source address of the NTP peer, see MBG_IP_ADDR_PORT.

Definition at line 17416 of file gpsdefs.h.

◆ stratum

uint8_t NTP_PEER_STATE::stratum

Current stratum level of the NTP peer.

Definition at line 17419 of file gpsdefs.h.

◆ supp_flags

uint32_t NTP_PEER_STATE::supp_flags

Supported NTP peer state values, see NTP_PEER_STATE_SUPP_FLAG_MASKS.

Definition at line 17402 of file gpsdefs.h.

◆ unreach

uint16_t NTP_PEER_STATE::unreach

Counter for the number of unsuccessful polling intervals.

Definition at line 17433 of file gpsdefs.h.

◆ xleave

uint32_t NTP_PEER_STATE::xleave

[ns] interleave delay of the NTP peer

Definition at line 17453 of file gpsdefs.h.


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