SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
ptp_cfg.h
Go to the documentation of this file.
1 /*
2  * ptp_cfg.h
3  *
4  * Date: 19/06/2014
5  * Author: Fernando Biazi Nascimento
6  * Copyright © 2014 Fernando Biazi Nascimento. All rights reserved.
7  *
8  * License of use and copy on file license.txt
9  *
10  */
11 
21 #ifndef PTP_CFG_H
22 #define PTP_CFG_H
23 
24 /*
25  * ======== Includes ========
26  */
27 
28 #include "ptp_types.h"
29 #include "nwk.h"
30 
31 /*
32  * ======== Doxygen ========
33  */
46 /*
47  * ======== Constants ========
48  */
49 
50 /*
51  * ======== Macros ========
52  */
53 
57 #define PTP_LOG2TSVERIFY 4
58 
62 #define PTP_TSTIMEOUT 3
63 
67 #define PTP_LOG2ANNOUNCESYNCPDELEREQ 3
68 
72 #define PTP_ANNOUNCERECEIPTTIMEOUT 3
73 
77 #define PTP_DESIGNTIME_UTCOFFSET 35
78 
82 #define PTP_CLOCK_TYPE PTP_CLOCK_TYPE_BOUNDARY
83 
84 // ----Used profile {PTP_PROFILE_DEFAULT_E2E, PTP_PROFILE_DEFAULT_P2P or another profile value}
85 // an OUI 0xFFFF00 should be generic, refer to clockIdentity description.
90 #define PTP_PROFILE_IMPLEMENTED 0xFFFF00000001
91 
95 #define PTP_DELAY_MECANISM PTP_DM_P2P
96 
100 #define PTP_NUMBERPORTS NWK_NEIGHBORMAX
101 
105 #define PTP_P2PPDELAYREQQUEUESIZE 3
106 
123 #define PTP_OUI 0xFFFF00
124 
128 #define PTP_EXTENSION_IDENTIFIER 0x0000000001
129 
137 #define PTP_MSG_FIELDTRANSPORTSPECIFICVALUE 0x00
138 
139 /*
140  * ======== Types ========
141  */
142 
143 /*
144  * ======== Global Variables ========
145  */
146 
147 /*
148  * ======== Global Functions ========
149  */
150 
151 
156 #endif /* PTP_CFG_H */
Network functions interface.
PTP data types specifications.