com.buglabs.bug.jni.gps
Class GPS

java.lang.Object
  extended by com.buglabs.bug.jni.common.CharDevice
      extended by com.buglabs.bug.jni.gps.GPS

public class GPS
extends CharDevice


Field Summary
static int BMI_GPS_CLRBOOT
           
static int BMI_GPS_CLRRST
           
static int BMI_GPS_CLRWAKE
           
static int BMI_GPS_GLEDOFF
           
static int BMI_GPS_GLEDON
           
static int BMI_GPS_RLEDOFF
           
static int BMI_GPS_RLEDON
           
static int BMI_GPS_SETBOOT
           
static int BMI_GPS_SETRST
           
static int BMI_GPS_SETWAKE
           
 
Fields inherited from class com.buglabs.bug.jni.common.CharDevice
fd
 
Constructor Summary
GPS()
           
 
Method Summary
 int init()
          Initializes the serial port the GPS device is on.
 
Methods inherited from class com.buglabs.bug.jni.common.CharDevice
close, getFileDescriptor, getline, ioctl, lseek, open, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BMI_GPS_RLEDOFF

public static final int BMI_GPS_RLEDOFF
See Also:
Constant Field Values

BMI_GPS_RLEDON

public static final int BMI_GPS_RLEDON
See Also:
Constant Field Values

BMI_GPS_GLEDOFF

public static final int BMI_GPS_GLEDOFF
See Also:
Constant Field Values

BMI_GPS_GLEDON

public static final int BMI_GPS_GLEDON
See Also:
Constant Field Values

BMI_GPS_SETBOOT

public static final int BMI_GPS_SETBOOT
See Also:
Constant Field Values

BMI_GPS_CLRBOOT

public static final int BMI_GPS_CLRBOOT
See Also:
Constant Field Values

BMI_GPS_SETWAKE

public static final int BMI_GPS_SETWAKE
See Also:
Constant Field Values

BMI_GPS_CLRWAKE

public static final int BMI_GPS_CLRWAKE
See Also:
Constant Field Values

BMI_GPS_SETRST

public static final int BMI_GPS_SETRST
See Also:
Constant Field Values

BMI_GPS_CLRRST

public static final int BMI_GPS_CLRRST
See Also:
Constant Field Values
Constructor Detail

GPS

public GPS()
Method Detail

init

public int init()
Initializes the serial port the GPS device is on.

Parameters:
fd - the file descriptor of the GPS device
Returns: