1059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 25f536f4aSMauro Carvalho Chehab.. c:namespace:: RC 354f38fcaSMauro Carvalho Chehab 454f38fcaSMauro Carvalho Chehab.. _lirc_set_measure_carrier_mode: 554f38fcaSMauro Carvalho Chehab 654f38fcaSMauro Carvalho Chehab*********************************** 754f38fcaSMauro Carvalho Chehabioctl LIRC_SET_MEASURE_CARRIER_MODE 854f38fcaSMauro Carvalho Chehab*********************************** 954f38fcaSMauro Carvalho Chehab 1054f38fcaSMauro Carvalho ChehabName 1154f38fcaSMauro Carvalho Chehab==== 1254f38fcaSMauro Carvalho Chehab 1354f38fcaSMauro Carvalho ChehabLIRC_SET_MEASURE_CARRIER_MODE - enable or disable measure mode 1454f38fcaSMauro Carvalho Chehab 1554f38fcaSMauro Carvalho ChehabSynopsis 1654f38fcaSMauro Carvalho Chehab======== 1754f38fcaSMauro Carvalho Chehab 185f536f4aSMauro Carvalho Chehab.. c:macro:: LIRC_SET_MEASURE_CARRIER_MODE 195f536f4aSMauro Carvalho Chehab 205f536f4aSMauro Carvalho Chehab``int ioctl(int fd, LIRC_SET_MEASURE_CARRIER_MODE, __u32 *enable)`` 2154f38fcaSMauro Carvalho Chehab 2254f38fcaSMauro Carvalho ChehabArguments 2354f38fcaSMauro Carvalho Chehab========= 2454f38fcaSMauro Carvalho Chehab 2554f38fcaSMauro Carvalho Chehab``fd`` 2654f38fcaSMauro Carvalho Chehab File descriptor returned by open(). 2754f38fcaSMauro Carvalho Chehab 2854f38fcaSMauro Carvalho Chehab``enable`` 2954f38fcaSMauro Carvalho Chehab enable = 1 means enable measure mode, enable = 0 means disable measure 3054f38fcaSMauro Carvalho Chehab mode. 3154f38fcaSMauro Carvalho Chehab 3254f38fcaSMauro Carvalho ChehabDescription 3354f38fcaSMauro Carvalho Chehab=========== 3454f38fcaSMauro Carvalho Chehab 3554f38fcaSMauro Carvalho Chehab.. _lirc-mode2-frequency: 3654f38fcaSMauro Carvalho Chehab 3754f38fcaSMauro Carvalho ChehabEnable or disable measure mode. If enabled, from the next key 3854f38fcaSMauro Carvalho Chehabpress on, the driver will send ``LIRC_MODE2_FREQUENCY`` packets. By 3954f38fcaSMauro Carvalho Chehabdefault this should be turned off. 4054f38fcaSMauro Carvalho Chehab 4154f38fcaSMauro Carvalho ChehabReturn Value 4254f38fcaSMauro Carvalho Chehab============ 4354f38fcaSMauro Carvalho Chehab 4454f38fcaSMauro Carvalho ChehabOn success 0 is returned, on error -1 and the ``errno`` variable is set 4554f38fcaSMauro Carvalho Chehabappropriately. The generic error codes are described at the 4654f38fcaSMauro Carvalho Chehab:ref:`Generic Error Codes <gen-errors>` chapter. 47