BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430uptimeNTPPacketHeader Struct Reference

#include <bsp430/utility/uptime.h>

Data Fields

uint8_t li_vn_mode
 
uint8_t stratum
 
uint8_t ppoll
 
int8_t precision
 
sBSP430uptimeNTPShortFormat rootdelay
 
sBSP430uptimeNTPShortFormat rootdisp
 
uint32_t refid
 
sBSP430uptimeNTPTimestamp reftime
 
sBSP430uptimeNTPTimestamp org
 
sBSP430uptimeNTPTimestamp rec
 
sBSP430uptimeNTPTimestamp xmt
 

Detailed Description

RFC5905 (NTP v4) packet header. Extension fields are not supported in this implementation.

Note
In almost no situations does a user need to inspect or mutate the fields of this structure. Use iBSP430uptimeInitializeNTPRequest() to initialize the structure, and iBSP430uptimeSetNTPXmtField() to set the transmission time.
Dependency:
configBSP430_UPTIME_EPOCH

Field Documentation

uint8_t sBSP430uptimeNTPPacketHeader::li_vn_mode

Leap indicator, version, and packet mode; fixed for client

sBSP430uptimeNTPTimestamp sBSP430uptimeNTPPacketHeader::org

Client xmt time stamp in packet received by server

uint8_t sBSP430uptimeNTPPacketHeader::ppoll

Unused: peer poll interval

int8_t sBSP430uptimeNTPPacketHeader::precision

Precision of clock as power of 2 (e.g. -15 for 32 kiHz)

sBSP430uptimeNTPTimestamp sBSP430uptimeNTPPacketHeader::rec

Server time when client packet received

uint32_t sBSP430uptimeNTPPacketHeader::refid

Unused: reference id

sBSP430uptimeNTPTimestamp sBSP430uptimeNTPPacketHeader::reftime

Unused last update time

sBSP430uptimeNTPShortFormat sBSP430uptimeNTPPacketHeader::rootdelay

Unused: roundtrip delay to primary source

sBSP430uptimeNTPShortFormat sBSP430uptimeNTPPacketHeader::rootdisp

Unused: dispersion to primary source

uint8_t sBSP430uptimeNTPPacketHeader::stratum

Peer stratum, used for kiss-of-death indicator

sBSP430uptimeNTPTimestamp sBSP430uptimeNTPPacketHeader::xmt

Server time when server response transmitted


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