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

Method command

libraries/MS5611_SPI/MS5611_SPI.cpp:425–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425int MS5611_SPI::command(const uint8_t command)
426{
427 yield();
428 digitalWrite(_select, LOW);
429 if (_hwSPI)
430 {
431 mySPI->beginTransaction(_spi_settings);
432 mySPI->transfer(command);
433 mySPI->endTransaction();
434 }
435 else // Software SPI
436 {
437 swSPI_transfer(command);
438 }
439 digitalWrite(_select, HIGH);
440 return 0;
441}
442
443
444// simple one mode version

Callers

nothing calls this directly

Calls 1

transferMethod · 0.80

Tested by

no test coverage detected