carta
spi_w8r16be(9)

spi_w8r16be9

Spi synchronous 8 bit write followed by 16 bit big-endian read

Arguments

spi

device with which data will be exchanged

cmd

command to be written before data is read back

Context

can sleep

Overview

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.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.