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

Method updateDevice

libraries/AD520X/AD520X.cpp:275–291  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////// PROTECTED

Source from the content-addressed store, hash-verified

273// PROTECTED
274//
275void AD520X::updateDevice(uint8_t pm, uint8_t value)
276{
277 digitalWrite(_select, LOW);
278 if (_hwSPI)
279 {
280 mySPI->beginTransaction(_spi_settings);
281 mySPI->transfer(pm);
282 mySPI->transfer(value);
283 mySPI->endTransaction();
284 }
285 else // Software SPI
286 {
287 swSPI_transfer(pm);
288 swSPI_transfer(value);
289 }
290 digitalWrite(_select, HIGH);
291}
292
293
294// simple one mode version

Callers

nothing calls this directly

Calls 1

transferMethod · 0.80

Tested by

no test coverage detected