2023-09-05 17:45:33 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* i2c_init.h
|
|
|
|
|
|
*
|
|
|
|
|
|
* Created on: 5 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
|
|
|
|
|
* Author: seklyuts
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SRC_I2C_INIT_H_
|
|
|
|
|
|
#define SRC_I2C_INIT_H_
|
|
|
|
|
|
|
2023-09-08 12:18:50 +03:00
|
|
|
|
//
|
|
|
|
|
|
// 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);
|
2023-09-05 17:45:33 +03:00
|
|
|
|
|
|
|
|
|
|
#endif /* SRC_I2C_INIT_H_ */
|