Commit | Line | Data |
---|---|---|
2779afef MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _lirc_get_features: | |
4 | ||
5 | *********************** | |
6 | ioctl LIRC_GET_FEATURES | |
7 | *********************** | |
8 | ||
9 | Name | |
10 | ==== | |
11 | ||
12 | LIRC_GET_FEATURES - Get the underlying hardware device's features | |
13 | ||
14 | Synopsis | |
15 | ======== | |
16 | ||
17 | .. cpp:function:: int ioctl( int fd, int request, __u32 *features) | |
18 | ||
19 | Arguments | |
20 | ========= | |
21 | ||
22 | ``fd`` | |
23 | File descriptor returned by open(). | |
24 | ||
25 | ``request`` | |
26 | LIRC_GET_FEATURES | |
27 | ||
28 | ``features`` | |
29 | Bitmask with the LIRC features. | |
30 | ||
31 | ||
32 | Description | |
33 | =========== | |
34 | ||
35 | ||
36 | Get the underlying hardware device's features. If a driver does not | |
37 | announce support of certain features, calling of the corresponding ioctls | |
38 | is undefined. | |
39 | ||
40 | LIRC features | |
41 | ============= | |
42 | ||
43 | .. _LIRC_CAN_REC_RAW: | |
44 | ||
45 | ``LIRC_CAN_REC_RAW`` | |
46 | The driver is capable of receiving using | |
47 | :ref:`LIRC_MODE_RAW.` | |
48 | ||
49 | .. _LIRC_CAN_REC_PULSE: | |
50 | ||
51 | ``LIRC_CAN_REC_PULSE`` | |
52 | The driver is capable of receiving using | |
53 | :ref:`LIRC_MODE_PULSE.` | |
54 | ||
55 | .. _LIRC_CAN_REC_MODE2: | |
56 | ||
57 | ``LIRC_CAN_REC_MODE2`` | |
58 | The driver is capable of receiving using | |
59 | :ref:`LIRC_MODE_MODE2.` | |
60 | ||
61 | .. _LIRC_CAN_REC_LIRCCODE: | |
62 | ||
63 | ``LIRC_CAN_REC_LIRCCODE`` | |
64 | The driver is capable of receiving using | |
65 | :ref:`LIRC_MODE_LIRCCODE.` | |
66 | ||
67 | .. _LIRC_CAN_SET_SEND_CARRIER: | |
68 | ||
69 | ``LIRC_CAN_SET_SEND_CARRIER`` | |
70 | The driver supports changing the modulation frequency via | |
71 | :ref:`LIRC_SET_SEND_CARRIER.` | |
72 | ||
73 | .. _LIRC_CAN_SET_SEND_DUTY_CYCLE: | |
74 | ||
75 | ``LIRC_CAN_SET_SEND_DUTY_CYCLE`` | |
76 | The driver supports changing the duty cycle using | |
77 | :ref:`LIRC_SET_SEND_DUTY_CYCLE`. | |
78 | ||
79 | .. _LIRC_CAN_SET_TRANSMITTER_MASK: | |
80 | ||
81 | ``LIRC_CAN_SET_TRANSMITTER_MASK`` | |
82 | The driver supports changing the active transmitter(s) using | |
83 | :ref:`LIRC_SET_TRANSMITTER_MASK.` | |
84 | ||
85 | .. _LIRC_CAN_SET_REC_CARRIER: | |
86 | ||
87 | ``LIRC_CAN_SET_REC_CARRIER`` | |
88 | The driver supports setting the receive carrier frequency using | |
89 | :ref:`LIRC_SET_REC_CARRIER.` | |
90 | ||
91 | .. _LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE: | |
92 | ||
93 | ``LIRC_CAN_SET_REC_DUTY_CYCLE_RANGE`` | |
94 | The driver supports | |
95 | :ref:`LIRC_SET_REC_DUTY_CYCLE_RANGE.` | |
96 | ||
97 | .. _LIRC_CAN_SET_REC_CARRIER_RANGE: | |
98 | ||
99 | ``LIRC_CAN_SET_REC_CARRIER_RANGE`` | |
100 | The driver supports | |
101 | :ref:`LIRC_SET_REC_CARRIER_RANGE.` | |
102 | ||
103 | .. _LIRC_CAN_GET_REC_RESOLUTION: | |
104 | ||
105 | ``LIRC_CAN_GET_REC_RESOLUTION`` | |
106 | The driver supports | |
107 | :ref:`LIRC_GET_REC_RESOLUTION.` | |
108 | ||
109 | .. _LIRC_CAN_SET_REC_TIMEOUT: | |
110 | ||
111 | ``LIRC_CAN_SET_REC_TIMEOUT`` | |
112 | The driver supports | |
113 | :ref:`LIRC_SET_REC_TIMEOUT.` | |
114 | ||
115 | .. _LIRC_CAN_SET_REC_FILTER: | |
116 | ||
117 | ``LIRC_CAN_SET_REC_FILTER`` | |
118 | The driver supports | |
119 | :ref:`LIRC_SET_REC_FILTER.` | |
120 | ||
121 | .. _LIRC_CAN_MEASURE_CARRIER: | |
122 | ||
123 | ``LIRC_CAN_MEASURE_CARRIER`` | |
124 | The driver supports measuring of the modulation frequency using | |
125 | :ref:`LIRC_SET_MEASURE_CARRIER_MODE`. | |
126 | ||
127 | .. _LIRC_CAN_USE_WIDEBAND_RECEIVER: | |
128 | ||
129 | ``LIRC_CAN_USE_WIDEBAND_RECEIVER`` | |
130 | The driver supports learning mode using | |
131 | :ref:`LIRC_SET_WIDEBAND_RECEIVER.` | |
132 | ||
133 | .. _LIRC_CAN_NOTIFY_DECODE: | |
134 | ||
135 | ``LIRC_CAN_NOTIFY_DECODE`` | |
136 | The driver supports | |
137 | :ref:`LIRC_NOTIFY_DECODE.` | |
138 | ||
139 | .. _LIRC_CAN_SEND_RAW: | |
140 | ||
141 | ``LIRC_CAN_SEND_RAW`` | |
142 | The driver supports sending using | |
143 | :ref:`LIRC_MODE_RAW.` | |
144 | ||
145 | .. _LIRC_CAN_SEND_PULSE: | |
146 | ||
147 | ``LIRC_CAN_SEND_PULSE`` | |
148 | The driver supports sending using | |
149 | :ref:`LIRC_MODE_PULSE.` | |
150 | ||
151 | .. _LIRC_CAN_SEND_MODE2: | |
152 | ||
153 | ``LIRC_CAN_SEND_MODE2`` | |
154 | The driver supports sending using | |
155 | :ref:`LIRC_MODE_MODE2.` | |
156 | ||
157 | .. _LIRC_CAN_SEND_LIRCCODE: | |
158 | ||
159 | ``LIRC_CAN_SEND_LIRCCODE`` | |
160 | The driver supports sending codes (also called as IR blasting or IR TX). | |
161 | ||
162 | ||
163 | Return Value | |
164 | ============ | |
165 | ||
166 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
167 | appropriately. The generic error codes are described at the | |
168 | :ref:`Generic Error Codes <gen-errors>` chapter. |