com.buglabs.bug.module.motion.pub
Interface IMotionRawFeed

All Known Implementing Classes:
MotionRawFeed

public interface IMotionRawFeed


Field Summary
static byte BMI_MOTION_DETECT_DELTA
          BMI_MOTION_DETECT_DELTA This bit indicates that the motion detector status has changed from 1 to 0 or has changed from 0 to 1.
static byte BMI_MOTION_DETECT_ENABLED
          BMI_MOTION_DETECT_ENABLED This bits is the state of the motion detector sampling and status reporting mechanism.
static byte BMI_MOTION_DETECT_LATCHED_STATUS
          BMI_MOTION_DETECT_LATCHED_STATUS This bit is the latched status of the motion sensor.
static byte BMI_MOTION_DETECT_STATUS
          BMI_MOTION_DETECT_STATUS This bit is the present status of the the motion detector status pin.
 
Method Summary
 java.io.InputStream getInputStream()
          Each byte returned by the input stream represents the status byte from the motion detector.
 

Field Detail

BMI_MOTION_DETECT_STATUS

static final byte BMI_MOTION_DETECT_STATUS
BMI_MOTION_DETECT_STATUS This bit is the present status of the the motion detector status pin. A value of 1 indicates that motion is being detected. A value of 0 indicates that motion is not being detected.

See Also:
Constant Field Values

BMI_MOTION_DETECT_LATCHED_STATUS

static final byte BMI_MOTION_DETECT_LATCHED_STATUS
BMI_MOTION_DETECT_LATCHED_STATUS This bit is the latched status of the motion sensor. This bit is set to 1 when the BMI_MOTION_DETECT_STATUS bit changes from 0 to 1. This bit will be cleared as the result of an "ioctl(BMI_MDACC_MOTION_GET_STATUS)" or a read() system call.

See Also:
Constant Field Values

BMI_MOTION_DETECT_DELTA

static final byte BMI_MOTION_DETECT_DELTA
BMI_MOTION_DETECT_DELTA This bit indicates that the motion detector status has changed from 1 to 0 or has changed from 0 to 1. This bit will be cleared as the result of an "ioctl(BMI_MDACC_MOTION_GET_STATUS)" or read() system calls.

See Also:
Constant Field Values

BMI_MOTION_DETECT_ENABLED

static final byte BMI_MOTION_DETECT_ENABLED
BMI_MOTION_DETECT_ENABLED This bits is the state of the motion detector sampling and status reporting mechanism. A value of 1 indicates that the motion detector is enabled. A value of 0 indicates that the motion detector is disabled.

See Also:
Constant Field Values
Method Detail

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Each byte returned by the input stream represents the status byte from the motion detector. Use BMI_MOTION_DETECT_STATUS, BMI_MOTION_DETECT_LATCHED_STATUS, BMI_MOTION_DETECT_DELTA and BMI_MOTION_DETECT_ENABLED to bit mask the status byte.

Throws:
java.io.IOException