writeWord method

int writeWord(
  1. MraaSpiContext dev,
  2. int data
)

Write word - mraa_spi_write_word

Write Two Bytes to the SPI device. Returns data received on the miso line or Mraa.generalError in case of error.

Implementation

int writeWord(MraaSpiContext dev, int data) =>
    _impl.mraa_spi_write_word(dev, data);