MotorControlModuleSDFM_TMS3.../Projects/epwm_test/src/i2c_init.h

20 lines
458 B
C
Raw Normal View History

/*
* i2c_init.h
*
* Created on: 5 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
* Author: seklyuts
*/
#ifndef SRC_I2C_INIT_H_
#define SRC_I2C_INIT_H_
//
// Function Prototypes
//
void I2CMasterInit(uint16_t I2CSlave_OwnAddress, uint16_t I2CSlave_Address);
void I2CWrite(uint16_t slaveAddr, uint16_t byteCount, bool sendStopCondition);
uint16_t I2CRead(uint16_t slaveAddr, uint16_t byteCount, bool sendStopCondition);
void I2CMasterGpioInit(void);
#endif /* SRC_I2C_INIT_H_ */