com.buglabs.bug.module.motion
Class MotionRawFeed

java.lang.Object
  extended by com.buglabs.bug.module.motion.MotionRawFeed
All Implemented Interfaces:
IMotionRawFeed

public class MotionRawFeed
extends java.lang.Object
implements IMotionRawFeed


Field Summary
 
Fields inherited from interface com.buglabs.bug.module.motion.pub.IMotionRawFeed
BMI_MOTION_DETECT_DELTA, BMI_MOTION_DETECT_ENABLED, BMI_MOTION_DETECT_LATCHED_STATUS, BMI_MOTION_DETECT_STATUS
 
Constructor Summary
MotionRawFeed(java.io.InputStream is)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Each byte returned by the input stream represents the status byte from the motion detector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionRawFeed

public MotionRawFeed(java.io.InputStream is)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: IMotionRawFeed
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.

Specified by:
getInputStream in interface IMotionRawFeed
Throws:
java.io.IOException