Syntax
class SPIClass;
ContentsIndex
PreviousUpNext
SPIClass Class
Members
Syntax
class SPIClass;
Description

SPI class interface is used to control SPI port to conduct data communication between the processor and multitudes of peripheral devices.

Class Hierarchy
File

SPI.h

Group
Methods
Method 
Description 
Initializes and sets up the SPI mode. It also initializes the status of pins. 
end 
Disables the SPI data transmission. 
Sets up the order of data transmission, which can be MSBFIRST (MSB first) or LSBFIRST (LSB first). 
Sets up clock divider to control the speed of data transmission. 
Sets up the SPI data transmission mode. 
Sends a byte of data to slave and receives a byte of data from the slave simultaneously. 
Writes block memory to slave. The memory size needs to be 2^X in exponential form.