xfer()
QNX SDP8.0SPI Framework TechnotesAPIConfiguration
Initiate a SPI transaction
Synopsis:
int (*xfer)( void *const hdl,
spi_dev_t *const spi_dev,
uint8_t *const buf,
const uint32_t tnbytes,
const uint32_t rnbytes );
Arguments:
- hdl
- The handle of the low-level module that spi_init() returns.
- spi_dev
- A pointer to the SPI device structure, spi_dev_t.
- buf
- The buffer which stores the transfer data.
- tnbytes
- The number of transmit bytes.
- rnbytes
- The number of receive bytes.
Description:
The xfer() function initiates a transmit, receive, or exchange transaction.
Errors:
The xfer() function returns an errno. For values of errno, refer to the C Library Reference.
Page updated: