Share via


Data Format

Infrared deprecation warning

Important

The Infrared driver stack is deprecated starting in Windows 10, version 1803 and should no longer be used.

The CIRClass driver exchanges IR data with CIR Port drivers in a standard format. This format is referred to as Run Length Coded (RLC) format.

In run length coding, CIR data is encoded according to the duration of a high or low signal. These durations are recording the demodulated signal (the envelope) and not the modulated signal.

Each LONG (32 bits) of the IR represents a period of time that the signal is on or a period of time that the signal is off. If the LONG is positive, the signal is on. If the LONG is negative, the signal is off. The absolute value of the LONG is the duration of time that the signal is either high or low.

Therefore, if the IR stream is high for 500 microseconds, low for 200 microseconds, and high for 150 microseconds (typically represented as "500 -200 150"), the IR buffer contains the following:

  • 0x01F4 (500 microseconds high)

  • 0xFF38 (200 microseconds low)

  • 0x0096 (150 microseconds high)

 

 

Send comments about this topic to Microsoft