API Documentation
Loading...
Searching...
No Matches
NtpEnums.h
Go to the documentation of this file.
1#pragma once
2namespace NDEVR
3{
4 /**
5 * Leap indicators.
6 */
8 NoWarning = 0, /**< No warning. */
9 LastMinute61Warning = 1, /**< Last minute has 61 seconds. */
10 LastMinute59Warning = 2, /**< Last minute has 59 seconds. */
11 UnsynchronizedWarning = 3, /**< Alarm condition (clock not synchronized). */
12 };
13
14 /**
15 * Modes.
16 */
17 enum NtpMode {
18 ReservedMode = 0, /**< Reserved. */
19 SymmetricActiveMode = 1, /**< Symmetric active. */
20 SymmetricPassiveMode = 2, /**< Symmetric passive. */
21 ClientMode = 3, /**< Client. */
22 ServerMode = 4, /**< Server. */
23 BroadcastMode = 5, /**< Broadcast. */
24 ControlMode = 6, /**< NTP control message. */
25 PrivateMode = 7, /**< Reserved for private use. */
26 };
27
28 /**
29 * Strata.
30 */
32 UnspecifiedStratum = 0, /**< Unspecified or unavailable. */
33 PrimaryStratum = 1, /**< Primary reference (e.g. radio-clock). */
34 SecondaryStratumFirst = 2, /**< Secondary reference (via NTP or SNTP). */
36 UnsynchronizedStratum = 16, /**< Unsynchronized. */
37 /* 17-255 are reserved. */
38 };
39
40}
Definition ACIColor.h:37
NtpLeapIndicator
Definition NtpEnums.h:7
@ UnsynchronizedWarning
Definition NtpEnums.h:11
@ LastMinute61Warning
Definition NtpEnums.h:9
@ LastMinute59Warning
Definition NtpEnums.h:10
@ NoWarning
Definition NtpEnums.h:8
NtpStratum
Definition NtpEnums.h:31
@ SecondaryStratumFirst
Definition NtpEnums.h:34
@ SecondaryStratumLast
Definition NtpEnums.h:35
@ UnsynchronizedStratum
Definition NtpEnums.h:36
@ PrimaryStratum
Definition NtpEnums.h:33
@ UnspecifiedStratum
Definition NtpEnums.h:32
NtpMode
Definition NtpEnums.h:17
@ ControlMode
Definition NtpEnums.h:24
@ PrivateMode
Definition NtpEnums.h:25
@ ReservedMode
Definition NtpEnums.h:18
@ ServerMode
Definition NtpEnums.h:22
@ BroadcastMode
Definition NtpEnums.h:23
@ SymmetricActiveMode
Definition NtpEnums.h:19
@ SymmetricPassiveMode
Definition NtpEnums.h:20
@ ClientMode
Definition NtpEnums.h:21