bool AK8975_getDataReady() { I2C_readBit(devAddr, AK8975_RA_ST1, AK8975_ST1_DRDY_BIT, buffer,0); return buffer[0]; }
// ST2 register bool AK8975_getOverflowStatus() { I2C_readBit(devAddr, AK8975_RA_ST2, AK8975_ST2_HOFL_BIT, buffer,0); return buffer[0]; }
bool AK8975_getDataError() { I2C_readBit(devAddr, AK8975_RA_ST2, AK8975_ST2_DERR_BIT, buffer,0); return buffer[0]; }
unsigned char getOTPBankValid() { I2C_readBit(devAddr, MPU6050_RA_XG_OFFS_TC, MPU6050_TC_OTP_BNK_VLD_BIT, buffer); return buffer[0]; }