/** \file app_i2c_master.h */ #if !defined(APP_I2C_MASTER_H__369DA004_50BB_4346_B148_5EE5FE8295F5__INCLUDED_) #define APP_I2C_MASTER_H__369DA004_50BB_4346_B148_5EE5FE8295F5__INCLUDED_ #include "board_config.h" bool I2C_Master_Initialization(mxc_i2c_regs_t* pI2C_Handler, i2c_speed_t Speed); int32_t I2C_Master_Write(uint8_t SlaveAddress, uint8_t* pTxBuffer, uint32_t TxLen); int32_t I2C_Master_Read(uint8_t SlaveAddress, uint8_t* pRxBuffer, uint32_t RxLen); int32_t I2C_Master_WriteRead(uint8_t SlaveAddress, uint8_t* pWriteBuff, uint32_t TxLen, uint8_t* pRxBuffer, uint32_t RxLen); #endif