carta
spi_w8r16(9)

spi_w8r169

Spi synchronous 8 bit write followed by 16 bit 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, or else a negative error code. Callable only from contexts that can sleep.

The number is returned in wire-order, which is at least sometimes big-endian.

History

  • Debian 8 (Jessie): the text shown here
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)

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