tree: f3b8be3f6cd8c9af3fca9fc1c45e527a64efb477 [search]
  1. BUILD.bazel
  2. BUILD.gn
  3. METADATA.textproto
  4. README.md
  5. spiutil.cc
src/devices/spi/bin/spiutil/README.md

SPI bus utility

  1. spiutil DEVICE r LENGTH

    Read LENGTH bytes from the specified devfs node. Output will be on the console in hexdump format.

  2. spiutil DEVICE w BYTES ...

    Write BYTES to the SPI bus represented by the specified devfs node.

  3. spiutil DEVICE x BYTES ...

    Perform a full-duplex SPI exchange on the SPI bus represented by the specified devfs node. Transmitted data as w option above, output as r option.