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 void
close()
Closes UART/Serial portint
open(int arg)
Opens UART/Serial portint
receive(byte[] buffer, int length)
Receives and reads specified length of bytes from UART/Serialint
receive(byte[] buffer, int length, Pixy2.Checksum cs)
Receives and reads specified length of bytes from UART/Serialint
send(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
-
-