2022-01-18 00:58:54 +08:00

82 lines
2.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*********************************************************************************************************************
* COPYRIGHT NOTICE
* Copyright (c) 2020,<2C><><EFBFBD>ɿƼ<C9BF>
* All rights reserved.
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQȺ<51><C8BA><EFBFBD><EFBFBD>Ⱥ<EFBFBD><C8BA>824575535
*
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݰ<EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC><EFBFBD><EFBFBD>У<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5>;<EFBFBD><CDBE>
* <20><>ӭ<EFBFBD><D3AD>λʹ<CEBB>ò<EFBFBD><C3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EBB1A3><EFBFBD><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC>İ<EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*
* @file L3G4200D
* @company <09>ɶ<EFBFBD><C9B6><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC><EFBFBD><EFBFBD>޹<EFBFBD>˾
* @author <09><><EFBFBD>ɿƼ<C9BF>(QQ3184284598)
* @version <09>鿴doc<6F><63>version<6F>ļ<EFBFBD> <20>汾˵<E6B1BE><CBB5>
* @Software ADS v1.2.2
* @Target core TC264D
* @Taobao https://seekfree.taobao.com/
* @date 2020-3-23
* @note
<09><><EFBFBD>߶<EFBFBD><DFB6>
------------------------------------
SCL <20>鿴SEEKFREE_SIMIIC<49>ļ<EFBFBD><C4BC>ڵ<EFBFBD>SEEKFREE_SCL<43><EFBFBD><EAB6A8>
SDA <20>鿴SEEKFREE_SIMIIC<49>ļ<EFBFBD><C4BC>ڵ<EFBFBD>SEEKFREE_SDA<44><EFBFBD><EAB6A8>
------------------------------------
********************************************************************************************************************/
#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