spi_w8r8(9)

spi_w8r89

Spi synchronous 8 bit write followed by 8 bit read

Usage

ssize_t spi_w8r8(struct spi_device * spi, u8 cmd);

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) eight bit number returned by the device, or else a negative error code. Callable only from contexts that can sleep.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

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