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

Method midScaleReset

libraries/AD524X/AD524X.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148uint8_t AD524X::midScaleReset(const uint8_t rdac)
149{
150 if (rdac >= _pmCount) return AD524X_ERROR;
151
152 uint8_t cmd = AD524X_RESET;
153 if (rdac == 1) cmd |= AD524X_RDAC1;
154 cmd = cmd | _O1 | _O2;
155 _lastValue[rdac] = AD524X_MIDPOINT;
156 return send(cmd, _lastValue[rdac]);
157}
158
159
160// read datasheet P.15

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64