Class SPILink
- java.lang.Object
-
- io.github.pseudoresonance.pixy2api.links.SPILink
-
-
Constructor Summary
Constructors Constructor Description SPILink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes SPI portint
open(int arg)
Opens SPI portint
receive(byte[] buffer, int length)
Receives and reads specified length of bytes from SPIint
receive(byte[] buffer, int length, Pixy2.Checksum cs)
Receives and reads specified length of bytes from SPIint
send(byte[] buffer, int length)
Writes and sends buffer over SPI
-
-
-
Method Detail
-
open
public int open(int arg)
Opens SPI port
-
receive
public int receive(byte[] buffer, int length, Pixy2.Checksum cs)
Receives and reads specified length of bytes from SPI
-
receive
public int receive(byte[] buffer, int length)
Receives and reads specified length of bytes from SPI
-
-