Public Member Functions | Private Member Functions | Private Attributes
com.phidgets.IRCode Class Reference

List of all members.

Public Member Functions

int getBitCount ()
short[] getData ()
 IRCode (String code, int bitCount)
 IRCode (short[] data, int bitCount)
String toString ()

Private Member Functions

short[] HexToData (String hexString)

Private Attributes

int bitCount
short[] data
char[] hexlookup = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }

Detailed Description

This class represents an IR Code.

Author:
Phidget Inc.

Definition at line 12 of file IRCode.java.


Constructor & Destructor Documentation

com.phidgets.IRCode.IRCode ( String  code,
int  bitCount 
) [inline]

Creates a new IR Code from a string.

Parameters:
codethe IR code
bitCountthe code length in bits.

Definition at line 37 of file IRCode.java.

com.phidgets.IRCode.IRCode ( short[]  data,
int  bitCount 
) [inline]

Creates a new IR Code from a data array.

Parameters:
datathe IR code data
bitCountthe code length in bits.

Definition at line 48 of file IRCode.java.


Member Function Documentation

Data bits. This is important because many codes use a number of bits that doesn't line up with byte (8-bit) borders.

Definition at line 27 of file IRCode.java.

short [] com.phidgets.IRCode.getData ( ) [inline]

IR code data. This is MSB first, right justified. This is really an (unsigned) Byte array, so values range from 0-255. We have to use shorts because Java doesn't support unsigned types.

Definition at line 19 of file IRCode.java.

short [] com.phidgets.IRCode.HexToData ( String  hexString) [inline, private]

Definition at line 59 of file IRCode.java.

String com.phidgets.IRCode.toString ( ) [inline]

String representation of the IR code.

Definition at line 83 of file IRCode.java.


Member Data Documentation

Definition at line 23 of file IRCode.java.

short [] com.phidgets.IRCode.data [private]

Definition at line 14 of file IRCode.java.

char [] com.phidgets.IRCode.hexlookup = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' } [private]

Definition at line 79 of file IRCode.java.


The documentation for this class was generated from the following file:


pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22