SPI_Write
Default mainpageat91libperipheralsspiSPI_Write
Description Source Call Graph
SPI_Write
Sends data through a SPI peripheral.
 
Syntax / parameters
void SPI_Write (AT91S_SPI *spi, unsigned int npcs, unsigned short data)

Name Type Default Description
spi AT91S_SPI *
  Pointer to an AT91S_SPI instance.
npcs unsigned int
  Chip select of the component to address (1, 2, 3 or 4).
data unsigned short
  Word of data to send.
Description
Sends data through a SPI peripheral.
If the SPI is configured to use a fixed peripheral select, the npcs value is meaningless. Otherwise, it identifies the component which shall be addressed.
 
Source
The documentation for this Member was generated from the following files:
  • spi.c