IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page

◆ spiRead()

unsigned int spiRead ( BYTE  idx,
BYTE *  bufferPtr,
unsigned int  nbytes 

Use this function to input bytes from the SPI bus in master mode.

idxSPI bus index
     0 = SPI on SPI1
     1 = SPI on SPI2
[out]bufferPtrOutput buffer that receives data bytes that are read from the SPI bus.

nbytesNumber of data bytes to read.
Zero on success
  • Bit0=1, wrong arguments (NULL pointer passed or wrong index)
See also
spiWrite() spiReadWrite()

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:15 by Doxygen 1.8.13