IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ spiReadWrite()

unsigned int spiReadWrite ( BYTE  idx,
BYTE *  rbufferPtr,
const BYTE *  wbufferPtr,
unsigned int  nbytes 
)

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

Parameters
idxSPI bus index
     0 = SPI on SPI1
     1 = SPI on SPI2
     etc.
[in]wbufferPtrInput buffer that contains data bytes that should be send over the SPI bus.

[out]rbufferPtrOutput buffer that receives data bytes that are read from the SPI bus.

nbytesNumber of data bytes to should be transfered.
Returns
Zero on success
  • Bit0=1, wrong arguments (NULL pointer passed or wrong index)
Since
V1.02
Only supported at @CHIP-RTOS-LNX target(s)
SC1x5
See also
spiRead() spiWrite()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Dec 12 2017 09:23:37 by Doxygen 1.8.13