//////////////////////////////////////////////////////////////////////////// ///@copyright Copyright (c) 2017, 传控科技 All rights reserved. ///------------------------------------------------------------------------- /// @file msa300.c /// @brief msa300 driver app ///------------------------------------------------------------------------- /// @version 1.0 /// @author CC /// @date 20170122 /// @note cc_AS_stc01 ////////////////////////////////////////////////////////////////////////////// #ifndef _MSA300_H #define _MSA300_H #include "../msp/iic_sim.h" /*********************************************************************** U51(SDO=1) int2 P33 ----------------U10(SDO=0) int2 P32----------------MCU----USB 0x4c 0x4e AS1 AS2 **************************************************************************/ #define D_i2c_addr_AS1 0x4c // u51 #define D_i2c_addr_AS2 0x4e /******************************************************************************/ /***************************** Include Files **********************************/ /******************************************************************************/ // 最高400Khz 1/400 ms 2.5us //Symbol Parameter Condition Min Max Unit //fscl Clock frequency 400 kHz struct _s_gsens_ {//8byte U8 d[6]; // U16 x; // U16 y; // U16 z; }; extern struct _s_gsens_ s_as1,s_as2; extern void L1_as1_readXYZ(void); extern void L1_as2_readXYZ(void); extern void L1_msa300_init(void); #endif // #ifndef _MSA300_H