public class JTermios extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JTermios.FDSet
The interface Fd set.
|
static interface |
JTermios.JTermiosInterface
The interface J termios interface.
|
static class |
JTermios.JTermiosLogging
The type J termios logging.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
B0
The constant B0.
|
static int |
B110
The constant B110.
|
static int |
B115200
The constant B115200.
|
static int |
B1200
The constant B1200.
|
static int |
B134
The constant B134.
|
static int |
B14400
The constant B14400.
|
static int |
B150
The constant B150.
|
static int |
B1800
The constant B1800.
|
static int |
B19200
The constant B19200.
|
static int |
B200
The constant B200.
|
static int |
B230400
The constant B230400.
|
static int |
B2400
The constant B2400.
|
static int |
B28800
The constant B28800.
|
static int |
B300
The constant B300.
|
static int |
B38400
The constant B38400.
|
static int |
B4800
The constant B4800.
|
static int |
B50
The constant B50.
|
static int |
B57600
The constant B57600.
|
static int |
B600
The constant B600.
|
static int |
B7200
The constant B7200.
|
static int |
B75
The constant B75.
|
static int |
B76800
The constant B76800.
|
static int |
B9600
The constant B9600.
|
static int |
BRKINT
The constant BRKINT.
|
static int |
CLOCAL
The constant CLOCAL.
|
static int |
CMSPAR
The constant CMSPAR.
|
static int |
CREAD
The constant CREAD.
|
static int |
CRTSCTS
The constant CRTSCTS.
|
static int |
CS5
The constant CS5.
|
static int |
CS6
The constant CS6.
|
static int |
CS7
The constant CS7.
|
static int |
CS8
The constant CS8.
|
static int |
CSIZE
The constant CSIZE.
|
static int |
CSTOPB
The constant CSTOPB.
|
static int |
DC1
The constant DC1.
|
static int |
DC3
The constant DC3.
|
static int |
EACCES
The constant EACCES.
|
static int |
EAGAIN
The constant EAGAIN.
|
static int |
EBADF
The constant EBADF.
|
static int |
EBUSY
The constant EBUSY.
|
static int |
ECHO
The constant ECHO.
|
static int |
ECHOE
The constant ECHOE.
|
static int |
ECHONL
The constant ECHONL.
|
static int |
EEXIST
The constant EEXIST.
|
static int |
EINTR
The constant EINTR.
|
static int |
EINVAL
The constant EINVAL.
|
static int |
EIO
The constant EIO.
|
static int |
EISDIR
The constant EISDIR.
|
static int |
ELOOP
The constant ELOOP.
|
static int |
EMFILE
The constant EMFILE.
|
static int |
ENAMETOOLONG
The constant ENAMETOOLONG.
|
static int |
ENFILE
The constant ENFILE.
|
static int |
ENOENT
The constant ENOENT.
|
static int |
ENOSPC
The constant ENOSPC.
|
static int |
ENOSR
The constant ENOSR.
|
static int |
ENOTDIR
The constant ENOTDIR.
|
static int |
ENOTSUP
The constant ENOTSUP.
|
static int |
ENOTTY
The constant ENOTTY.
|
static int |
ENXIO
The constant ENXIO.
|
static int |
EOVERFLOW
The constant EOVERFLOW.
|
static int |
EROFS
The constant EROFS.
|
static int |
F_GETFL
The constant F_GETFL.
|
static int |
F_SETFL
The constant F_SETFL.
|
static int |
FIONREAD
The constant FIONREAD.
|
static int |
ICANON
The constant ICANON.
|
static int |
ICRNL
The constant ICRNL.
|
static int |
IEXTEN
The constant IEXTEN.
|
static int |
IGNBRK
The constant IGNBRK.
|
static int |
IGNCR
The constant IGNCR.
|
static int |
IGNPAR
The constant IGNPAR.
|
static int |
INLCR
The constant INLCR.
|
static int |
INPCK
The constant INPCK.
|
static int |
ISIG
The constant ISIG.
|
static int |
ISTRIP
The constant ISTRIP.
|
static int |
IXANY
The constant IXANY.
|
static int |
IXOFF
The constant IXOFF.
|
static int |
IXON
The constant IXON.
|
static int |
O_CREAT
The constant O_CREAT.
|
static int |
O_NDELAY
The constant O_NDELAY.
|
static int |
O_NOCTTY
The constant O_NOCTTY.
|
static int |
O_NONBLOCK
The constant O_NONBLOCK.
|
static int |
O_RDWR
The constant O_RDWR.
|
static int |
OPOST
The constant OPOST.
|
static int |
PARENB
The constant PARENB.
|
static int |
PARMRK
The constant PARMRK.
|
static int |
PARODD
The constant PARODD.
|
static short |
POLLERR
The constant POLLERR.
|
static short |
POLLERR_OUT
The constant POLLERR_OUT.
|
static short |
POLLIN
The constant POLLIN.
|
static short |
POLLNVAL
The constant POLLNVAL.
|
static int |
POLLNVAL_OUT
The constant POLLNVAL_OUT.
|
static short |
POLLOUT
The constant POLLOUT.
|
static short |
POLLPRI
The constant POLLPRI.
|
static int |
TCIFLUSH
The constant TCIFLUSH.
|
static int |
TCIOFLUSH
The constant TCIOFLUSH.
|
static int |
TCOFLUSH
The constant TCOFLUSH.
|
static int |
TCSADRAIN
The constant TCSADRAIN.
|
static int |
TCSANOW
The constant TCSANOW.
|
static int |
TIOCM_CAR
The constant TIOCM_CAR.
|
static int |
TIOCM_CD
The constant TIOCM_CD.
|
static int |
TIOCM_CTS
The constant TIOCM_CTS.
|
static int |
TIOCM_DSR
The constant TIOCM_DSR.
|
static int |
TIOCM_DTR
The constant TIOCM_DTR.
|
static int |
TIOCM_RI
The constant TIOCM_RI.
|
static int |
TIOCM_RNG
The constant TIOCM_RNG.
|
static int |
TIOCM_RTS
The constant TIOCM_RTS.
|
static int |
TIOCMGET
The constant TIOCMGET.
|
static int |
TIOCMSET
The constant TIOCMSET.
|
static int |
VEOF
The constant VEOF.
|
static int |
VMIN
The constant VMIN.
|
static int |
VSTART
The constant VSTART.
|
static int |
VSTOP
The constant VSTOP.
|
static int |
VTIME
The constant VTIME.
|
| Constructor and Description |
|---|
JTermios() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canPoll()
Can poll boolean.
|
static int |
cfgetispeed(Termios termios)
Cfgetispeed int.
|
static int |
cfgetospeed(Termios termios)
Cfgetospeed int.
|
static void |
cfmakeraw(int fd,
Termios termios)
Cfmakeraw.
|
static int |
cfsetispeed(Termios termios,
int speed)
Cfsetispeed int.
|
static int |
cfsetospeed(Termios termios,
int speed)
Cfsetospeed int.
|
static int |
close(int fd)
Close int.
|
static int |
errno()
Errno int.
|
static int |
fcntl(int fd,
int cmd,
int arg)
Fcntl int.
|
static void |
FD_CLR(int fd,
JTermios.FDSet set)
Fd clr.
|
static boolean |
FD_ISSET(int fd,
JTermios.FDSet set)
Fd isset boolean.
|
static void |
FD_SET(int fd,
JTermios.FDSet set)
Fd set.
|
static void |
FD_ZERO(JTermios.FDSet set)
Fd zero.
|
static List<String> |
getPortList()
Gets port list.
|
static Pattern |
getPortNamePattern(JTermios.JTermiosInterface jtermios)
Gets port name pattern.
|
static int |
ioctl(int fd,
int cmd,
int... data)
Ioctl int.
|
static JTermios.FDSet |
newFDSet()
New fd set fd set.
|
static int |
open(String s,
int t)
Open int.
|
static void |
perror(String msg)
Perror.
|
static int |
pipe(int[] fds)
Pipe int.
|
static int |
poll(JTermios.JTermiosInterface.Pollfd[] fds,
int nfds,
int timeout)
Poll int.
|
static int |
read(int fd,
byte[] buffer,
int len)
Read int.
|
static int |
select(int n,
JTermios.FDSet read,
JTermios.FDSet write,
JTermios.FDSet error,
TimeVal timeout)
Unlike Linux select this does not modify 'timeout' so it can be re-used.
|
static int |
setspeed(int fd,
Termios termios,
int speed)
Sets .
|
void |
shutdown()
Shutdown.
|
static int |
tcdrain(int fd)
Tcdrain int.
|
static int |
tcflush(int a,
int b)
Tcflush int.
|
static int |
tcgetattr(int fd,
Termios termios)
Tcgetattr int.
|
static int |
tcsendbreak(int fd,
int duration)
Tcsendbreak int.
|
static int |
tcsetattr(int fd,
int cmd,
Termios termios)
Tcsetattr int.
|
static int |
write(int fd,
byte[] buffer,
int len)
Write int.
|
public static int FIONREAD
public static int O_RDWR
public static int O_NONBLOCK
public static int O_NOCTTY
public static int O_NDELAY
public static int O_CREAT
public static int F_GETFL
public static int F_SETFL
public static int EAGAIN
public static int EBADF
public static int EACCES
public static int EEXIST
public static int EINTR
public static int EINVAL
public static int EIO
public static int EISDIR
public static int ELOOP
public static int EMFILE
public static int ENAMETOOLONG
public static int ENFILE
public static int ENOENT
public static int ENOSR
public static int ENOSPC
public static int ENOTDIR
public static int ENXIO
public static int EOVERFLOW
public static int EROFS
public static int ENOTSUP
public static int EBUSY
public static int ENOTTY
public static int TIOCM_RNG
public static int TIOCM_CAR
public static int IGNBRK
public static int BRKINT
public static int IGNPAR
public static int PARMRK
public static int INLCR
public static int IGNCR
public static int ICRNL
public static int ECHONL
public static int IEXTEN
public static int CLOCAL
public static int OPOST
public static int VSTART
public static int TCSANOW
public static int VSTOP
public static int VMIN
public static int VTIME
public static int VEOF
public static int TIOCMGET
public static int TIOCM_CTS
public static int TIOCM_DSR
public static int TIOCM_RI
public static int TIOCM_CD
public static int TIOCM_DTR
public static int TIOCM_RTS
public static int ICANON
public static int ECHO
public static int ECHOE
public static int ISIG
public static int TIOCMSET
public static int IXON
public static int IXOFF
public static int IXANY
public static int CRTSCTS
public static int TCSADRAIN
public static int INPCK
public static int ISTRIP
public static int CSIZE
public static int TCIFLUSH
public static int TCOFLUSH
public static int TCIOFLUSH
public static int CS5
public static int CS6
public static int CS7
public static int CS8
public static int CSTOPB
public static int CREAD
public static int PARENB
public static int PARODD
public static int CMSPAR
public static int B0
public static int B50
public static int B75
public static int B110
public static int B134
public static int B150
public static int B200
public static int B300
public static int B600
public static int B1200
public static int B1800
public static int B2400
public static int B4800
public static int B9600
public static int B19200
public static int B38400
public static int B7200
public static int B14400
public static int B28800
public static int B57600
public static int B76800
public static int B115200
public static int B230400
public static short POLLIN
public static short POLLPRI
public static short POLLOUT
public static short POLLERR
public static short POLLERR_OUT
public static short POLLNVAL
public static int POLLNVAL_OUT
public static int DC1
public static int DC3
public void shutdown()
public static int errno()
public static int fcntl(int fd,
int cmd,
int arg)
fd - the fdcmd - the cmdarg - the argpublic static int cfgetispeed(Termios termios)
termios - the termiospublic static int cfgetospeed(Termios termios)
termios - the termiospublic static int cfsetispeed(Termios termios, int speed)
termios - the termiosspeed - the speedpublic static int cfsetospeed(Termios termios, int speed)
termios - the termiosspeed - the speedpublic static int setspeed(int fd,
Termios termios,
int speed)
fd - the fdtermios - the termiosspeed - the speedpublic static int tcflush(int a,
int b)
a - the ab - the bpublic static int tcdrain(int fd)
fd - the fdpublic static void cfmakeraw(int fd,
Termios termios)
fd - the fdtermios - the termiospublic static int tcgetattr(int fd,
Termios termios)
fd - the fdtermios - the termiospublic static int tcsetattr(int fd,
int cmd,
Termios termios)
fd - the fdcmd - the cmdtermios - the termiospublic static int tcsendbreak(int fd,
int duration)
fd - the fdduration - the durationpublic static int open(String s, int t)
s - the st - the tpublic static int close(int fd)
fd - the fdpublic static int write(int fd,
byte[] buffer,
int len)
fd - the fdbuffer - the bufferlen - the lenpublic static int read(int fd,
byte[] buffer,
int len)
fd - the fdbuffer - the bufferlen - the lenpublic static int ioctl(int fd,
int cmd,
int... data)
fd - the fdcmd - the cmddata - the datapublic static int select(int n,
JTermios.FDSet read,
JTermios.FDSet write,
JTermios.FDSet error,
TimeVal timeout)
n - the nread - the readwrite - the writeerror - the errortimeout - the timeoutpublic static int poll(JTermios.JTermiosInterface.Pollfd[] fds, int nfds, int timeout)
fds - the fdsnfds - the nfdstimeout - the timeoutpublic static boolean canPoll()
public static int pipe(int[] fds)
fds - the fdspublic static void perror(String msg)
msg - the msgpublic static JTermios.FDSet newFDSet()
public static void FD_SET(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic static void FD_CLR(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic static boolean FD_ISSET(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic static void FD_ZERO(JTermios.FDSet set)
set - the setpublic static Pattern getPortNamePattern(JTermios.JTermiosInterface jtermios)
jtermios - the jtermiosCopyright © 2017. All rights reserved.