资源简介
最新的DW1000例程,API使用方法。UWB定位很复杂,本例程使用的TOF定位方法,可以实现10CM以内准确定位。实测效果很不错,希望可以互相交流

代码片段和文件信息
/*! ------------------------------------------------------------------------------------------------------------------
* @file deca_device.c
* @brief Decawave device configuration and control functions
*
* @attention
*
* Copyright 2013 (c) Decawave Ltd Dublin Ireland.
*
* All rights reserved.
*
*/
#include
#include
#include “deca_types.h“
#include “deca_param_types.h“
#include “deca_regs.h“
#include “deca_device_api.h“
// Defines for enable_clocks function
#define FORCE_SYS_XTI 0
#define ENABLE_ALL_SEQ 1
#define FORCE_SYS_PLL 2
#define READ_ACC_ON 7
#define READ_ACC_OFF 8
#define FORCE_OTP_ON 11
#define FORCE_OTP_OFF 12
#define FORCE_TX_PLL 13
#define FORCE_LDE 14
// Defines for ACK request bitmask in DATA and MAC COMMAND frame control (first byte) - Used to detect AAT bit wrongly set.
#define FCTRL_ACK_REQ_MASK 0x20
// frame control maximum length in bytes.
#define FCTRL_LEN_MAX 2
// #define DWT_API_ERROR_CHECK // define so API checks config input parameters
// -------------------------------------------------------------------------------------------------------------------
//
// Internal functions for controlling and configuring the device
//
// -------------------------------------------------------------------------------------------------------------------
// Enable and Configure specified clocks
void _dwt_enableclocks(int clocks) ;
// Configure the ucode (FP algorithm) parameters
void _dwt_configlde(int prf);
// Load ucode from OTP/ROM
void _dwt_loaducodefromrom(void);
// Read non-volatile memory
uint32 _dwt_otpread(uint32 address);
// Program the non-volatile memory
uint32 _dwt_otpprogword32(uint32 data uint16 address);
// Upload the device configuration into always on memory
void _dwt_aonarrayupload(void);
// -------------------------------------------------------------------------------------------------------------------
/*!
* Static data for DW1000 DecaWave Transceiver control
*/
// -------------------------------------------------------------------------------------------------------------------
// Structure to hold device data
typedef struct
{
uint32 partID ; // IC Part ID - read during initialisation
uint32 lotID ; // IC Lot ID - read during initialisation
uint8 longframes ; // Flag in non-standard long frame mode
uint8 otprev ; // OTP revision number (read during initialisation)
uint32 txFCTRL ; // Keep TX_FCTRL register config
uint8 init_xtrim; // initial XTAL trim value read from OTP (or defaulted to mid-range if OTP not programmed)
uint8 dblbuffon; // Double RX buffer mode flag
uint32 sysCFGreg ; // Local copy of system config register
uint16 sleep_mode; // Used for automatic reloading of LDO tune and microcode at wake
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-01-06 21:05 decadriver\
文件 130360 2017-01-09 18:26 decadriver\deca_device.c
文件 74671 2017-01-09 18:27 decadriver\deca_device_api.h
文件 3322 2017-01-03 19:44 decadriver\deca_params_init.c
文件 1957 2017-01-03 19:44 decadriver\deca_param_types.h
文件 81868 2017-01-03 19:44 decadriver\deca_regs.h
文件 1125 2016-06-22 22:55 decadriver\deca_types.h
文件 1182 2017-01-06 21:06 decadriver\deca_version.h
文件 3468 2016-06-22 22:55 disclaimer.txt
文件 2074416 2017-02-23 17:43 DW1000_Software_API_Guide_rev2p3.pdf
目录 0 2017-01-03 19:44 examples\
目录 0 2016-06-22 22:55 examples\ex_01a_simple_tx\
文件 6070 2016-06-22 22:55 examples\ex_01a_simple_tx\main.c
文件 14653 2016-06-22 22:55 examples\ex_01a_simple_tx\simple_tx.coproj
目录 0 2016-06-22 22:55 examples\ex_01b_tx_sleep\
文件 7353 2016-06-22 22:55 examples\ex_01b_tx_sleep\main.c
文件 14651 2016-06-22 22:55 examples\ex_01b_tx_sleep\tx_sleep.coproj
目录 0 2016-06-22 22:55 examples\ex_01c_tx_sleep_auto\
文件 7231 2016-06-22 22:55 examples\ex_01c_tx_sleep_auto\main.c
文件 14661 2016-06-22 22:55 examples\ex_01c_tx_sleep_auto\tx_sleep_auto.coproj
目录 0 2016-06-22 22:55 examples\ex_01d_tx_timed_sleep\
文件 8824 2016-06-22 22:55 examples\ex_01d_tx_timed_sleep\main.c
文件 14663 2016-06-22 22:55 examples\ex_01d_tx_timed_sleep\tx_timed_sleep.coproj
目录 0 2016-06-22 22:55 examples\ex_02a_simple_rx\
文件 5908 2016-06-22 22:55 examples\ex_02a_simple_rx\main.c
文件 14653 2016-06-22 22:55 examples\ex_02a_simple_rx\simple_rx.coproj
目录 0 2016-06-22 22:55 examples\ex_02b_rx_preamble_64\
文件 6396 2016-06-22 22:55 examples\ex_02b_rx_preamble_64\main.c
文件 14663 2016-06-22 22:55 examples\ex_02b_rx_preamble_64\rx_preamble_64.coproj
目录 0 2016-06-22 22:55 examples\ex_02c_rx_diagnostics\
文件 9145 2016-06-22 22:55 examples\ex_02c_rx_diagnostics\main.c
............此处省略135个文件信息
- 上一篇:基于ssm框架的企业薪资管理系统
- 下一篇:usb-blaster
相关资源
- stm32f407上的两个can发送和接收例程
- 欧姆龙CP1系列单轴定位PLC程序.cxp
- STM32 2.4G通信例程
- 5G室内融合定位白皮书
- 直流无刷电机方波驱动 stm32 例程代码
- PCIe速度测试例程
- STM32f103超声波模块例程
- 嵌入式图形界面MiniGUI的示例程序9例
- CCP标定例程
- stm32官方例程
- [易语言]游戏多开例程
- Siemens PLC编程精品例程11.机械手GRAPH
- VHDL语言编写的100实用的例程
- 文本特征码定位器,无毒无副作用
- 易语言例程源码易语言ooxx加密模块源
- 基于比较基因组学的玉米ESTs定位方法
- pb9调用良田高拍仪例程scanctrl1.0
- Qt 百度地图 定位
- 基于双目视觉的矿井机车定位方法
- 易语言Beep应用例程源码
- SCI串口中断接收发送例程
- STM8S例程,基于IAR下的STM8S例程
- 安富莱STM32开发板资料
- 小麦白粉病成株抗性位点QPm.caas-4DL的
- 棉花膜下滴灌墒情监测点的定位
- 通用LED显示屏控件Delphi开发例程源码
- 易语言图片放大
- STM32F207学习板例程
- 向量域在动态域墙上的定位
- 直流输电系统S变换奇异能量谱故障定
评论
共有 条评论