5.3.5. ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE¶
5.3.5.1. Name¶
LIRC_GET_REC_MODE/LIRC_GET_REC_MODE - Get/set supported receive modes.
5.3.5.3. Arguments¶
fd
- File descriptor returned by open().
request
- LIRC_GET_REC_MODE or LIRC_GET_REC_MODE
rx_modes
- Bitmask with the supported transmit modes.
5.3.5.4. Description¶
Get/set supported receive modes. Only LIRC_MODE_MODE2 and LIRC_MODE_LIRCCODE are supported for IR receive.
5.3.5.5. Return Value¶
On success 0 is returned, on error -1 and the errno
variable is set
appropriately. The generic error codes are described at the
Generic Error Codes chapter.