MCU/lib/i2c.c
void I2C_Send_Byte(uint8_t address, uint8_t byte) {
    /* Wait until BUS is ready */
    I2C_Wait_Until_Ready();
    /* Update global variables as the IRQ functions use them */
    I2C_address = (address << 1U) | TX_LSB;
    I2C_word.byte0 = byte;
    /* Set the state variable */
    I2C_status = I2C_WRITE_NOT_FINISHED; 
    /* Start the bus and transititon the I2C module to master mode */
    I2C_Start(); 
    /* From here on the IRQ will transmit the data */
}
/* Send a single byte through I2C */
Send a single byte through I2C
Send a single byte through I2C
void I2C_Send_Byte(uint8_t address, uint8_t byte) {
    I2C_Wait_Until_Ready();
    I2C_address = (address << 1U) | TX_LSB;
    I2C_word.byte0 = byte;
    I2C_status = I2C_WRITE_NOT_FINISHED; 
    I2C_Start(); 
}
void I2C_Send_Byte ( uint8_t address , uint8_t byte ) { I2C_Wait_Until_Ready ( ) ; I2C_address = ( address << 1U ) | TX_LSB ; I2C_word . byte0 = byte ; I2C_status = I2C_WRITE_NOT_FINISHED ; I2C_Start ( ) ; }
Send a single byte through I2C
Send 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 */