RoboJDETM v2.0

com.ridgesoft.io
Interface IrReceiver

All Known Implementing Classes:
IntelliBrainIrReceiver

public interface IrReceiver

Interface to an infrared receiver which receives data from an infrared remote control.

Infrared receiver senses infrared light modulated at 38 kHz, which is the frequency many TV and home electronics remote controls use.

An infrared receiver can be used to:

See Also:
SonyIrRemote, Mvp1IrRemote

Method Summary
 void initialize(int startMin, int startMax, int shortMin, int threshold, int longMax, int numberOfBits, boolean invertBits, boolean reverseBits)
          Initializes the receiver.
 int read()
          Reads the next received value from the receiver if data is available.
 

Method Detail

initialize

void initialize(int startMin,
                int startMax,
                int shortMin,
                int threshold,
                int longMax,
                int numberOfBits,
                boolean invertBits,
                boolean reverseBits)
Initializes the receiver.

The infrared receiver supports infrared protocols which transmit data by transmitting a long start pulse followed by short and long data bit pulses.

Parameters:
startMin - minimum start bit time in microseconds
startMax - maximum start bit time in microseconds
shortMin - minimum short pulse duration in microseconds
threshold - duration threshold distinguishing a short pulse from a long pulse
longMax - maximum long pulse duration in microseconds
numberOfBits - number of data bits following the start bit
invertBits - true if short pulses are ones, false if short pulses are zeros
reverseBits - true if data is transmitted least significant bit first

read

int read()
Reads the next received value from the receiver if data is available. This method returns -1 if there is no data.

Returns:
next value received since the last call or -1 if no new data has been received

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com