Lines Matching refs:i2cdev
54 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive() local
57 g_assert_cmphex(i2c_get8(i2cdev, LSM303DLHC_MAG_REG_CRB), ==, 0x20); in send_and_receive()
86 value = i2c_get16(i2cdev, LSM303DLHC_MAG_REG_OUT_X_H); in send_and_receive()
90 value = i2c_get16(i2cdev, LSM303DLHC_MAG_REG_OUT_Y_H); in send_and_receive()
94 value = i2c_get16(i2cdev, LSM303DLHC_MAG_REG_OUT_Z_H); in send_and_receive()
98 value = i2c_get16(i2cdev, LSM303DLHC_MAG_REG_TEMP_OUT_H); in send_and_receive()
102 i2c_set8(i2cdev, LSM303DLHC_MAG_REG_CRA, 0x90); in send_and_receive()
105 value = i2c_get16(i2cdev, LSM303DLHC_MAG_REG_TEMP_OUT_H); in send_and_receive()
112 QI2CDevice *i2cdev = (QI2CDevice *)obj; in reg_wraparound() local
119 i2c_read_block(i2cdev, LSM303DLHC_MAG_REG_OUT_Y_H, value, 4); in reg_wraparound()
128 i2c_read_block(i2cdev, LSM303DLHC_MAG_REG_IRC, value, 2); in reg_wraparound()