OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
transceiver_timing.h
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15  *
16  * transceiver_timing.h
17  * Copyright (C) 2015 Simon Newton
18  */
19 
20 #ifndef FIRMWARE_SRC_TRANSCEIVER_TIMING_H_
21 #define FIRMWARE_SRC_TRANSCEIVER_TIMING_H_
22 
34 // Common params
35 // ----------------------------------------------------------------------------
36 
43 #define MINIMUM_TX_BREAK_TIME 44u
44 
51 #define MAXIMUM_TX_BREAK_TIME 800u
52 
58 #define MINIMUM_TX_MARK_TIME 4u
59 
66 #define MAXIMUM_TX_MARK_TIME 800u
67 
68 // Controller params
69 // ----------------------------------------------------------------------------
70 
81 #define CONTROLLER_RX_BREAK_TIME_MIN 880u
82 
89 #define CONTROLLER_RX_BREAK_TIME_MAX 3520u
90 
97 #define CONTROLLER_RX_MARK_TIME_MAX 880u // 88us
98 
105 #define CONTROLLER_MIN_BREAK_TO_BREAK 13u
106 
113 #define CONTROLLER_DUB_BACKOFF 58u
114 
121 #define CONTROLLER_BROADCAST_BACKOFF 2u
122 
129 #define CONTROLLER_MISSING_RESPONSE_BACKOFF 30u
130 
137 #define CONTROLLER_NON_RDM_BACKOFF 2u
138 
139 // Responder params
140 // ----------------------------------------------------------------------------
141 
148 #define RESPONDER_RX_BREAK_TIME_MIN 880u
149 
156 #define RESPONDER_RX_BREAK_TIME_MAX 10000u
157 
162 #define MINIMUM_RESPONDER_DELAY 1760u
163 
168 #define MAXIMUM_RESPONDER_DELAY 20000u
169 
176 #define RESPONDER_RX_MARK_TIME_MIN 80u
177 
184 #define RESPONDER_RX_MARK_TIME_MAX 10000u // 1s
185 
192 #define RESPONDER_RDM_INTERSLOT_TIMEOUT 21u // 2.1ms
193 
199 #define RESPONDER_DMX_INTERSLOT_TIMEOUT 10000u // 1s
200 
207 #define CONTROLLER_RECEIVE_RDM_INTERSLOT_TIMEOUT 21u // 2.1ms
208 
209 
214 #endif // FIRMWARE_SRC_TRANSCEIVER_TIMING_H_