QuartusProjects/FPGA_Inference/verilog_src/platform_designer_components/i2c/c_code/i2c.h
int i2c_read_word(int base_addr, int bits) {
  int byte;
  int bit;

  byte = 0;
  if (bits > 0) {
	  for (bit = 0; bit<bits; bit++) {
		byte = (byte << 1) | i2c_read_bit(base_addr);
	  }
  }
  return byte;
}
// Read a byte from I2C bus
Read a byte from I2C bus
Read a byte from I2C bus
int i2c_read_word(int base_addr, int bits) {
  int byte;
  int bit;
  byte = 0;
  if (bits > 0) {
	  for (bit = 0; bit<bits; bit++) {
		byte = (byte << 1) | i2c_read_bit(base_addr);
	  }
  }
  return byte;
}
int i2c_read_word ( int base_addr , int bits ) { int byte ; int bit ; byte = 0 ; if ( bits > 0 ) { for ( bit = 0 ; bit < bits ; bit ++ ) { byte = ( byte << 1 ) | i2c_read_bit ( base_addr ) ; } } return byte ; }
Read a byte from I2C bus
Read a byte from I2C bus