MCU/lib/i2c.c
void I2C_Read_Byte(uint8_t address) { 
    /* Wait until BUS is ready */
    I2C_Wait_Until_Ready();
    /* Update global variables as the IRQ functions use them */
    I2C_address = (address << 1U) | RX_LSB; 
    /* Set the state variable */
    I2C_status = I2C_READING_SINGLE_BYTE;
    /* Start the bus and transititon the I2C module to master mode */
    I2C_Start(); 
    /* From here on the IRQ will transmit the data */ 
}
/* Read a single byte through I2C */
Read a single byte through I2C
Read a single byte through I2C
void I2C_Read_Byte(uint8_t address) { 
    I2C_Wait_Until_Ready();
    I2C_address = (address << 1U) | RX_LSB; 
    I2C_status = I2C_READING_SINGLE_BYTE;
    I2C_Start(); 
}
void I2C_Read_Byte ( uint8_t address ) { I2C_Wait_Until_Ready ( ) ; I2C_address = ( address << 1U ) | RX_LSB ; I2C_status = I2C_READING_SINGLE_BYTE ; I2C_Start ( ) ; }
Read a single byte through I2C
Read a single byte through I2C
/* Wait until BUS is ready */ /* Update global variables as the IRQ functions use them */ /* Set the state variable */ /* Start the bus and transititon the I2C module to master mode */ /* From here on the IRQ will transmit the data */