| 59 | } |
| 60 | |
| 61 | bool I2cDevice::bitOn(uint8_t reg, uint8_t bitmask) const { |
| 62 | uint8_t state; |
| 63 | if (readRegister8(reg, state)) { |
| 64 | state |= bitmask; |
| 65 | return writeRegister8(reg, state); |
| 66 | } else { |
| 67 | return false; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | bool I2cDevice::bitOff(uint8_t reg, uint8_t bitmask) const { |
| 72 | uint8_t state; |
nothing calls this directly
no outgoing calls
no test coverage detected