|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.gps.garmin.GarminUSB
public class GarminUSB
Provides an interface between Java and a Garmin GPS connected via USB. Uses native methods to perform the USB message passing.
Constructor Summary | |
---|---|
GarminUSB()
Attempts to create a connection with a USB GPS. |
Method Summary | |
---|---|
String |
getDeviceType()
Reports the GPS device connected or error message if no connection made. |
GarminPacket |
getPacket()
Attempts to get a packet from the USB device. |
boolean |
hasConnection()
Reports whether a USB connection with the GPS has been established. |
boolean |
hasUSBLib()
Reports whether the USB library necessary for a connection is present. |
boolean |
sendPacket(GarminPacket packet)
Sends the given USB packet to the connected device. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GarminUSB()
getProductDescription()
or hasConnection()
to find connection status.
Method Detail |
---|
public boolean hasUSBLib()
public boolean hasConnection()
public String getDeviceType()
public boolean sendPacket(GarminPacket packet)
packet
- Packet to send.
public GarminPacket getPacket()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |