Package edu.wpi.first.hal
Class SerialPortJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.SerialPortJNI
public class SerialPortJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description SerialPortJNI()
-
Method Summary
Modifier and Type Method Description static void
serialClear(int handle)
static void
serialClose(int handle)
static void
serialDisableTermination(int handle)
static void
serialEnableTermination(int handle, char terminator)
static void
serialFlush(int handle)
static int
serialGetBytesReceived(int handle)
static int
serialInitializePort(byte port)
static int
serialInitializePortDirect(byte port, String portName)
static int
serialRead(int handle, byte[] buffer, int count)
static void
serialSetBaudRate(int handle, int baud)
static void
serialSetDataBits(int handle, byte bits)
static void
serialSetFlowControl(int handle, byte flow)
static void
serialSetParity(int handle, byte parity)
static void
serialSetReadBufferSize(int handle, int size)
static void
serialSetStopBits(int handle, byte stopBits)
static void
serialSetTimeout(int handle, double timeout)
static void
serialSetWriteBufferSize(int handle, int size)
static void
serialSetWriteMode(int handle, byte mode)
static int
serialWrite(int handle, byte[] buffer, int count)
-
Constructor Details
-
SerialPortJNI
public SerialPortJNI()
-
-
Method Details
-
serialInitializePort
-
serialInitializePortDirect
-
serialSetBaudRate
-
serialSetDataBits
-
serialSetParity
-
serialSetStopBits
-
serialSetWriteMode
-
serialSetFlowControl
-
serialSetTimeout
-
serialEnableTermination
-
serialDisableTermination
-
serialSetReadBufferSize
-
serialSetWriteBufferSize
-
serialGetBytesReceived
-
serialRead
-
serialWrite
-
serialFlush
-
serialClear
-
serialClose
-