资源简介
在此代码包中,已经实现了以下功能:
1. 读取MPU6050传感器的数据(x,y,z方向的加速度以及角速度,还有温度共七个数据)
2. 实现了将MPU6050的六元姿态数据通过四元数算法,得到横滚角,俯仰角,航向角(具体实现见MPU6050.c驱动代码)
3. 实现了通过Z-stack协议栈,将传感器数据从终端发送到协调器(该发送方法所有传感器通用,只要你能获取你所需的传感器的数据,就可以使用我的代码进行数据的发送)。
4. 该工程可以直接使用IAR软件打开并实现仿真和下载
代码片段和文件信息
/**************************************************************************************************
Filename: hal_assert.c
Revised: $Date: 2010-11-22 08:13:43 -0800 (Mon 22 Nov 2010) $
Revision: $Revision: 24480 $
Description: Describe the purpose and contents of the file.
Copyright 2006-2010 Texas Instruments Incorporated. All rights reserved.
IMPORTANT: Your use of this Software is limited to those specific rights
granted under the terms of a software license agreement between the user
who downloaded the software his/her employer (which must be your employer)
and Texas Instruments Incorporated (the “License“). You may not use this
Software unless you agree to abide by the terms of the License. The License
limits your use and you acknowledge that the Software may not be modified
copied or distributed unless embedded on a Texas Instruments microcontroller
or used solely and exclusively in conjunction with a Texas Instruments radio
frequency transceiver which is integrated into your product. Other than for
the foregoing purpose you may not use reproduce copy prepare derivative
works of modify distribute perform display or sell this Software and/or
its documentation for any purpose.
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
PROVIDED 揂S IS?WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED
INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY title
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT
NEGLIGENCE STRICT LIABILITY CONTRIBUTION BREACH OF WARRANTY OR OTHER
LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL SPECIAL INDIRECT PUNITIVE
OR CONSEQUENTIAL DAMAGES LOST PROFITS OR LOST DATA COST OF PROCUREMENT
OF SUBSTITUTE GOODS TECHNOLOGY SERVICES OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF) OR OTHER SIMILAR COSTS.
Should you have any questions regarding your right to use this Software
contact Texas Instruments Incorporated at www.TI.com.
**************************************************************************************************/
/* ------------------------------------------------------------------------------------------------
* Includes
* ------------------------------------------------------------------------------------------------
*/
#include “hal_assert.h“
#include “hal_types.h“
#include “hal_board.h“
#include “hal_defs.h“
#include “hal_mcu.h“
#if (defined HAL_MCU_AVR) || (defined HAL_MCU_CC2430) || (defined HAL_MCU_CC2530) || \
(defined HAL_MCU_CC2533) || (defined HAL_MCU_MSP430)
/* for access to debug data */
#include “mac_rx.h“
#include “mac_tx.h“
#endif
/* -------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-23 16:50 Z-stack MPU6050\
文件 505351 2015-07-22 23:32 Z-stack MPU6050\5.点播通讯-无线通讯.pdf
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\common\
文件 9887 2010-11-22 09:13 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\common\hal_assert.c
文件 9560 2010-10-05 11:47 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\common\hal_drivers.c
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\
文件 6175 2010-02-25 16:22 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_adc.h
文件 5478 2009-02-16 19:03 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_assert.h
文件 28 2006-11-01 12:24 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_board.h
文件 2790 2008-10-07 16:36 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_ccm.h
文件 4969 2008-10-07 14:47 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_defs.h
文件 4789 2010-10-05 11:47 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_drivers.h
文件 4964 2010-04-09 15:22 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_flash.h
文件 5809 2007-11-01 08:43 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_key.h
文件 5735 2008-07-07 13:37 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_lcd.h
文件 4288 2007-11-01 08:43 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_led.h
文件 3279 2012-03-02 16:52 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_sleep.h
文件 8980 2010-06-02 10:40 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_timer.h
文件 7987 2009-03-09 05:27 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\include\hal_uart.h
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\
目录 0 2018-06-23 16:49 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\
文件 24990 2010-04-01 18:14 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\_hal_uart_dma.c
文件 17059 2012-03-27 14:53 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\_hal_uart_isr.c
文件 9144 2010-03-12 17:10 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\hal_adc.c
文件 5185 2010-01-08 14:24 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\hal_aes.h
文件 20990 2012-03-29 12:09 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\hal_board_cfg.h
文件 5541 2010-07-21 16:20 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\hal_dma.c
文件 12798 2011-05-31 11:57 Z-stack MPU6050\ZStack-2.5.1a\Components\hal\target\CC2530EB\hal_dma.h
............此处省略976个文件信息
- 上一篇:网络编码理论详解
- 下一篇:Inside Bluetooth Low Energy
相关资源
- 基于CC2530的光敏传感器
- ZStack协议栈 ZStack-CC2530-2.5.1a
- Z-Stack-Mesh-1.0.0,是TI德州仪器发布的基
- 基于CC2530的BH1750采集,使用协议栈组
- ZigBee CC2530从入门到精通全套学习资料
- ZigbeeCC2530 采集温度、获取信号强度、
- CC2530协议栈rssi实现测距
- CC2530协议栈连接RFID模块
- CC2530原理图和PCB(Protel设计)以及开
- 官方协议栈实验
- Z-Stack 3.0.2 和 2.5.1协议栈
- zigbee读取传感器组网上传服务器
- cc2530寄存器手册中文
- 基于CC2530的超声波测距代码
- ZigBee-智能家居&实验室&农业-环境监控
- 源码包ZStack-CC2530-2.5.1a最新
- ZStack-CC2530-2.3.0-1.4.0156276
- cc2530采集温度的完整程序
- 基于Z-Stack协议栈的抢答系统案例设计
- TI ZStack-CC2530-2.3.0-1.4.0.exe
- ZStack-2.5.1aDemo.rar
- 基于CC2530的传感数据采集系统(含加
- ZigBee无线传感器网络设计与实现(非
- ZStack-CC2530-2.3.1-1.4.0协议栈
- ZStack协议栈
- CC2530驱动DHT11
- zstack-cc2530-2.3.0-1.4.0
- ZStack-CC2530-2.2.2-1.3.0
- CC2530智能家居全套设计资料
- cc2530总结和书籍
评论
共有 条评论