============================================================ This directory contains the device entries for the Consumer IR Transmitter. HARDWARE The consumer IR transmitter 38 KHz output is on the lowest numbered pin on the connector (pin 2 or pin 10). The next pin (4 or 10) is driven high to indicate that an IR data packet is being transmitted. This pin normally is tied to an LED through a 180 Ohm resistor. The remaining two pins on the connector are general purpose I/O pins. DEVICE NODES The device interfaces for the IR transmitter include the input to the IR encoder as well as the direction and current value of the GPIO pins. .../irxmit This write-only node has the IR packet to send as string of ones and zeros terminated by a newline. A blank line indicates that a REPEAT IR packet should be sent. .../gpiodir The direction of the two GPIO pins as a single numeric digit followed by a newline. A value of 0 make both lines an input and a value of 3 makes both lines an output. A value of 2 make the lower numbered GPIO pin (pin 6 or pin 14) an output and a value of 1 makes the higher numbers pin (8 or 16) an output. .../gpioval The value on the GPIO pins. Write to this device node to set an output and read from it to get the current value on the pins. A read requires a round trip over the USB-serial link and may take a few milliseconds. In time critical applications you may want to use select() to wait for the data. The LSB of the return value is the value on the highest numbered pin (pin 8 or pin 16).