2016-07-11 04:33:57 +03:00
.. -*- coding: utf-8; mode: rst -*-
.. _lirc_get_features:
***** ***** ***** ***** ***
ioctl LIRC_GET_FEATURES
***** ***** ***** ***** ***
Name
====
LIRC_GET_FEATURES - Get the underlying hardware device's features
Synopsis
========
2016-08-19 22:59:31 +03:00
.. c:function :: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features)
:name: LIRC_GET_FEATURES
2016-07-11 04:33:57 +03:00
Arguments
=========
`` fd ``
File descriptor returned by open().
`` features ``
Bitmask with the LIRC features.
Description
===========
Get the underlying hardware device's features. If a driver does not
announce support of certain features, calling of the corresponding ioctls
is undefined.
LIRC features
=============
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-REC-RAW:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_REC_RAW ``
2016-07-11 17:46:57 +03:00
2016-07-12 12:12:32 +03:00
Unused. Kept just to avoid breaking uAPI.
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-REC-PULSE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_REC_PULSE ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver is capable of receiving using
2016-07-11 17:46:57 +03:00
:ref: `LIRC_MODE_PULSE <lirc-mode-pulse>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-REC-MODE2:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_REC_MODE2 ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver is capable of receiving using
2016-07-11 17:46:57 +03:00
:ref: `LIRC_MODE_MODE2 <lirc-mode-MODE2>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-REC-LIRCCODE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_REC_LIRCCODE ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver is capable of receiving using
2016-07-11 17:46:57 +03:00
:ref: `LIRC_MODE_LIRCCODE <lirc-mode-LIRCCODE>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-SEND-CARRIER:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_SEND_CARRIER ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports changing the modulation frequency via
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-SEND-DUTY-CYCLE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_SEND_DUTY_CYCLE ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports changing the duty cycle using
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-TRANSMITTER-MASK:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_TRANSMITTER_MASK ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports changing the active transmitter(s) using
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-REC-CARRIER:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_REC_CARRIER ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports setting the receive carrier frequency using
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-REC-DUTY-CYCLE-RANGE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE ``
2016-07-11 17:46:57 +03:00
2016-07-11 16:27:32 +03:00
Unused. Kept just to avoid breaking uAPI.
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-REC-CARRIER-RANGE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_REC_CARRIER_RANGE ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-GET-REC-RESOLUTION:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_GET_REC_RESOLUTION ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-REC-TIMEOUT:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_REC_TIMEOUT ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SET-REC-FILTER:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SET_REC_FILTER ``
2016-07-11 17:46:57 +03:00
2016-07-11 16:27:32 +03:00
Unused. Kept just to avoid breaking uAPI.
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-MEASURE-CARRIER:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_MEASURE_CARRIER ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports measuring of the modulation frequency using
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-USE-WIDEBAND-RECEIVER:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_USE_WIDEBAND_RECEIVER ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports learning mode using
2016-07-11 17:46:57 +03:00
:ref: `ioctl LIRC_SET_WIDEBAND_RECEIVER <LIRC_SET_WIDEBAND_RECEIVER>` .
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-NOTIFY-DECODE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_NOTIFY_DECODE ``
2016-07-11 17:46:57 +03:00
2016-07-11 16:27:32 +03:00
Unused. Kept just to avoid breaking uAPI.
2016-07-11 04:33:57 +03:00
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SEND-RAW:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SEND_RAW ``
2016-07-12 12:12:32 +03:00
Unused. Kept just to avoid breaking uAPI.
2016-07-11 17:46:57 +03:00
.. _LIRC-CAN-SEND-PULSE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SEND_PULSE ``
2016-07-11 17:46:57 +03:00
The driver supports sending using :ref: `LIRC_MODE_PULSE <lirc-mode-pulse>` .
.. _LIRC-CAN-SEND-MODE2:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SEND_MODE2 ``
2016-07-11 17:46:57 +03:00
The driver supports sending using :ref: `LIRC_MODE_MODE2 <lirc-mode-mode2>` .
.. _LIRC-CAN-SEND-LIRCCODE:
2016-07-11 04:33:57 +03:00
`` LIRC_CAN_SEND_LIRCCODE ``
2016-07-11 17:46:57 +03:00
2016-07-11 04:33:57 +03:00
The driver supports sending codes (also called as IR blasting or IR TX).
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
:ref: `Generic Error Codes <gen-errors>` chapter.