Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
uwb_dw1000_config.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Inria
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef UWB_DW1000_CONFIG_H
21
#define UWB_DW1000_CONFIG_H
22
23
#include "dw1000/dw1000_regs.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
38
#ifndef CONFIG_DW1000_ROLE_DEFAULT
39
#define CONFIG_DW1000_ROLE_DEFAULT 0x0
40
#endif
41
45
#ifndef CONFIG_DW1000_NSFD_DEFAULT
46
#define CONFIG_DW1000_NSFD_DEFAULT 8
47
#endif
48
52
#ifndef CONFIG_DW1000_NSYNC_DEFAULT
53
#define CONFIG_DW1000_NSYNC_DEFAULT 128
54
#endif
55
59
#ifndef CONFIG_DW1000_NPHR_DEFAULT
60
#define CONFIG_DW1000_NPHR_DEFAULT 21
61
#endif
62
66
#ifndef CONFIG_DW1000_CHANNEL_DEFAULT
67
#define CONFIG_DW1000_CHANNEL_DEFAULT 5
68
#if CONFIG_DW1000_CHANNEL_DEFAULT > 7 || CONFIG_DW1000_CHANNEL_DEFAULT < 1 || \
69
CONFIG_DW1000_CHANNEL_DEFAULT == 6
70
#error "CONFIG_DW1000_CHANNEL_DEFAULT must be 1..7, 6 excluded"
71
#endif
72
#endif
73
77
#ifndef CONFIG_DW1000_TX_PGDELAY_DEFAULT
78
#if CONFIG_DW1000_CHANNEL_DEFAULT == 1
79
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH1
80
#elif CONFIG_DW1000_CHANNEL_DEFAULT == 2
81
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH2
82
#elif CONFIG_DW1000_CHANNEL_DEFAULT == 3
83
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH3
84
#elif CONFIG_DW1000_CHANNEL_DEFAULT == 4
85
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH4
86
#elif CONFIG_DW1000_CHANNEL_DEFAULT == 5
87
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH5
88
#elif CONFIG_DW1000_CHANNEL_DEFAULT == 7
89
#define CONFIG_DW1000_TX_PGDELAY_DEFAULT TC_PGDELAY_CH7
90
#endif
91
#endif
92
99
#ifndef CONFIG_DW1000_PRF_DEFAULT
100
#define CONFIG_DW1000_PRF_DEFAULT DWT_PRF_64M
101
#endif
102
110
#ifndef CONFIG_DW1000_DATARATE_DEFAULT
111
#define CONFIG_DW1000_DATARATE_DEFAULT DWT_BR_6M8
112
#endif
113
122
#ifndef CONFIG_DW1000_PACLEN_DEFAULT
123
#define CONFIG_DW1000_PACLEN_DEFAULT DWT_PAC8
124
#endif
125
129
#ifndef CONFIG_DW1000_RX_PREAM_CIDX_DEFAULT
130
#define CONFIG_DW1000_RX_PREAM_CIDX_DEFAULT 9
131
#endif
132
139
#ifndef CONFIG_DW1000_RX_SFD_TYPE_DEFAULT
140
#define CONFIG_DW1000_RX_SFD_TYPE_DEFAULT true
141
#endif
142
147
#ifndef CONFIG_DW1000_RX_SFD_TO_DEFAULT
148
#define CONFIG_DW1000_RX_SFD_TO_DEFAULT (128 + 1 + 8 - 8)
/* (preamble length + 1 + SFD length - PAC size) */
149
#endif
150
157
#ifndef CONFIG_DW1000_RX_PHR_MODE_DEFAULT
158
#define CONFIG_DW1000_RX_PHR_MODE_DEFAULT DWT_PHRMODE_EXT
159
#endif
160
164
#ifndef CONFIG_DW1000_RX_DIAGNOSTIC
165
#define CONFIG_DW1000_RX_DIAGNOSTIC 0
166
#endif
167
171
#ifndef CONFIG_DW1000_TX_PREAM_CIDX_DEAULT
172
#define CONFIG_DW1000_TX_PREAM_CIDX_DEAULT 9
173
#endif
174
189
#ifndef CONFIG_DW1000_TX_PREAM_LEN_DEFAULT
190
#define CONFIG_DW1000_TX_PREAM_LEN_DEFAULT DWT_PLEN_128
191
#endif
192
196
#ifndef CONFIG_DW1000_RX_ANTSEP_DEFAULT
197
#define CONFIG_DW1000_RX_ANTSEP_DEFAULT 0.0205
198
#endif
199
204
#ifndef CONFIG_DW1000_FRAME_FILTER_DEFAULT
205
#define CONFIG_DW1000_FRAME_FILTER_DEFAULT 0x00ff
206
#endif
207
211
#ifndef CONFIG_DW1000_XTAL_TRIM_DEFAULT
212
#define CONFIG_DW1000_XTAL_TRIM_DEFAULT 0x10
213
#endif
214
218
#ifndef CONFIG_DW1000_RX_STABLE_TIME_US
219
#define CONFIG_DW1000_RX_STABLE_TIME_US 6
220
#endif
221
225
#ifndef CONFIG_DW1000_TRXOFF_ENABLE
226
#define CONFIG_DW1000_TRXOFF_ENABLE 1
227
#endif
228
232
#define DW1000_DOUBLE_BUFFER_ENABLE false
233
237
#ifndef CONFIG_DW1000_LDE_ENABLE
238
#define CONFIG_DW1000_LDE_ENABLE true
239
#endif
240
244
#ifndef CONFIG_DW1000_LDO_ENABLE
245
#define CONFIG_DW1000_LDO_ENABLE false
246
#endif
247
251
#ifndef CONFIG_DW1000_SLEEP_ENABLE
252
#define CONFIG_DW1000_SLEEP_ENABLE true
253
#endif
254
258
#ifndef CONFIG_DW1000_WAKEUP_RX_ENABLE
259
#define CONFIG_DW1000_WAKEUP_RX_ENABLE true
260
#endif
261
265
#ifndef CONFIG_DW1000_RX_AUTO_ENABLE
266
#define CONFIG_DW1000_RX_AUTO_ENABLE true
267
#endif
268
269
#ifdef __cplusplus
270
}
271
#endif
272
273
#endif
/* UWB_DW1000_CONFIG_H */
Generated on Sat Nov 16 2024 15:46:42 by
1.9.8