davincievm_i2c.h

来自「LED contorl source in CCS 3.3 TI DSP c5」· C头文件 代码 · 共 47 行

H
47
字号
/*
 *  Copyright 2005 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 *
 *  Not for distribution.
 */

/*
 *  I2C header file
 *
 */

#ifndef I2C_
#define I2C_

#ifdef __cplusplus
extern "C" {
#endif

#include "davincievm.h"

#ifdef ARM_SIDE

    #include "csl_i2c.h"
    static CSL_I2cHandle i2c_handle;
    static CSL_I2cObj    i2c_obj;

#elif DSP_SIDE

#endif

/* ------------------------------------------------------------------------ *
 *                                                                          *
 *  I2C Prototypes                                                          *
 *                                                                          *
 * ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_I2C_init ( );
Int16 DAVINCIEVM_I2C_close( );
Int16 DAVINCIEVM_I2C_write( Uint16 slaveaddr, Uint8* data, Uint16 len );
Int16 DAVINCIEVM_I2C_read ( Uint16 slaveaddr, Uint8* data, Uint16 len );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?