Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name |
transfer() |
Examples |
// just send binary number 0b10011100
SPI.transfer(0b10011100);
// send a dummy 0x00 byte, read a byte back and store it on 'data'
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. |
Syntax |
SPI.transfer(data)
variable = SPI.transfer(data) |
Parameters |
|
Returns |
byte |
Usage |
Application |
Updated on September 16, 2010 10:32:09pm PDT