Advertisement

BSP开发笔记-77 I2C信号模拟时序编写(mma8653_i2c_simulate_read)

阅读量:
复制代码
    /* * Copyright  2011-2012  app
     * driver demo for edu
     */
    
    /* * this program is free software; you can redistribute it and/or modify
     * it
     * * Date and Edition:		2012-12-27  v1.3
     * Date and Edition:		2017-05-05  v2.0
     * Author:				"driving team" of edu
     */
    
    /* * debug:	
    * * */
    #include "driverapp.h"
    #define I2C_DEVICE_ADDR		0x1d
    #define I2C_WRITE_MODE	 	0
    #define I2C_READ_MODE 	 	1
    
    #define CHIP_ID_REG			0x0d
    #define CRTL_REG				0x2a
    #define XYZ_DATA_REG		0x0e
    #define OUT_XYZ_DATA_REG	0x01
    
    #d

全部评论 (0)

还没有任何评论哟~