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

NAME

6       spi_w8r8 - SPI synchronous 8 bit write followed by 8 bit read
7

SYNOPSIS

9       ssize_t spi_w8r8(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) eight bit number returned by the device, or
23       else a negative error code. Callable only from contexts that can sleep.
24
26Kernel Hackers Manual 3.10         June 2019                       SPI_W8R8(9)
Impressum