SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
Configurable values

PTP configurable values. More...

+ Collaboration diagram for Configurable values:

Macros

#define PTP_LOG2TSVERIFY   4
 
#define PTP_TSTIMEOUT   3
 
#define PTP_LOG2ANNOUNCESYNCPDELEREQ   3
 
#define PTP_ANNOUNCERECEIPTTIMEOUT   3
 
#define PTP_DESIGNTIME_UTCOFFSET   35
 
#define PTP_CLOCK_TYPE   PTP_CLOCK_TYPE_BOUNDARY
 
#define PTP_PROFILE_IMPLEMENTED   0xFFFF00000001
 
#define PTP_DELAY_MECANISM   PTP_DM_P2P
 
#define PTP_NUMBERPORTS   NWK_NEIGHBORMAX
 
#define PTP_P2PPDELAYREQQUEUESIZE   3
 
#define PTP_OUI   0xFFFF00
 
#define PTP_EXTENSION_IDENTIFIER   0x0000000001
 
#define PTP_MSG_FIELDTRANSPORTSPECIFICVALUE   0x00
 

Detailed Description

PTP configurable values.

These values can be changed prior to compilation

Macro Definition Documentation

#define PTP_ANNOUNCERECEIPTTIMEOUT   3

Timeout of announce messages, number of ANNOUNCESYNCPDELEREQ intervals. TimeOut = PTP_ANNOUNCERECEIPTTIMEOUT * (2 ^ PTP_LOG2ANNOUNCESYNCPDELEREQ)

Definition at line 72 of file ptp_cfg.h.

Referenced by ptp_clock_initialize().

#define PTP_CLOCK_TYPE   PTP_CLOCK_TYPE_BOUNDARY

Clock type, one of {PTP_CLOCK_TYPE_BOUNDARY, PTP_CLOCK_TYPE_ORDINARY, PTP_CLOCK_TYPE_TRANSPARENT}

Definition at line 82 of file ptp_cfg.h.

#define PTP_DELAY_MECANISM   PTP_DM_P2P

Delay mechanism, one of {PTP_DM_E2E, PTP_DM_P2P, PTP_DM_DISABLED}

Definition at line 95 of file ptp_cfg.h.

Referenced by ptp_clock_initialize().

#define PTP_DESIGNTIME_UTCOFFSET   35

Number of leap seconds at design time. UtcOffset = TAI - UTC, since 2012-07-01 00:00:00 it is +35 . BIPM, 2014

Definition at line 77 of file ptp_cfg.h.

Referenced by ptp_clock_initialize(), and ptp_portUpdateDS().

#define PTP_EXTENSION_IDENTIFIER   0x0000000001

clockIdentity Extension Identifier

Definition at line 128 of file ptp_cfg.h.

#define PTP_LOG2ANNOUNCESYNCPDELEREQ   3

Log2 of announceInterval/syncInterval/minPdelayReqInterval

Definition at line 67 of file ptp_cfg.h.

Referenced by ptp_clock_initialize(), and ptp_process().

#define PTP_LOG2TSVERIFY   4

Period between sending time stamp to external time source for precision verification. Interval = (2 ^ PTP_LOG2TSVERIFY) seconds.

Definition at line 57 of file ptp_cfg.h.

Referenced by ptp_process().

#define PTP_MSG_FIELDTRANSPORTSPECIFICVALUE   0x00

transportSpecific This value may be used by lower layer transport protocol, IEEE1588/2008 13.3.2.1 At the time of writing of this code, there was no need to use this value. The less significant nibble must be 0x0.

Definition at line 137 of file ptp_cfg.h.

Referenced by ptp_MsgHeaderSnd().

#define PTP_NUMBERPORTS   NWK_NEIGHBORMAX

Maximum portNumber.

Definition at line 100 of file ptp_cfg.h.

Referenced by ptp_clock_initialize(), ptp_init(), and ptp_process().

#define PTP_OUI   0xFFFF00

clockIdentity OUI

EUI-64 clockIdentity value: OUI (3 octets) + Extension Identifier.

OUI: Organization Unique Identifier, refer to http://standards.ieee.org/develop/regauth/

Non-EUI-64 clockIdentity value: FF + protocol-dependent octet + free octet + Extension Identifier. Shall never be = PTP_ALL_CLOCKS at ptp_const.h. Would be better written physically on the hardware, may be constructed using a hardware unique address. If not defined in hardware, specify the value here. Use the function ptp_getClockIdentity instead of this constant directly, that can be modified to get value from hardware.

Definition at line 123 of file ptp_cfg.h.

#define PTP_P2PPDELAYREQQUEUESIZE   3

Pear delay mechanism PDelay request queue size

Definition at line 105 of file ptp_cfg.h.

Referenced by ptp_MsgPdelayReqRcv(), and ptp_MsgPdelayRespSnd().

#define PTP_PROFILE_IMPLEMENTED   0xFFFF00000001

Used profile {PTP_PROFILE_DEFAULT_E2E, PTP_PROFILE_DEFAULT_P2P or another profile value} an OUI 0xFFFF00 should be generic, refer to clockIdentity OUI description.

Definition at line 90 of file ptp_cfg.h.

#define PTP_TSTIMEOUT   3

Timeout to assume lost reference to external time source. Number of TSVERIFY. TimeOut = PTP_TSTIMEOUT * (2 ^ PTP_LOG2TSVERIFY) seconds

Definition at line 62 of file ptp_cfg.h.

Referenced by ptp_adjNetTime(), and ptp_setNetTime().