Instructions

345 C-Control Pro IDE
© 2013 Conrad Electronic
less of whether the SPI interface is initialized with more bits.
Parameter
buf pointer to byte array
length number of bytes to read
5.23.2.5 SPI_SetChan
SPI Functions
Syntax
void SPI_SetChan(byte chan);
Sub SPI_SetChan(chan As Byte)
Description
Selects an SPI interface (SPI0 or SPI1) for further access.
Parameter
chan SPI channel (0 - 1)
5.23.2.6 SPI_Write
SPI Functions
Syntax
void SPI_Write(word data);
Sub SPI_Write(data As Word)
Description
Data is written to the SPI interface.
Parameter
data output data (4-16 Bit)
5.23.2.7 SPI_WriteBuf
SPI Functions
Syntax
void SPI_WriteBuf(byte buf[], word length);