public class WindowsTermios extends Object implements JTermios.JTermiosInterface
JTermios.JTermiosInterface.NativeSize, JTermios.JTermiosInterface.Pollfd| Constructor and Description |
|---|
WindowsTermios()
Instantiates a new Windows 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.
|
void |
FD_CLR(int fd,
JTermios.FDSet set)
Fd clr.
|
boolean |
FD_ISSET(int fd,
JTermios.FDSet set)
Fd isset boolean.
|
void |
FD_SET(int fd,
JTermios.FDSet set)
Fd set.
|
void |
FD_ZERO(JTermios.FDSet set)
Fd zero.
|
List<String> |
getPortList()
Gets port list.
|
String |
getPortNamePattern()
Gets port name pattern.
|
int |
ioctl(int fd,
int cmd,
int[] arg)
Ioctl int.
|
JTermios.FDSet |
newFDSet()
New fd set fd set.
|
int |
open(String filename,
int flags)
Open int.
|
void |
perror(String msg)
Perror.
|
int |
pipe(int[] fds)
Pipe int.
|
int |
poll(int[] fds,
int nfds,
int timeout)
Poll int.
|
int |
poll(JTermios.JTermiosInterface.Pollfd[] fds,
int nfds,
int timeout)
Poll int.
|
int |
read(int fd,
byte[] buffer,
int length)
Read int.
|
int |
select(int n,
JTermios.FDSet readfds,
JTermios.FDSet writefds,
JTermios.FDSet exceptfds,
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 queue)
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 |
updateFromTermios(com.sparetimelabs.serial.termios.impl.WindowsTermios.Port port)
Update from termios int.
|
int |
write(int fd,
byte[] buffer,
int length)
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 filename, int flags)
JTermios.JTermiosInterfaceopen in interface JTermios.JTermiosInterfacefilename - the sflags - the tpublic int read(int fd,
byte[] buffer,
int length)
JTermios.JTermiosInterfaceread in interface JTermios.JTermiosInterfacefd - the fdbuffer - the bufferlength - the lenpublic int write(int fd,
byte[] buffer,
int length)
JTermios.JTermiosInterfacewrite in interface JTermios.JTermiosInterfacefd - the fdbuffer - the bufferlength - the lenpublic int close(int fd)
JTermios.JTermiosInterfaceclose in interface JTermios.JTermiosInterfacefd - the fdpublic int tcflush(int fd,
int queue)
JTermios.JTermiosInterfacetcflush in interface JTermios.JTermiosInterfacefd - the fdqueue - the bpublic int tcgetattr(int fd,
Termios termios)
JTermios.JTermiosInterfacetcgetattr in interface JTermios.JTermiosInterfacefd - the fdtermios - the termiospublic 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 updateFromTermios(com.sparetimelabs.serial.termios.impl.WindowsTermios.Port port)
throws com.sparetimelabs.serial.termios.impl.WindowsTermios.Fail
port - the portFail - the failcom.sparetimelabs.serial.termios.impl.WindowsTermios.Failpublic int select(int n,
JTermios.FDSet readfds,
JTermios.FDSet writefds,
JTermios.FDSet exceptfds,
TimeVal timeout)
JTermios.JTermiosInterfaceselect in interface JTermios.JTermiosInterfacen - the nreadfds - the readwritefds - the writeexceptfds - 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 int poll(int[] fds,
int nfds,
int timeout)
fds - the fdsnfds - the nfdstimeout - the timeoutpublic boolean canPoll()
JTermios.JTermiosInterfacecanPoll in interface JTermios.JTermiosInterfacepublic void perror(String msg)
JTermios.JTermiosInterfaceperror in interface JTermios.JTermiosInterfacemsg - the msgpublic JTermios.FDSet newFDSet()
JTermios.JTermiosInterfacenewFDSet in interface JTermios.JTermiosInterfacepublic void FD_CLR(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic boolean FD_ISSET(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic void FD_SET(int fd,
JTermios.FDSet set)
fd - the fdset - the setpublic void FD_ZERO(JTermios.FDSet set)
set - the setpublic int ioctl(int fd,
int cmd,
int[] arg)
JTermios.JTermiosInterfaceioctl in interface JTermios.JTermiosInterfacefd - the fdcmd - the cmdarg - the datapublic String getPortNamePattern()
JTermios.JTermiosInterfacegetPortNamePattern in interface JTermios.JTermiosInterfacepublic List<String> getPortList()
JTermios.JTermiosInterfacegetPortList in interface JTermios.JTermiosInterfacepublic void shutDown()
JTermios.JTermiosInterfaceshutDown 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.