Libraries
\ SPI
Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
Name |
transfer() |
Examples |
SPI.transfer(0b10011100);
int data = SPI.transfer(0x00);
|
Description |
The Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link standard named by Motorola that operates in full duplex mode. Devices communicate in a master/slave mode where the master device initiates the data frame. Multiple slave devices are allowed with individual slave select (chip select) lines using a pin for each device. The transfer() method exchanges bytes of data. On Wiring v1 boards the SPI pins are: SS=24, MOSI=25, MISO=26 and SCK=27. On Wiring S board the SPI pins are: SS=20, MOSI=21, MISO=22 and SCK=23. |
Syntax |
SPI.transfer(data)
variable = SPI.transfer(data)
|
Parameters |
|
Returns |
byte |
Usage |
Application |
Updated on July 07, 2011 11:11:44pm PDT