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

Method write

libraries/AD524X/AD524X.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79uint8_t AD524X::write(const uint8_t rdac, const uint8_t value)
80{
81 if (rdac >= _pmCount) return AD524X_ERROR;
82
83 uint8_t cmd = (rdac == 0) ? AD524X_RDAC0 : AD524X_RDAC1;
84 // apply the output lines
85 cmd = cmd | _O1 | _O2;
86 _lastValue[rdac] = value;
87 return send(cmd, value);
88}
89
90
91uint8_t AD524X::write(const uint8_t rdac, const uint8_t value, const uint8_t O1, const uint8_t O2)

Callers 2

sendMethod · 0.45
unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36