spi_sync_transfer(9)

spi_sync_transfer9

Synchronous spi data transfer

Usage

int spi_sync_transfer(struct spi_device * spi, struct spi_transfer * xfers, unsigned int num_xfers);

Arguments

spi

device with which data will be exchanged

xfers

An array of spi_transfers

num_xfers

Number of items in the xfer array

Context

can sleep

Overview

Does a synchronous SPI data transfer of the given spi_transfer array.

For more specific semantics see spi_sync.

It returns zero on success, else a negative error code.

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