|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.connection.GPSPort
public abstract class GPSPort
abstract class defining interface for serial port implementation. Allows differentiation according to platform.
Field Summary | |
---|---|
static java.lang.String |
os_name
|
Constructor Summary | |
---|---|
GPSPort()
|
Method Summary | |
---|---|
void |
closePort()
|
boolean |
debugActive()
|
void |
endDebug()
|
BT747Path |
getDebugFileName()
|
java.lang.String |
getFreeTextPort()
|
int |
getPort()
Get the port number (getter for spPortNbr) |
int |
getSpeed()
|
boolean |
isConnected()
Indicates if the device is connected or not. |
int |
openPort()
|
int |
readBytes(byte[] b,
int start,
int max)
|
int |
readCheck()
|
void |
setBlueTooth()
|
void |
setDebugFileName(java.lang.String debugFileName)
|
void |
setFreeTextPort(java.lang.String s)
Set the "Free text port" - does not open it. |
void |
setPort(int port)
Set and open a normal port (giving the port number) |
void |
setSpeed(int speed)
|
void |
setUSB()
|
void |
startDebug()
|
abstract void |
write(byte[] b)
|
abstract void |
write(java.lang.String s)
|
void |
writeDebug(byte[] b,
int index,
int len)
|
void |
writeDebug(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String os_name
Constructor Detail |
---|
public GPSPort()
Method Detail |
---|
public boolean isConnected()
true
if the device is connected.public void setPort(int port)
port
- Port number of the port to openpublic int openPort()
public void closePort()
public void setBlueTooth()
public void setUSB()
public void setFreeTextPort(java.lang.String s)
s
- public java.lang.String getFreeTextPort()
public final void setSpeed(int speed)
public final int getSpeed()
public final int getPort()
public abstract void write(java.lang.String s)
public abstract void write(byte[] b)
public void writeDebug(java.lang.String s)
public final void writeDebug(byte[] b, int index, int len)
public int readCheck()
public int readBytes(byte[] b, int start, int max)
public final boolean debugActive()
public final void startDebug()
public final void endDebug()
public BT747Path getDebugFileName()
public final void setDebugFileName(java.lang.String debugFileName)
debugFileName
- The debugFileName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |