6.5.5. ioctls LIRC_GET_REC_MODE and LIRC_SET_REC_MODE¶
6.5.5.1. Name¶
LIRC_GET_REC_MODE/LIRC_SET_REC_MODE - Get/set current receive mode.
6.5.5.2. Synopsis¶
-
LIRC_GET_REC_MODE¶
int ioctl(int fd, LIRC_GET_REC_MODE, __u32 *mode)
-
LIRC_SET_REC_MODE¶
int ioctl(int fd, LIRC_SET_REC_MODE, __u32 *mode)
6.5.5.3. Arguments¶
fd
File descriptor returned by open().
mode
Mode used for receive.
6.5.5.4. Description¶
Get and set the current receive mode. Only LIRC_MODE_MODE2 and LIRC_MODE_SCANCODE are supported. Use ioctl LIRC_GET_FEATURES to find out which modes the driver supports.
6.5.5.5. Return Value¶
|
Device not available. |
|
Device does not support receiving. |
|
Invalid mode or invalid mode for this device. |