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

Method updateDevice

libraries/AD56X8/AD56X8.cpp:277–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275//
276
277void AD56X8::updateDevice(uint8_t cmd, uint8_t channel, uint16_t value)
278{
279 uint16_t val = value;
280 if (_type == 12) val <<= 4;
281 if (_type == 14) val <<= 2;
282 uint8_t a = cmd;
283 uint8_t b = (channel << 4) | (val >> 12);
284 uint8_t c = val >> 4;
285 uint8_t d = val << 4;
286 updateDevice(a, b, c, d);
287}
288
289
290void AD56X8::updateDevice(uint8_t a, uint8_t b, uint8_t c, uint8_t d)

Callers

nothing calls this directly

Calls 1

transferMethod · 0.80

Tested by

no test coverage detected