34 #define baudrate 100000
unsigned char I2C_ReadByteRegister(char reg)
Reads a byte from a register.
unsigned char buffer[256]
void I2C_WriteByteArray(char reg, char *data, unsigned int length)
Writes a buffer array to the registers.
void I2C_Close(void)
Closes the I2C peripheral.
void I2C_WriteWordRegister(unsigned char reg, unsigned char *data)
Writes a word value (16 bit) to a register address.
unsigned int I2C_ReadWordPresetPointer(void)
Read the value of a register that has already been select via the address pointer.
unsigned int I2C_ReadWordRegister(char reg)
unsigned int I2C_ReadWordRegisterRS(char reg)
Readm result from a word length register.
void I2C_ReadByteArray(char reg, char *buffer, unsigned int length)
Initializes the I2C peripheral.
void I2C_WriteByte(char byte)
Writes a byte value to the I2C bus. This assumes the register pointer is preset.
void I2C_WriteByteRegister(unsigned char reg, unsigned char data)
Writes a byte value to a register address.
void I2C_Initialize(unsigned char address)
Initializes the I2C peripheral.