public static interface JTermios.JTermiosInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
JTermios.JTermiosInterface.NativeSize
The type Native size.
|
static class |
JTermios.JTermiosInterface.Pollfd
The type Pollfd.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPoll()
poll() on Windows has not been implemented and while implemented on
Mac OS X, does not work for devices.
|
int |
cfgetispeed(Termios termios)
Cfgetispeed int.
|
int |
cfgetospeed(Termios termios)
Cfgetospeed int.
|
void |
cfmakeraw(Termios termios)
Cfmakeraw.
|
int |
cfsetispeed(Termios termios,
int speed)
Cfsetispeed int.
|
int |
cfsetospeed(Termios termios,
int speed)
Cfsetospeed int.
|
int |
close(int fd)
Close int.
|
int |
errno()
Errno int.
|
int |
fcntl(int fd,
int cmd,
int arg)
Fcntl int.
|
List<String> |
getPortList()
Gets port list.
|
String |
getPortNamePattern()
Gets port name pattern.
|
int |
ioctl(int fd,
int cmd,
int... data)
Ioctl int.
|
JTermios.FDSet |
newFDSet()
New fd set fd set.
|
int |
open(String s,
int t)
Open int.
|
void |
perror(String msg)
Perror.
|
int |
pipe(int[] fds)
Pipe int.
|
int |
poll(JTermios.JTermiosInterface.Pollfd[] fds,
int nfds,
int timeout)
Poll int.
|
int |
read(int fd,
byte[] buffer,
int len)
Read int.
|
int |
select(int n,
JTermios.FDSet read,
JTermios.FDSet write,
JTermios.FDSet error,
TimeVal timeout)
Select int.
|
int |
setspeed(int fd,
Termios termios,
int speed)
Sets .
|
void |
shutDown()
Shut down.
|
int |
tcdrain(int fd)
Tcdrain int.
|
int |
tcflush(int fd,
int b)
Tcflush int.
|
int |
tcgetattr(int fd,
Termios termios)
Tcgetattr int.
|
int |
tcsendbreak(int fd,
int duration)
Tcsendbreak int.
|
int |
tcsetattr(int fd,
int cmd,
Termios termios)
Tcsetattr int.
|
int |
write(int fd,
byte[] buffer,
int len)
Write int.
|
JTermios.FDSet newFDSet()
int pipe(int[] fds)
fds - the fdsvoid shutDown()
int errno()
int fcntl(int fd,
int cmd,
int arg)
fd - the fdcmd - the cmdarg - the argint setspeed(int fd,
Termios termios,
int speed)
fd - the fdtermios - the termiosspeed - the speedint cfgetispeed(Termios termios)
termios - the termiosint cfgetospeed(Termios termios)
termios - the termiosint cfsetispeed(Termios termios, int speed)
termios - the termiosspeed - the speedint cfsetospeed(Termios termios, int speed)
termios - the termiosspeed - the speedint tcflush(int fd,
int b)
fd - the fdb - the bint tcdrain(int fd)
fd - the fdvoid cfmakeraw(Termios termios)
termios - the termiosint tcgetattr(int fd,
Termios termios)
fd - the fdtermios - the termiosint tcsetattr(int fd,
int cmd,
Termios termios)
fd - the fdcmd - the cmdtermios - the termiosint tcsendbreak(int fd,
int duration)
fd - the fdduration - the durationint open(String s, int t)
s - the st - the tint close(int fd)
fd - the fdint write(int fd,
byte[] buffer,
int len)
fd - the fdbuffer - the bufferlen - the lenint read(int fd,
byte[] buffer,
int len)
fd - the fdbuffer - the bufferlen - the lenint ioctl(int fd,
int cmd,
int... data)
fd - the fdcmd - the cmddata - the dataint select(int n,
JTermios.FDSet read,
JTermios.FDSet write,
JTermios.FDSet error,
TimeVal timeout)
n - the nread - the readwrite - the writeerror - the errortimeout - the timeoutint poll(JTermios.JTermiosInterface.Pollfd[] fds, int nfds, int timeout)
fds - the fdsnfds - the nfdstimeout - the timeoutboolean canPoll()
void perror(String msg)
msg - the msgString getPortNamePattern()
Copyright © 2017. All rights reserved.