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' } |
This class represents an IR Code.
Definition at line 12 of file IRCode.java.
com.phidgets.IRCode.IRCode | ( | String | code, |
int | bitCount | ||
) | [inline] |
Creates a new IR Code from a string.
code | the IR code |
bitCount | the 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.
data | the IR code data |
bitCount | the code length in bits. |
Definition at line 48 of file IRCode.java.
int com.phidgets.IRCode.getBitCount | ( | ) | [inline] |
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.
int com.phidgets.IRCode.bitCount [private] |
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.