other versions
SPI_W8R16(9) | Serial Peripheral Interface (S | SPI_W8R16(9) |
NAME¶
spi_w8r16 - SPI synchronous 8 bit write followed by 16 bit readSYNOPSIS¶
ssize_t
spi_w8r16(struct spi_device * spi,
u8 cmd);
ARGUMENTS¶
spidevice with which data will be exchanged
cmd
command to be written before data is read back
CONTEXT¶
can sleepDESCRIPTION¶
The number is returned in wire-order, which is at least sometimes big-endian. Callable only from contexts that can sleep.RETURN¶
the (unsigned) sixteen bit number returned by the device, or else a negative error code.COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |