IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page

◆ spiWrite()

unsigned int spiWrite ( BYTE  idx,
const BYTE *  bufferPtr,
unsigned int  nbytes 

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

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

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

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:21 by Doxygen 1.8.13