5.3.5. ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE Name

LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set supported receive modes. Synopsis

int ioctl(int fd, LIRC_GET_REC_MODE, __u32 rx_modes)
int ioctl(int fd, LIRC_SET_REC_MODE, __u32 rx_modes) Arguments

File descriptor returned by open().
Bitmask with the supported transmit modes. Description

Get/set supported receive modes. Only LIRC_MODE_MODE2 and LIRC_MODE_LIRCCODE are supported for IR receive. 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.