Attempts to determine if the SPI peripheral is already in use.
If a temporary DMA channel has been allocated, peripheral is in use. If a permanent DMA channel has been allocated, check if the DMA channel is in use. If not, proceed as though no DMA channel were allocated. If no DMA channel is allocated, check whether tx and rx buffers have been assigned. For each assigned buffer, check if the corresponding buffer position is less than the buffer length. If buffers do not indicate activity, check if there are any bytes in the FIFOs.
The SPI object to check for activity
Non-zero if the SPI port is active or zero if it is not.
Buffer pointers and lengths are specified in tx_buff and rx_buff
The SPI object that holds the transfer information
The transmit buffer
The number of bytes to transmit
The receive buffer
The number of bytes to receive
The bit width of buffer words
The logical OR of events to be registered
SPI interrupt handler
A suggestion for how to use DMA with this transfer
Important Information for this Arm website
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.