28 lines
924 B
C
28 lines
924 B
C
/**
|
|
* @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"
|
|
|
|
IVEC_CoreStatus_e xMCAL_I2C_init(I2C_Regs *I2C_inst, IVEC_I2cBaud_e baud);
|
|
IVEC_CoreStatus_e xMCU_i2cWriteMcal(I2C_Regs *I2C_inst,uint8_t u8addr ,uint8_t *u8TxPacket, int len);
|
|
IVEC_CoreStatus_e xMCU_i2cReadMcal(I2C_Regs *I2C_inst, uint8_t u8addr, int len);
|
|
IVEC_CoreStatus_e xMCU_i2cDevReadyMcal(I2C_Regs *I2C_inst,uint8_t u8addr);
|
|
IVEC_CoreStatus_e xMcal_I2C_getData(I2C_Regs *I2C_inst, uint8_t *u8RxData, uint8_t len);
|
|
IVEC_CoreStatus_e xMCAL_I2C_deinit(I2C_Regs *I2C_inst);
|
|
|
|
#endif /* CORE_INCLUDE_IVEC_MCAL_I2C_H_ */
|