dma_xfer()

QNX SDP8.0SPI Framework TechnotesAPIConfiguration

Initiate a DMA transaction

Synopsis:

int (*dma_xfer)( void *const hdl,
                 spi_dev_t *spi_dev,
                 dma_addr_t *addr,
                 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.
addr
A pointer to the DMA address structure, dma_addr_t.
tnbytes
The number of transmit bytes.
rnbytes
The number of receive bytes.

Description:

The dma_xfer() function initiates a DMA transmit, receive, or exchange transaction.

Errors:

The dma_xfer() function returns an errno. For values of errno, refer to the C Library Reference.

Page updated: