Spi allows you to communicate over serial SPI interfaces.
See Spi chapter for details.
Close this port.
Open a SPI port with given device name and config. Throws IOErr if port could not be opended.
Perform a SPI transfer. The
datashould be a binary containing the bytes to send. Since SPI transfers simultaneously send and receive, the return value will be a
Bufof the same length.