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

Method write

libraries/AD5144A/AD5144A.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86uint8_t AD51XX::write(const uint8_t rdac, const uint8_t value)
87{
88 // COMMAND 1 - page 29
89 if (rdac >= _potCount) return AD51XXA_INVALID_POT;
90 if (value > _maxValue) return AD51XXA_INVALID_VALUE;
91 _lastValue[rdac] = value;
92 uint8_t cmd = 0x10 | rdac;
93 return send(cmd, _lastValue[rdac]);
94}
95
96
97uint8_t AD51XX::writeAll(const uint8_t value)

Callers 2

sendMethod · 0.45
readBackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected