QMC5883L.c
uint8_t data_ready_QMC5883L(){
	uint8_t ready = 0;
	i2c_write(QMC5883L_ADRESS, &STATUS_REGISTER_1, 1);
	uint8_t buf;
	i2c_read(QMC5883L_ADRESS, &buf, 1);
	ready = buf & (1<<0);
	return ready;
}
// returns 1 if a new data sample is available, 0 if not
returns 1 if a new data sample is available, 0 if not
returns 1 if a new data sample is available 0 if not
uint8_t data_ready_QMC5883L(){
	uint8_t ready = 0;
	i2c_write(QMC5883L_ADRESS, &STATUS_REGISTER_1, 1);
	uint8_t buf;
	i2c_read(QMC5883L_ADRESS, &buf, 1);
	ready = buf & (1<<0);
	return ready;
}
uint8_t data_ready_QMC5883L ( ) { uint8_t ready = 0 ; i2c_write ( QMC5883L_ADRESS , & STATUS_REGISTER_1 , 1 ) ; uint8_t buf ; i2c_read ( QMC5883L_ADRESS , & buf , 1 ) ; ready = buf & ( 1 << 0 ) ; return ready ; }
returns 1 if a new data sample is available, 0 if not
returns 1 if a new data sample is available 0 if not