A class for storing Code parameters, used for transmitting codes. See your product manual for more specific API details, supported functionality, units, etc.
| PhidgetIRCodeInfo | A class for storing Code parameters, used for transmitting codes. |
| Constants | |
| IR Encodings | These are the supported encoding types for the PhidgetIR. |
| IR Code length styles | These are the supported code length styles for the PhidgetIR. |
| Variables | |
| Encoding | IR Code encoding. |
| Length | IR Code length style. |
| BitCount | IR Code bit count. |
| Gap | IR Code gap in microseconds. |
| Trail | IR Code trailing pulse in microseconds. |
| Header | IR Code header. |
| One | |
| Zero | |
| MinRepeat | Number of times to repeat the code on transmit. |
| ToggleMask | Mask of bits to toggle on each repeat. |
| Repeat | Repeat code. |
| CarrierFrequency | Carrier Frequency. |
| DutyCycle | IR LED duty cycle. |
| Functions | |
| PhidgetIRCodeInfo |
These are the supported encoding types for the PhidgetIR. These constants are used with Encoding.
| ENCODING_UNKNOWN | Unknown Encoding. |
| ENCODING_SPACE | Space Encoding. |
| ENCODING_PULSE | Pulse Encoding. |
| ENCODING_BIPHASE | BiPhase Encoding. |
| ENCODING_RC5 | RC5 Encoding. |
| ENCODING_RC6 | RC6 Encoding. |
These are the supported code length styles for the PhidgetIR. These constants are used with Length.
| CODE_LENGTH_UNKNOWN | Unknown length. |
| CODE_LENGTH_CONSTANT | Constant - the bitstream + gap length is constant. |
| CODE_LENGTH_VARIABLE | Variable - the bitstream has a variable length with a constant gap. |
public function PhidgetIRCodeInfo ( bitCount: int = 32, encoding: int = ENCODING_UNKNOWN, header: Array = null, zero: Array = null, one: Array = null, trail: int = 0, gap: int = 0, repeat: Array = null, minRepeat: int = 0, toggleMask: String = null, Length: int = CODE_LENGTH_UNKNOWN, carrierFrequency: int = 38000, dutyCycle: int = 33 )
| Creates a new PhidgetIRCodeInfo object. All arguments are optional | defaults will be filled in for any arguments left out. |
IR Code encoding.
public var Encoding: int
IR Code length style.
public var Length: int
IR Code bit count.
public var BitCount: int
IR Code gap in microseconds.
public var Gap: int
IR Code trailing pulse in microseconds.
public var Trail: int
IR Code header.
public var Header: Array
public var One: Array
public var Zero: Array
Number of times to repeat the code on transmit.
public var MinRepeat: int
Mask of bits to toggle on each repeat.
public var ToggleMask: String
Repeat code.
public var Repeat: Array
Carrier Frequency.
public var CarrierFrequency: int
IR LED duty cycle.
public var DutyCycle: int
public function PhidgetIRCodeInfo ( bitCount: int = 32, encoding: int = ENCODING_UNKNOWN, header: Array = null, zero: Array = null, one: Array = null, trail: int = 0, gap: int = 0, repeat: Array = null, minRepeat: int = 0, toggleMask: String = null, Length: int = CODE_LENGTH_UNKNOWN, carrierFrequency: int = 38000, dutyCycle: int = 33 )