1SPI_W8R16(9)            Serial Peripheral Interface (S            SPI_W8R16(9)
2
3
4

NAME

6       spi_w8r16 - SPI synchronous 8 bit write followed by 16 bit read
7

SYNOPSIS

9       ssize_t spi_w8r16(struct spi_device * spi, u8 cmd);
10

ARGUMENTS

12       spi
13           device with which data will be exchanged
14
15       cmd
16           command to be written before data is read back
17

CONTEXT

19       can sleep
20

DESCRIPTION

22       This returns the (unsigned) sixteen bit number returned by the device,
23       or else a negative error code. Callable only from contexts that can
24       sleep.
25
26       The number is returned in wire-order, which is at least sometimes
27       big-endian.
28
30Kernel Hackers Manual 2.6.       November 2011                    SPI_W8R16(9)
Impressum