Lines Matching refs:writeThenRead
134 uint8_t status = writeThenRead(STATUS_M); in getCoordinates()
136 coor[X] = (int16_t(writeThenRead(OUT_X_H_M)) << 8) in getCoordinates()
137 | int16_t(writeThenRead(OUT_X_L_M)); in getCoordinates()
138 coor[Y] = (int16_t(writeThenRead(OUT_Y_H_M)) << 8) in getCoordinates()
139 | int16_t(writeThenRead(OUT_Y_L_M)); in getCoordinates()
140 coor[Z] = (int16_t(writeThenRead(OUT_Z_H_M)) << 8) in getCoordinates()
141 | int16_t(writeThenRead(OUT_Z_L_M)); in getCoordinates()
165 LSM303d::writeThenRead(uint8_t reg) in writeThenRead() function in LSM303d
178 accel[X] = (int16_t(writeThenRead(OUT_X_H_A)) << 8) in getAcceleration()
179 | int16_t(writeThenRead(OUT_X_L_A)); in getAcceleration()
180 accel[Y] = (int16_t(writeThenRead(OUT_Y_H_A)) << 8) in getAcceleration()
181 | int16_t(writeThenRead(OUT_Y_L_A)); in getAcceleration()
182 accel[Z] = (int16_t(writeThenRead(OUT_Z_H_A)) << 8) in getAcceleration()
183 | int16_t(writeThenRead(OUT_Z_L_A)); in getAcceleration()