Class SPILink
- java.lang.Object
- 
- io.github.pseudoresonance.pixy2api.links.SPILink
 
- 
- 
Constructor SummaryConstructors Constructor Description SPILink()
 - 
Method SummaryAll 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- 
openpublic int open(int arg) Opens SPI port
 - 
receivepublic int receive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes from SPI
 - 
receivepublic int receive(byte[] buffer, int length)Receives and reads specified length of bytes from SPI
 
- 
 
-