'\" t .\" Title: spi_w8r16be .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Serial Peripheral Interface (SPI) .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SPI_W8R16BE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Serial Peripheral Interface (S" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" spi_w8r16be \- SPI synchronous 8 bit write followed by 16 bit big\-endian read .SH "SYNOPSIS" .HP \w'ssize_t\ spi_w8r16be('u .BI "ssize_t spi_w8r16be(struct\ spi_device\ *\ " "spi" ", u8\ " "cmd" ");" .SH "ARGUMENTS" .PP \fIspi\fR .RS 4 device with which data will be exchanged .RE .PP \fIcmd\fR .RS 4 command to be written before data is read back .RE .SH "CONTEXT" .PP can sleep .SH "DESCRIPTION" .PP 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\&. .PP 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\&. .SH "COPYRIGHT" .br