CodeInfo

Top  Previous  Next

The PhidgetIR CodeInfo structure contains all information needed to transmit a code, apart from the actual code data. Some values can be set to null to select defaults. See the product manual for more information.

 

 

Data Type

Item

Comments

bitCount

Number of bits in the code.

encoding

Encoding used to encode the data. This is an enum. Please refer to Phigets Constant -> IREncoding

length

Constant or Variable length encoding. This is an enum. Please refer to Phigets Constant -> IRLength

gap

Gap time in us.

trail

Trail time in us - can be 0 for none.

header [2]

Header pulse and space - can be 0 for none.

one [2]

Pulse and Space times to represent a '1' bit, in us.

zero [2]

Pulse and Space times to represent a '0' bit, in us.

repeat [26]

A series or pulse and space times to represent the repeat code. Start and end with pulses and null terminate. Set to 0 for none.

min_repeat

Minimum number of times to repeat a code on transmit.

toggle_mask [16]

Bit toggles, which are applied to the code after each transmit.

carrierFrequency

Carrier frequency in Hz - defaults to 38kHz.

dutyCycle

Duty Cycle in percent (10-50). Defaults to 33.