Home
last modified time | relevance | path

Searched refs:m_buffer (Results 1 – 4 of 4) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/itg3200/
Ditg3200.cxx70 m_buffer[0] = ITG3200_PWR_MGM; in Itg3200()
71 m_buffer[1] = ITG3200_RESET; in Itg3200()
72 m_i2c.write(m_buffer, 2); in Itg3200()
136 m_i2c.read(m_buffer, DATA_REG_SIZE); in update()
140 m_temperature = (m_buffer[0] << 8 ) | m_buffer[1]; in update()
142 m_rotation[0] = ((m_buffer[2] << 8 ) | m_buffer[3]) + m_offsets[0]; in update()
144 m_rotation[1] = ((m_buffer[4] << 8 ) | m_buffer[5]) + m_offsets[1]; in update()
146 m_rotation[2] = ((m_buffer[6] << 8 ) | m_buffer[7]) + m_offsets[2]; in update()
Ditg3200.h113 uint8_t m_buffer[READ_BUFFER_LENGTH]; variable
/hardware/bsp/intel/peripheral/libupm/src/adxl345/
Dadxl345.cxx99 m_buffer[0] = ADXL345_POWER_CTL; in Adxl345()
100 m_buffer[1] = ADXL345_POWER_ON; in Adxl345()
101 if( m_i2c.write(m_buffer, 2) != mraa::SUCCESS){ in Adxl345()
113 m_buffer[0] = ADXL345_DATA_FORMAT; in Adxl345()
114 m_buffer[1] = ADXL345_16G | ADXL345_FULL_RES; in Adxl345()
115 if( m_i2c.write(m_buffer, 2) != mraa::SUCCESS){ in Adxl345()
167 m_i2c.read(m_buffer, DATA_REG_SIZE); in update()
170 m_rawaccel[0] = ((m_buffer[1] << 8 ) | m_buffer[0]); in update()
172 m_rawaccel[1] = ((m_buffer[3] << 8 ) | m_buffer[2]); in update()
174 m_rawaccel[2] = ((m_buffer[5] << 8 ) | m_buffer[4]); in update()
Dadxl345.h106 uint8_t m_buffer[READ_BUFFER_LENGTH]; variable