public class FreeBSDTermios extends Object implements JTermios.JTermiosInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
FreeBSDTermios.C_lib
The interface C lib.
|
static class |
FreeBSDTermios.C_lib_DirectMapping
The type C lib direct mapping.
|
static class |
FreeBSDTermios.fd_set
The type Fd set.
|
static interface |
FreeBSDTermios.NonDirectCLib
The interface Non direct c lib.
|
static class |
FreeBSDTermios.pollfd
The type Pollfd.
|
static class |
FreeBSDTermios.termios
The type Termios.
|
static class |
FreeBSDTermios.timeval
The type Timeval.
|
JTermios.JTermiosInterface.NativeSize, JTermios.JTermiosInterface.Pollfd| Constructor and Description |
|---|
FreeBSDTermios()
Instantiates a new Free bsd termios.
|
| 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 nfds,
JTermios.FDSet rfds,
JTermios.FDSet wfds,
JTermios.FDSet efds,
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.
|
public int errno()
JTermios.JTermiosInterfaceerrno in interface JTermios.JTermiosInterfacepublic void cfmakeraw(Termios termios)
JTermios.JTermiosInterfacecfmakeraw in interface JTermios.JTermiosInterfacetermios - the termiospublic int fcntl(int fd,
int cmd,
int arg)
JTermios.JTermiosInterfacefcntl in interface JTermios.JTermiosInterfacefd - the fdcmd - the cmdarg - the argpublic int tcdrain(int fd)
JTermios.JTermiosInterfacetcdrain in interface JTermios.JTermiosInterfacefd - the fdpublic int cfgetispeed(Termios termios)
JTermios.JTermiosInterfacecfgetispeed in interface JTermios.JTermiosInterfacetermios - the termiospublic int cfgetospeed(Termios termios)
JTermios.JTermiosInterfacecfgetospeed in interface JTermios.JTermiosInterfacetermios - the termiospublic int cfsetispeed(Termios termios, int speed)
JTermios.JTermiosInterfacecfsetispeed in interface JTermios.JTermiosInterfacetermios - the termiosspeed - the speedpublic int cfsetospeed(Termios termios, int speed)
JTermios.JTermiosInterfacecfsetospeed in interface JTermios.JTermiosInterfacetermios - the termiosspeed - the speedpublic int open(String s, int t)
JTermios.JTermiosInterfaceopen in interface JTermios.JTermiosInterfaces - the st - the tpublic int read(int fd,
byte[] buffer,
int len)
JTermios.JTermiosInterfaceread in interface JTermios.JTermiosInterfacefd - the fdbuffer - the bufferlen - the lenpublic int write(int fd,
byte[] buffer,
int len)
JTermios.JTermiosInterfacewrite in interface JTermios.JTermiosInterfacefd - the fdbuffer - the bufferlen - the lenpublic int close(int fd)
JTermios.JTermiosInterfaceclose in interface JTermios.JTermiosInterfacefd - the fdpublic int tcflush(int fd,
int b)
JTermios.JTermiosInterfacetcflush in interface JTermios.JTermiosInterfacefd - the fdb - the bpublic int tcgetattr(int fd,
Termios termios)
JTermios.JTermiosInterfacetcgetattr in interface JTermios.JTermiosInterfacefd - the fdtermios - the termiospublic void perror(String msg)
JTermios.JTermiosInterfaceperror in interface JTermios.JTermiosInterfacemsg - the msgpublic int tcsendbreak(int fd,
int duration)
JTermios.JTermiosInterfacetcsendbreak in interface JTermios.JTermiosInterfacefd - the fdduration - the durationpublic int tcsetattr(int fd,
int cmd,
Termios termios)
JTermios.JTermiosInterfacetcsetattr in interface JTermios.JTermiosInterfacefd - the fdcmd - the cmdtermios - the termiospublic int select(int nfds,
JTermios.FDSet rfds,
JTermios.FDSet wfds,
JTermios.FDSet efds,
TimeVal timeout)
JTermios.JTermiosInterfaceselect in interface JTermios.JTermiosInterfacenfds - the nrfds - the readwfds - the writeefds - the errortimeout - the timeoutpublic int poll(JTermios.JTermiosInterface.Pollfd[] fds, int nfds, int timeout)
JTermios.JTermiosInterfacepoll in interface JTermios.JTermiosInterfacefds - the fdsnfds - the nfdstimeout - the timeoutpublic boolean canPoll()
JTermios.JTermiosInterfacecanPoll in interface JTermios.JTermiosInterfacepublic JTermios.FDSet newFDSet()
JTermios.JTermiosInterfacenewFDSet in interface JTermios.JTermiosInterfacepublic int ioctl(int fd,
int cmd,
int... data)
JTermios.JTermiosInterfaceioctl in interface JTermios.JTermiosInterfacefd - the fdcmd - the cmddata - the datapublic List<String> getPortList()
JTermios.JTermiosInterfacegetPortList in interface JTermios.JTermiosInterfacepublic void shutDown()
JTermios.JTermiosInterfaceshutDown in interface JTermios.JTermiosInterfacepublic String getPortNamePattern()
JTermios.JTermiosInterfacegetPortNamePattern in interface JTermios.JTermiosInterfacepublic int setspeed(int fd,
Termios termios,
int speed)
JTermios.JTermiosInterfacesetspeed in interface JTermios.JTermiosInterfacefd - the fdtermios - the termiosspeed - the speedpublic int pipe(int[] fds)
JTermios.JTermiosInterfacepipe in interface JTermios.JTermiosInterfacefds - the fdsCopyright © 2017. All rights reserved.