/*! ----------------------------------------------------------------------------
* @file config_options.c
* @brief Configuration options are defined here.
*
* @attention
*
* Copyright 2019 - 2021 (c) Decawave Ltd, Dublin, Ireland.
*
* All rights reserved.
*
*/
#include "config_options.h"
/* String used to display measured distance on LCD screen (16 characters maximum). */
char dist_str[16] = { 0 };
/*
* TX Power Configuration Settings
*/
/* Values for the PG_DELAY and TX_POWER registers reflect the bandwidth and power of the spectrum at the current
* temperature. These values can be calibrated prior to taking reference measurements. */
dwt_txconfig_t txconfig_options = {
0x34, /* PG delay. */
0xfdfdfdfd, /* TX power. */
0x0 /*PG count*/
};
dwt_txconfig_t txconfig_options_ch9 = {
0x34, /* PG delay. */
0xfefefefe, /* TX power. */
0x0 /*PG count*/
};
/*
* Configuration options for the following parameters:
* Channel: 5, 9
* PRF: 64
* Preamble Length: 64, 128, 512, 1024
* Preamble Code: 3/4 for 16MHz PRf, 9/10/11/12 for 64MHz PRF
* Data Rate: 0.85, 6.8
* STS: Length 64
*/
#ifdef CONFIG_OPTION_01
/* Configuration option 01.
* Channel 5, PRF 64M, Preamble Length 64, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
5, /* Channel number. */
DWT_PLEN_64, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(64 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_02
/* Configuration option 02.
* Channel 9, PRF 64M, Preamble Length 64, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
9, /* Channel number. */
DWT_PLEN_64, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(64 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_03
/* Configuration option 03.
* Channel 5, PRF 64M, Preamble Length 128, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
5, /* Channel number. */
DWT_PLEN_128, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(128 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_04
/* Configuration option 04.
* Channel 9, PRF 64M, Preamble Length 128, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
9, /* Channel number. */
DWT_PLEN_128, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(128 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_05
/* Configuration option 05.
* Channel 5, PRF 64M, Preamble Length 512, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
5, /* Channel number. */
DWT_PLEN_512, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(512 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_06
/* Configuration option 06.
* Channel 9, PRF 64M, Preamble Length 512, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
9, /* Channel number. */
DWT_PLEN_512, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z 8 symbol SDF type */
DWT_BR_850K, /* Data rate. */
DWT_PHRMODE_STD, /* PHY header mode. */
DWT_PHRRATE_STD, /* PHY header rate. */
(512 + 1 + 8 - 8), /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
DWT_STS_MODE_1, /* Mode 1 STS enabled */
DWT_STS_LEN_64, /* STS length*/
DWT_PDOA_M0 /* PDOA mode off */
};
#endif
#ifdef CONFIG_OPTION_07
/* Configuration option 07.
* Channel 5, PRF 64M, Preamble Length 1024, PAC 8, Preamble code 9, Data Rate 850k, STS Length 64
*/
dwt_config_t config_options = {
5, /* Channel number. */
DWT_PLEN_1024, /* Preamble length. Used in TX only. */
DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */
9, /* TX preamble code. Used in TX only. */
9, /* RX preamble code. Used in RX only. */
3, /* 0 to use standard 8 symbol SFD, 1 to use non-standard 8 symbol, 2 for non-standard 16 symbol SFD and 3 for 4z
没有合适的资源?快使用搜索试试~ 我知道了~
DW3000移植到Keil的驱动代码
共78个文件
c:60个
h:14个
a:4个
需积分: 0 2 下载量 120 浏览量
2024-02-27
16:12:47
上传
评论
收藏 443KB RAR 举报
温馨提示
DW3000移植到Keil的驱动代码
资源推荐
资源详情
资源评论
收起资源包目录
uwb.rar (78个子文件)
uwb
deca_spi.h 6KB
port.h 6KB
deca_probe_interface.h 486B
dwt_uwb_driver
lib
libdwt_uwb_driver-m4-hfp-6.0.7.a 163KB
libdwt_uwb_driver-m4-sfp-6.0.7.a 163KB
libdwt_uwb_driver-m33-hfp-6.0.7.a 163KB
libdwt_uwb_driver-m33-sfp-6.0.7.a 163KB
Inc
deca_version.h 1KB
deca_interface.h 16KB
deca_types.h 1KB
deca_device_api.h 154KB
Src
example_selection.h 2KB
MAC_802_15_4
mac_802_15_4.c 11KB
mac_802_15_4.h 11KB
MAC_802_15_8
mac_802_15_8.h 930B
mac_802_15_8.c 2KB
examples
ex_04a_cont_wave
continuous_wave.c 4KB
ex_06e_AES_ss_twr_initiator
ss_aes_twr_initiator.c 24KB
ex_03b_rx_send_resp
rx_send_resp.c 10KB
ex_18_timer
timer_example.c 4KB
shared_data
shared_defines.h 2KB
shared_functions.c 20KB
shared_functions.h 11KB
ex_06b_ss_twr_responder
ss_twr_responder.c 16KB
ss_twr_responder_sts.c 22KB
ss_twr_responder_sts_no_data.c 22KB
ex_03d_tx_wait_resp_interrupts
tx_wait_resp_int.c 14KB
ex_01a_simple_tx
simple_tx.c 7KB
ex_02d_rx_sniff
rx_sniff.c 7KB
ex_05c_ds_twr_init_sts_sdc
ds_twr_sts_sdc_initiator.c 23KB
ex_02e_rx_dbl_buff
double_buffer_rx.c 9KB
ex_02g_simple_rx_sts_sdc
simple_rx_sts_sdc.c 8KB
ex_05b_ds_twr_resp
ds_twr_responder_sts.c 28KB
ds_twr_responder.c 23KB
ex_16_pll_cal
pll_cal.c 4KB
ex_02i_simple_rx_aes
simple_rx_aes.c 6KB
ex_06a_ss_twr_initiator
ss_twr_initiator.c 16KB
ss_twr_initiator_sts.c 23KB
ss_twr_initiator_sts_no_data.c 23KB
ex_17_bw_cal
bandwidth_calibration.c 10KB
ex_20_simple_aes
simple_aes.c 8KB
ex_14_otp_write
otp_write.c 2KB
ex_01d_tx_timed_sleep
tx_timed_sleep.c 10KB
ex_01e_tx_with_cca
tx_with_cca.c 12KB
ex_13a_gpio
gpio_example.c 6KB
ex_00a_reading_dev_id
read_dev_id.c 2KB
ex_02f_rx_with_crystal_trim
rx_with_xtal_trim.c 9KB
examples_info
examples_defines.h 193B
example_info.c 7KB
ex_05d_ds_twr_resp_sts_sdc
ds_twr_sts_sdc_responder.c 23KB
ex_03a_tx_wait_resp
tx_wait_resp.c 12KB
ex_04b_cont_frame
continuous_frame.c 7KB
ex_02c_rx_diagnostics
rx_diagnostics.c 9KB
ex_07b_ack_data_rx
ack_data_rx.c 9KB
ex_02a_simple_rx
simple_rx_nlos.c 18KB
simple_rx.c 6KB
ex_01g_simple_tx_sts_sdc
simple_tx_sts_sdc.c 11KB
ex_05a_ds_twr_init
ds_twr_initiator.c 21KB
ds_twr_initiator_sts.c 26KB
ex_01i_simple_tx_aes
simple_tx_aes.c 8KB
ex_02h_simple_rx_pdoa
simple_rx_pdoa.c 6KB
ex_06f_AES_ss_twr_responder
ss_aes_twr_responder.c 23KB
ex_15_le_pend
le_pend_rx.c 9KB
le_pend_tx.c 11KB
ex_01c_tx_sleep_auto
tx_sleep_auto.c 8KB
ex_11a_spi_crc
spi_crc.c 6KB
ex_07a_ack_data_tx
ack_data_tx.c 13KB
ex_01h_simple_tx_pdoa
simple_tx_pdoa.c 8KB
ex_19_tx_power_adjustment
tx_power_adjustment_example.c 10KB
ex_01b_tx_sleep
tx_sleep.c 8KB
tx_sleep_idleRC.c 8KB
config_options.c 37KB
config_options.h 8KB
port.c 8KB
deca_spi.c 9KB
deca_probe_interface.c 834B
deca_mutex.c 3KB
deca_sleep.c 658B
共 78 条
- 1
资源评论
BIGGGG5718
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功