82 lines
2.3 KiB
C
Raw Normal View History

2022-01-18 00:58:54 +08:00
/*********************************************************************************************************************
* COPYRIGHT NOTICE
* Copyright (c) 2020,<EFBFBD><EFBFBD><EFBFBD>ɿƼ<EFBFBD>
* All rights reserved.
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQȺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ⱥ<EFBFBD><EFBFBD>824575535
*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݰ<EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD>;<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ӭ<EFBFBD><EFBFBD>λʹ<EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿƼ<EFBFBD><EFBFBD>İ<EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
* @file L3G4200D
* @company <EFBFBD>ɶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>޹<EFBFBD>˾
* @author <EFBFBD><EFBFBD><EFBFBD>ɿƼ<EFBFBD>(QQ3184284598)
* @version <EFBFBD>doc<EFBFBD><EFBFBD>version<EFBFBD>ļ<EFBFBD> <EFBFBD>˵<EFBFBD><EFBFBD>
* @Software ADS v1.2.2
* @Target core TC264D
* @Taobao https://seekfree.taobao.com/
* @date 2020-3-23
* @note
<EFBFBD><EFBFBD><EFBFBD>߶<EFBFBD><EFBFBD>
------------------------------------
SCL <EFBFBD>SEEKFREE_SIMIIC<EFBFBD>ļ<EFBFBD><EFBFBD>ڵ<EFBFBD>SEEKFREE_SCL<EFBFBD><EFBFBD><EFBFBD>
SDA <EFBFBD>SEEKFREE_SIMIIC<EFBFBD>ļ<EFBFBD><EFBFBD>ڵ<EFBFBD>SEEKFREE_SDA<EFBFBD><EFBFBD><EFBFBD>
------------------------------------
********************************************************************************************************************/
#ifndef _SEEKFREE_L3G4200D_H
#define _SEEKFREE_L3G4200D_H
#include "common.h"
//----------L3G4200D<30>ڲ<EFBFBD><DAB2>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>ַ---------
#define L3G4200D_ID 0x69
#define WHO_AM_I_4200 0x0F
#define CTRL_REG1_4200 0x20
#define CTRL_REG2_4200 0x21
#define CTRL_REG3_4200 0x22
#define CTRL_REG4_4200 0x23
#define CTRL_REG5_4200 0x24
#define REFERENCE_4200 0x25
#define OUT_TEMP_4200 0x26
#define STATUS_REG_4200 0x27
#define OUT_X_L_4200 0x28
#define OUT_X_H_4200 0x29
#define OUT_Y_L_4200 0x2A
#define OUT_Y_H_4200 0x2B
#define OUT_Z_L_4200 0x2C
#define OUT_Z_H_4200 0x2D
#define FIFO_CTRL_REG_4200 0x2E
#define FIFO_SRC_REG_4200 0x2F
#define INT1_CFG_4200 0x30
#define INT1_SRC_4200 0x31
#define INT1_TSH_XH_4200 0x32
#define INT1_TSH_XL_4200 0x33
#define INT1_TSH_YH_4200 0x34
#define INT1_TSH_YL_4200 0x35
#define INT1_TSH_ZH_4200 0x36
#define INT1_TSH_ZL_4200 0x37
#define INT1_DURATION_4200 0x38
#define L3G4200_DEV_ADD 0xD2>>1 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IIC<49><43><EFBFBD><EFBFBD><EFBFBD>еĴӵ<C4B4>ַ,<2C><><EFBFBD><EFBFBD>ALT ADDRESS<53><53>ַ<EFBFBD><D6B7><EFBFBD>Ų<EFBFBD>ͬ<EFBFBD>޸<EFBFBD>
extern int16 gyro_x, gyro_y, gyro_z;
void l3g4200d_init(void);
void get_l3g4200d(void);
#endif