1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1. 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 2 .. c:namespace:: RC 2 .. c:namespace:: RC 3 3 4 .. _lirc_set_measure_carrier_mode: 4 .. _lirc_set_measure_carrier_mode: 5 5 6 *********************************** 6 *********************************** 7 ioctl LIRC_SET_MEASURE_CARRIER_MODE 7 ioctl LIRC_SET_MEASURE_CARRIER_MODE 8 *********************************** 8 *********************************** 9 9 10 Name 10 Name 11 ==== 11 ==== 12 12 13 LIRC_SET_MEASURE_CARRIER_MODE - enable or disa 13 LIRC_SET_MEASURE_CARRIER_MODE - enable or disable measure mode 14 14 15 Synopsis 15 Synopsis 16 ======== 16 ======== 17 17 18 .. c:macro:: LIRC_SET_MEASURE_CARRIER_MODE 18 .. c:macro:: LIRC_SET_MEASURE_CARRIER_MODE 19 19 20 ``int ioctl(int fd, LIRC_SET_MEASURE_CARRIER_M 20 ``int ioctl(int fd, LIRC_SET_MEASURE_CARRIER_MODE, __u32 *enable)`` 21 21 22 Arguments 22 Arguments 23 ========= 23 ========= 24 24 25 ``fd`` 25 ``fd`` 26 File descriptor returned by open(). 26 File descriptor returned by open(). 27 27 28 ``enable`` 28 ``enable`` 29 enable = 1 means enable measure mode, enab 29 enable = 1 means enable measure mode, enable = 0 means disable measure 30 mode. 30 mode. 31 31 32 Description 32 Description 33 =========== 33 =========== 34 34 35 .. _lirc-mode2-frequency: 35 .. _lirc-mode2-frequency: 36 36 37 Enable or disable measure mode. If enabled, fr 37 Enable or disable measure mode. If enabled, from the next key 38 press on, the driver will send ``LIRC_MODE2_FR 38 press on, the driver will send ``LIRC_MODE2_FREQUENCY`` packets. By 39 default this should be turned off. 39 default this should be turned off. 40 40 41 Return Value 41 Return Value 42 ============ 42 ============ 43 43 44 On success 0 is returned, on error -1 and the 44 On success 0 is returned, on error -1 and the ``errno`` variable is set 45 appropriately. The generic error codes are des 45 appropriately. The generic error codes are described at the 46 :ref:`Generic Error Codes <gen-errors>` chapte 46 :ref:`Generic Error Codes <gen-errors>` chapter.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.