Class UARTLink
- java.lang.Object
-
- io.github.pseudoresonance.pixy2api.links.UARTLink
-
-
Constructor Summary
Constructors Constructor Description UARTLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes UART/Serial portintopen(int arg)Opens UART/Serial portintreceive(byte[] buffer, int length)Receives and reads specified length of bytes from UART/Serialintreceive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes from UART/Serialintsend(byte[] buffer, int length)Writes and sends buffer over UART/Serial
-
-
-
Method Detail
-
open
public int open(int arg)
Opens UART/Serial port
-
receive
public int receive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes from UART/Serial
-
receive
public int receive(byte[] buffer, int length)Receives and reads specified length of bytes from UART/Serial
-
-