5.3.5. ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE¶
5.3.5.1. Name¶
LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set supported receive modes.
5.3.5.2. Synopsis¶
-
int
ioctl
(int fd, LIRC_GET_REC_MODE, __u32 rx_modes)¶
-
int
ioctl
(int fd, LIRC_SET_REC_MODE, __u32 rx_modes)¶
5.3.5.3. Arguments¶
fd
- File descriptor returned by open().
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. Use ioctl LIRC_GET_FEATURES to find out which modes the driver supports.
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.