/** * @file ivec_mcal_i2c.h * @author Akshat Dabas (akshat@vecmocon.com) * @brief This header file contains API for I2C Functionality * @version 0.1.0 * @date 2024-Mar-27 * * @copyright Copyright (c) 2024 * */ #ifndef CORE_INCLUDE_IVEC_MCAL_I2C_H_ #define CORE_INCLUDE_IVEC_MCAL_I2C_H_ #define I2C_PACKETSIZE 16 #include "ti_msp_dl_config.h" #include "../utils/utils.h" #include "string.h" xCoreStatus_t xMCAL_I2C_init(I2C_Regs *I2C_inst, xI2C_baud_t baud); xCoreStatus_t xMCU_i2cWriteMcal(I2C_Regs *I2C_inst,uint8_t u8addr ,uint8_t *u8TxPacket, int len); xCoreStatus_t xMCU_i2cReadMcal(I2C_Regs *I2C_inst, uint8_t u8addr, int len); xCoreStatus_t xMCU_i2cDevReadyMcal(I2C_Regs *I2C_inst,uint8_t u8addr); xCoreStatus_t xMcal_I2C_getData(I2C_Regs *I2C_inst, uint8_t *u8RxData, uint8_t len); xCoreStatus_t xMCAL_I2C_deinit(I2C_Regs *I2C_inst); #endif /* CORE_INCLUDE_IVEC_MCAL_I2C_H_ */