- ssize_t spi_w8r16be(struct spi_device * spi, u8 cmd);
- device with which data will be exchanged
- command to be written before data is read back
This returns the (unsigned) sixteen bit number returned by the device in cpu endianness, or else a negative error code. Callable only from contexts that can sleep.
This function is similar to spi_w8r16, with the exception that it will convert the read 16 bit data word from big-endian to native endianness.