I2Cx_ReadData() function
Reads a register of the device through BUS.
Syntax
static uint8_t I2Cx_ReadData(uint8_t Addr,
uint8_t Reg);
Arguments
Addr
Device address on BUS Bus.
Reg
The target register address to write
Return value
Data read at register address