| 69 | } |
| 70 | |
| 71 | bool I2cDevice::bitOff(uint8_t reg, uint8_t bitmask) const { |
| 72 | uint8_t state; |
| 73 | if (readRegister8(reg, state)) { |
| 74 | state &= ~bitmask; |
| 75 | return writeRegister8(reg, state); |
| 76 | } else { |
| 77 | return false; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | } // namespace tt::hal::i2c |
nothing calls this directly
no outgoing calls
no test coverage detected