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

Method prepareChannel

libraries/AD56X8/AD56X8.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139bool AD56X8::prepareChannel(uint8_t channel, uint16_t value)
140{
141 if (channel > 7) return false;
142 if ((_type == 12) && (value > 4095)) return false;
143 if ((_type == 14) && (value > 16383)) return false;
144 _value[channel] = value;
145 updateDevice(AD56X8_REG_WRITE, channel, value);
146 return true;
147}
148
149
150bool AD56X8::updateChannel(uint8_t channel)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64