SPI_ReadBuffer
Default mainpageat91libperipheralsspiSPI_ReadBuffer
Description Source Call Graph
SPI_ReadBuffer
Reads data from a SPI peripheral until the provided buffer is filled.
 
Syntax / parameters
unsigned char SPI_ReadBuffer (AT91S_SPI *spi, void *buffer, unsigned int length)

Name Type Default Description
spi AT91S_SPI *
  Pointer to an AT91S_SPI instance.
buffer void *
  Data buffer to store incoming bytes.
length unsigned int
  Length in bytes of the data buffer.
 
Return value unsigned char
   
Description
Reads data from a SPI peripheral until the provided buffer is filled.
This method does NOT need to be called after SPI_Write or SPI_WriteBuffer.
 
Source
The documentation for this Member was generated from the following files:
  • spi.c