|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.phidgets.IRCodeInfo
This class represents IR Code Properties needed for transmit.
| Field Summary | |
static int |
ENCODING_BIPHASE
BiPhase encoding. |
static int |
ENCODING_PULSE
Pulse encoding. |
static int |
ENCODING_RC5
RC5 encoding. |
static int |
ENCODING_RC6
RC6 encoding. |
static int |
ENCODING_SPACE
Space encoding. |
static int |
ENCODING_UNKNOWN
Unknown encoding. |
static int |
LENGTH_CONSTANT
Constant length. |
static int |
LENGTH_UNKNOWN
Unknown length. |
static int |
LENGTH_VARIABLE
Variable length. |
| Constructor Summary | |
IRCodeInfo(int bitCount)
Creates a new IR Code Info object. |
|
IRCodeInfo(int encoding,
int bitCount)
Creates a new IR Code Info object. |
|
IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap)
Creates a new IR Code Info object. |
|
IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap,
int[] repeat)
Creates a new IR Code Info object. |
|
IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap,
int[] repeat,
int minRepeat,
IRCode toggleMask,
int length,
int carrierFrequency,
int dutyCycle)
Creates a new IR Code Info object. |
|
| Method Summary | |
int |
getBitCount()
Returns the bit count. |
int |
getCarrierFrequency()
Returns the carrier frequency. |
int |
getDutyCycle()
Returns the duty cycle. |
int |
getEncoding()
Returns the encoding. |
int |
getGap()
Returns the gap. |
int[] |
getHeader()
Returns the header. |
int |
getLength()
Returns the length style. |
int |
getMinRepeat()
Returns the min repeat. |
int[] |
getOne()
Returns the one. |
int[] |
getRepeat()
Returns the repeat code. |
IRCode |
getToggleMask()
Returns the toggle mask. |
int |
getTrail()
Returns the trail. |
int[] |
getZero()
Returns the zero. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ENCODING_UNKNOWN
getEncoding
public static final int ENCODING_SPACE
getEncoding
public static final int ENCODING_PULSE
getEncoding
public static final int ENCODING_BIPHASE
getEncoding
public static final int ENCODING_RC5
getEncoding
public static final int ENCODING_RC6
getEncoding
public static final int LENGTH_UNKNOWN
getLength
public static final int LENGTH_CONSTANT
getLength
public static final int LENGTH_VARIABLE
getLength
| Constructor Detail |
public IRCodeInfo(int bitCount)
throws PhidgetException
bitCount - the bit count
public IRCodeInfo(int encoding,
int bitCount)
throws PhidgetException
encoding - the encoding - one of ENCODING_SPACE,
ENCODING_PULSE, ENCODING_BIPHASE,
ENCODING_RC5 or ENCODING_RC6bitCount - the bit count
public IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap)
throws PhidgetException
encoding - the encoding - one of ENCODING_SPACE,
ENCODING_PULSE, ENCODING_BIPHASE,
ENCODING_RC5 or ENCODING_RC6bitCount - the bit countheader - the header (pulse,space)zero - the zero (pulse, space)one - the one (pulse, space)trail - the trailing pulsegap - the trailing gap
public IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap,
int[] repeat)
throws PhidgetException
encoding - the encoding - one of ENCODING_SPACE,
ENCODING_PULSE, ENCODING_BIPHASE,
ENCODING_RC5 or ENCODING_RC6bitCount - the bit countheader - the header (pulse,space)zero - the zero (pulse, space)one - the one (pulse, space)trail - the trailing pulsegap - the trailing gaprepeat - the special repeat code
public IRCodeInfo(int encoding,
int bitCount,
int[] header,
int[] zero,
int[] one,
int trail,
int gap,
int[] repeat,
int minRepeat,
IRCode toggleMask,
int length,
int carrierFrequency,
int dutyCycle)
throws PhidgetException
encoding - the encoding - one of ENCODING_SPACE,
ENCODING_PULSE, ENCODING_BIPHASE,
ENCODING_RC5 or ENCODING_RC6bitCount - the bit countheader - the header (pulse,space)zero - the zero (pulse, space)one - the one (pulse, space)trail - the trailing pulsegap - the trailing gaprepeat - the special repeat codeminRepeat - the minimum number of times to repeat the codetoggleMask - the bits to toggle when minRepeat is > 1length - the length style - one of LENGTH_CONSTANT or LENGTH_VARIABLEcarrierFrequency - the carrier frequency in kHzdutyCycle - the duty cycle in percent| Method Detail |
public int getEncoding()
public int getLength()
public int getBitCount()
public int getGap()
public int getTrail()
public int getMinRepeat()
public int getCarrierFrequency()
public int getDutyCycle()
public int[] getHeader()
public int[] getZero()
public int[] getOne()
public int[] getRepeat()
public IRCode getToggleMask()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||