spi
Default mainpage
at91lib
peripherals
spi
Description
Graph
spi
Purpose
Definitions for SPI peripheral usage.
Usage
Enable the SPI
pins
required by the application (see
pio.h
).
Configure the SPI using the
SPI_Configure
function. This enables the peripheral clock. The mode register is loaded with the given value.
Configure all the necessary chip selects with
SPI_ConfigureNPCS
.
Enable the SPI by calling
SPI_Enable
.
Send/receive data using
SPI_Write
and
SPI_Read
. Note that
SPI_Read
must be called after
SPI_Write
to retrieve the last value read.
Send/receive data using the PDC with the
SPI_WriteBuffer
and
SPI_ReadBuffer
functions.
Disable the SPI by calling
SPI_Disable
.
Source
The documentation for this Directory was generated from the following files:
spi.h