Searched refs:m_i2ControlCtx (Results 1 – 12 of 12) sorted by relevance
/hardware/bsp/intel/peripheral/libupm/src/htu21d/ |
D | htu21d.cpp | 35 HTU21D::HTU21D(int bus, int devAddr) : m_i2ControlCtx(bus) { in HTU21D() 44 mraa::Result ret = m_i2ControlCtx.address(m_controlAddr); in HTU21D() 56 m_i2ControlCtx.address (m_controlAddr); in resetSensor() 57 m_i2ControlCtx.write (&data, 1); in resetSensor() 213 m_i2ControlCtx.address (m_controlAddr); in i2cWriteReg() 214 error = m_i2ControlCtx.write (data, 2); in i2cWriteReg() 225 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_16() 226 data = (uint16_t)m_i2ControlCtx.readReg(reg) << 8; in i2cReadReg_16() 227 data |= (uint16_t)m_i2ControlCtx.readReg(reg+1); in i2cReadReg_16() 233 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_8() [all …]
|
D | htu21d.h | 179 mraa::I2c m_i2ControlCtx; variable
|
/hardware/bsp/intel/peripheral/libupm/src/bmpx8x/ |
D | bmpx8x.cxx | 35 BMPX8X::BMPX8X (int bus, int devAddr, uint8_t mode) : m_controlAddr(devAddr), m_i2ControlCtx(bus) { in BMPX8X() 39 mraa::Result ret = m_i2ControlCtx.address(m_controlAddr); in BMPX8X() 185 error = m_i2ControlCtx.address (m_controlAddr); in i2cWriteReg() 186 error = m_i2ControlCtx.write (data, 2); in i2cWriteReg() 195 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_16() 196 m_i2ControlCtx.writeByte(reg); in i2cReadReg_16() 198 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_16() 199 m_i2ControlCtx.read((uint8_t *)&data, 0x2); in i2cReadReg_16() 212 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_8() 213 m_i2ControlCtx.writeByte(reg); in i2cReadReg_8() [all …]
|
D | bmpx8x.h | 178 mraa::I2c m_i2ControlCtx; variable
|
/hardware/bsp/intel/peripheral/libupm/src/tsl2561/ |
D | tsl2561.cxx | 39 : m_i2ControlCtx(bus) in TSL2561() 48 mraa::Result error = m_i2ControlCtx.address(m_controlAddr); in TSL2561() 56 error = m_i2ControlCtx.writeReg(REGISTER_Control, CONTROL_POWERON); in TSL2561() 66 error = m_i2ControlCtx.writeReg(REGISTER_Timing, m_gain | m_integrationTime); in TSL2561() 74 error = m_i2ControlCtx.writeReg(REGISTER_Interrupt, 0x00); in TSL2561() 85 m_i2ControlCtx.writeReg(REGISTER_Control, CONTROL_POWEROFF); in ~TSL2561() 199 error = m_i2ControlCtx.address (m_controlAddr); in i2cWriteReg() 205 error = m_i2ControlCtx.writeByte (reg); in i2cWriteReg() 212 error = m_i2ControlCtx.writeByte (value); in i2cWriteReg() 229 error = m_i2ControlCtx.address(m_controlAddr); in i2cReadReg() [all …]
|
D | tsl2561.h | 164 mraa::I2c m_i2ControlCtx; variable
|
/hardware/bsp/intel/peripheral/libupm/src/mpl3115a2/ |
D | mpl3115a2.cpp | 39 MPL3115A2::MPL3115A2 (int bus, int devAddr, uint8_t mode) : m_i2ControlCtx(bus) in MPL3115A2() 48 mraa::Result ret = m_i2ControlCtx.address(m_controlAddr); in MPL3115A2() 302 m_i2ControlCtx.address (m_controlAddr); in i2cWriteReg() 303 error = m_i2ControlCtx.write (data, 2); in i2cWriteReg() 315 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_16() 316 data = (uint16_t)m_i2ControlCtx.readReg(reg) << 8; in i2cReadReg_16() 317 data |= (uint16_t)m_i2ControlCtx.readReg(reg+1); in i2cReadReg_16() 324 m_i2ControlCtx.address(m_controlAddr); in i2cReadReg_8() 325 return m_i2ControlCtx.readReg(reg); in i2cReadReg_8()
|
D | mpl3115a2.h | 248 mraa::I2c m_i2ControlCtx; variable
|
/hardware/bsp/intel/peripheral/libupm/src/mma7455/ |
D | mma7455.cxx | 38 MMA7455::MMA7455 (int bus, int devAddr) : m_i2ControlCtx(bus) { in MMA7455() 47 mraa::Result error = m_i2ControlCtx.address(m_controlAddr); in MMA7455() 149 if (mraa::SUCCESS != m_i2ControlCtx.address(m_controlAddr)) { in i2cReadReg() 155 if (mraa::SUCCESS != m_i2ControlCtx.writeByte(reg)) { in i2cReadReg() 161 return (int) m_i2ControlCtx.read(buffer, len); in i2cReadReg() 172 error = m_i2ControlCtx.address (m_controlAddr); in i2cWriteReg() 178 error = m_i2ControlCtx.write (data, len + 1); in i2cWriteReg()
|
D | mma7455.h | 240 mraa::I2c m_i2ControlCtx; variable
|
/hardware/bsp/intel/peripheral/libupm/src/am2315/ |
D | am2315.cpp | 51 if ( !(m_i2ControlCtx = mraa_i2c_init(m_bus)) ) in AM2315() 58 mraa_result_t ret = mraa_i2c_address(m_i2ControlCtx, m_controlAddr); in AM2315() 73 mraa_i2c_stop(m_i2ControlCtx); in ~AM2315() 202 mraa_result_t ret = mraa_i2c_address(m_i2ControlCtx, m_controlAddr); in i2cWriteReg() 206 error = mraa_i2c_write(m_i2ControlCtx, tdata, ilen+5); in i2cWriteReg() 216 mraa_i2c_read(m_i2ControlCtx, tdata, 5); in i2cWriteReg() 238 mraa_result_t ret = mraa_i2c_address(m_i2ControlCtx, m_controlAddr); in i2cReadReg() 242 ret = mraa_i2c_write(m_i2ControlCtx, tdata, 3); in i2cReadReg() 251 mraa_i2c_read(m_i2ControlCtx, tdata, ilen+4); in i2cReadReg()
|
D | am2315.h | 183 mraa_i2c_context m_i2ControlCtx; variable
|