MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / bitOff

Method bitOff

Tactility/Source/hal/i2c/I2cDevice.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected