MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setChannelMask

Method setChannelMask

libraries/TCA9548/TCA9548.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106bool TCA9548::setChannelMask(uint8_t mask)
107{
108 if ((_mask == mask) && (! _forced)) return true;
109 _mask = mask;
110 _wire->beginTransmission(_address);
111 _wire->write(_mask);
112 _error = _wire->endTransmission();
113 return (_error == 0);
114}
115
116
117uint8_t TCA9548::getChannelMask()

Callers 1

unittestFunction · 0.80

Calls 1

writeMethod · 0.45

Tested by 1

unittestFunction · 0.64