|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.connection.GPSPort
gps.connection.GPSRxTxPort
public final class GPSRxTxPort
This class implements the serial port for rxtx (on Linux).
Field Summary | |
---|---|
static java.lang.String |
os_name
|
Constructor Summary | |
---|---|
GPSRxTxPort()
|
Method Summary | |
---|---|
void |
closePort()
Close the connection. |
int |
error()
getter to retrieve the last error report by the serial port driver. |
java.lang.String |
getFreeTextPort()
|
boolean |
isConnected()
Indicates if the device is connected or not. |
int |
openPort()
Open a connection. |
int |
readBytes(byte[] b,
int start,
int max)
|
int |
readCheck()
|
void |
setBlueTooth()
Set a bluetooth connection. |
void |
setFreeTextPort(java.lang.String s)
Set the "Free text port" - does not open it. |
void |
setUSB()
Set an USB connection. |
void |
write(byte[] b)
|
void |
write(java.lang.String s)
|
Methods inherited from class gps.connection.GPSPort |
---|
debugActive, endDebug, getDebugFileName, getPort, getSpeed, setDebugFileName, setPort, setSpeed, startDebug, writeDebug, writeDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String os_name
Constructor Detail |
---|
public GPSRxTxPort()
Method Detail |
---|
public final boolean isConnected()
isConnected
in class GPSPort
true
if the device is connected.public final void closePort()
closePort
in class GPSPort
public final int openPort()
openPort
in class GPSPort
public final void setBlueTooth()
setBlueTooth
in class GPSPort
public final void setUSB()
setUSB
in class GPSPort
public final void setFreeTextPort(java.lang.String s)
GPSPort
setFreeTextPort
in class GPSPort
public final java.lang.String getFreeTextPort()
getFreeTextPort
in class GPSPort
public final int error()
public final void write(byte[] b)
write
in class GPSPort
public final void write(java.lang.String s)
write
in class GPSPort
public final int readCheck()
readCheck
in class GPSPort
public final int readBytes(byte[] b, int start, int max)
readBytes
in class GPSPort
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |