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

Method enableChannel

libraries/TCA9548/TCA9548.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63bool TCA9548::enableChannel(uint8_t channel)
64{
65 if (channel > 7) return false;
66 if (!isEnabled(channel))
67 {
68 setChannelMask(_mask | (0x01 << channel));
69 }
70 return true;
71}
72
73
74bool TCA9548::disableChannel(uint8_t channel)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64