Example #1
0
void ITG3200::Write_1_To_Register(char registerr, char Value_To_Write) {
	char Data_To_Write[2];
// The register to write to
	Data_To_Write[0] = registerr;
	Data_To_Write[1] = Value_To_Write;
	I2C_Object->writebus(Data_To_Write);
}
Example #2
0
// Prepares reading of a register
void ITG3200::prepread(int address) {
	static char* send = new char[1];
	send[0] = address - 3;
	usleep(Delay);
	I2C_Object->writebus(send);
}