• Home
  • Raw
  • Download

Lines Matching refs:buffer

215   uint8_t buffer[6];  in updateGyroscope()  local
217 memset(buffer, 0, 6); in updateGyroscope()
218 readRegs(DEV_GYRO, REG_OUT_X_L_G, buffer, 6); in updateGyroscope()
222 x = ( (buffer[1] << 8) | buffer[0] ); in updateGyroscope()
223 y = ( (buffer[3] << 8) | buffer[2] ); in updateGyroscope()
224 z = ( (buffer[5] << 8) | buffer[4] ); in updateGyroscope()
233 uint8_t buffer[6]; in updateAccelerometer() local
235 memset(buffer, 0, 6); in updateAccelerometer()
236 readRegs(DEV_XM, REG_OUT_X_L_A, buffer, 6); in updateAccelerometer()
240 x = ( (buffer[1] << 8) | buffer[0] ); in updateAccelerometer()
241 y = ( (buffer[3] << 8) | buffer[2] ); in updateAccelerometer()
242 z = ( (buffer[5] << 8) | buffer[4] ); in updateAccelerometer()
251 uint8_t buffer[6]; in updateMagnetometer() local
253 memset(buffer, 0, 6); in updateMagnetometer()
254 readRegs(DEV_XM, REG_OUT_X_L_M, buffer, 6); in updateMagnetometer()
258 x = ( (buffer[1] << 8) | buffer[0] ); in updateMagnetometer()
259 y = ( (buffer[3] << 8) | buffer[2] ); in updateMagnetometer()
260 z = ( (buffer[5] << 8) | buffer[4] ); in updateMagnetometer()
269 uint8_t buffer[2]; in updateTemperature() local
271 memset(buffer, 0, 2); in updateTemperature()
272 readRegs(DEV_XM, REG_OUT_TEMP_L_XM, buffer, 2); in updateTemperature()
277 int16_t temp = ( (buffer[1] << 8) | (buffer[0] ) ); in updateTemperature()
304 void LSM9DS0::readRegs(DEVICE_T dev, uint8_t reg, uint8_t *buffer, int len) in readRegs() argument
320 device->readBytesReg(reg | m_autoIncrementMode, buffer, len); in readRegs()