SPI_Configure
Default mainpageat91libperipheralsspiSPI_Configure
Description Source Call Graph
SPI_Configure
Configures a SPI peripheral as specified.
 
Syntax / parameters
void SPI_Configure (AT91S_SPI *spi, unsigned int id, unsigned int configuration)

Name Type Default Description
spi AT91S_SPI *
  Pointer to an AT91S_SPI instance.
id unsigned int
  Peripheral ID of the SPI.
configuration unsigned int
  Value of the SPI configuration register.
Description
Configures a SPI peripheral as specified.
The configuration can be computed using several macros (see "SPI configuration macros") and the constants defined in LibV3 (AT91C_SPI_*).
 
Source
The documentation for this Member was generated from the following files:
  • spi.c