com.buglabs.bug.jni.base
Class BUGNavControl

java.lang.Object
  extended by com.buglabs.bug.jni.common.CharDevice
      extended by com.buglabs.bug.jni.base.BUGNavControl

public class BUGNavControl
extends CharDevice


Field Summary
static int LED_0
           
static int LED_1
           
static int LED_2
           
static int LED_3
           
 
Fields inherited from class com.buglabs.bug.jni.common.CharDevice
fd
 
Constructor Summary
BUGNavControl()
           
 
Method Summary
 int clearLEDs(int leds)
          clear base unit LEDs
 int setLEDs(int leds)
          set base unit LEDs
 
Methods inherited from class com.buglabs.bug.jni.common.CharDevice
close, getFileDescriptor, getline, ioctl, lseek, open, read, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LED_0

public static final int LED_0
See Also:
Constant Field Values

LED_1

public static final int LED_1
See Also:
Constant Field Values

LED_2

public static final int LED_2
See Also:
Constant Field Values

LED_3

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

BUGNavControl

public BUGNavControl()
Method Detail

clearLEDs

public int clearLEDs(int leds)
clear base unit LEDs

Parameters:
leds - The bitmask of which LEDs to clear. Specifically, the 4 LSBs.
Returns:
value of lower level ioctl call.

setLEDs

public int setLEDs(int leds)
set base unit LEDs

Parameters:
leds - The bitmask of which LEDs to clear. Specifically, the 4 LSBs.
Returns:
value of lower level ioctl call.