/*------------------------------------------------------------------------------------------*\ \*------------------------------------------------------------------------------------------*/ #ifndef _avm_i2c_lib_h_ #define _avm_i2c_lib_h_ void *avm_i2c_open(enum _avm_i2c_type device_type); int avm_i2c_close(void *handle); int avm_i2c_speed(void *handle, int speed); int avm_i2c_read(void *handle, int addr, int register_addr, unsigned char *Buffer, int len); int avm_i2c_write(void *handle, int addr, int register_addr, unsigned char *Buffer, int len); int avm_i2c_raw_read(void *handle, int addr, unsigned char *Buffer, int len); int avm_i2c_raw_write(void *handle, int addr, unsigned char *Buffer, int len); #endif /*--- #ifndef _avm_i2c_lib_h_ ---*/