Lines Matching refs:reg1
81 uint8_t reg1 = m_i2c.readReg(REG_REG1); in setDataRate() local
83 reg1 &= ~(REG1_DR0 | REG1_DR1); in setDataRate()
84 reg1 |= (odr << REG1_DR_SHIFT); in setDataRate()
86 if (m_i2c.writeReg(REG_REG1, reg1)) in setDataRate()
98 uint8_t reg1 = m_i2c.readReg(REG_REG1); in setPowerMode() local
100 reg1 &= ~(REG1_PM0 | REG1_PM1 | REG1_PM2); in setPowerMode()
101 reg1 |= (pm << REG1_PM_SHIFT); in setPowerMode()
103 if (m_i2c.writeReg(REG_REG1, reg1)) in setPowerMode()
115 uint8_t reg1 = m_i2c.readReg(REG_REG1); in enableAxis() local
117 reg1 &= ~(REG1_XEN | REG1_YEN | REG1_ZEN); in enableAxis()
118 reg1 |= (axisEnable & (REG1_XEN | REG1_YEN | REG1_ZEN)); in enableAxis()
120 if (m_i2c.writeReg(REG_REG1, reg1)) in enableAxis()