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 voidclose()Closes SPI portintopen(int arg)Opens SPI portintreceive(byte[] buffer, int length)Receives and reads specified length of bytes from SPIintreceive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes from SPIintsend(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
-
-