20 lines
458 B
C
20 lines
458 B
C
/*
|
|
* i2c_init.h
|
|
*
|
|
* Created on: 5 ñåíò. 2023 ã.
|
|
* 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_ */
|