1059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
254f38fcaSMauro Carvalho Chehab
354f38fcaSMauro Carvalho Chehab.. _lirc_set_measure_carrier_mode:
454f38fcaSMauro Carvalho Chehab
554f38fcaSMauro Carvalho Chehab***********************************
654f38fcaSMauro Carvalho Chehabioctl LIRC_SET_MEASURE_CARRIER_MODE
754f38fcaSMauro Carvalho Chehab***********************************
854f38fcaSMauro Carvalho Chehab
954f38fcaSMauro Carvalho ChehabName
1054f38fcaSMauro Carvalho Chehab====
1154f38fcaSMauro Carvalho Chehab
1254f38fcaSMauro Carvalho ChehabLIRC_SET_MEASURE_CARRIER_MODE - enable or disable measure mode
1354f38fcaSMauro Carvalho Chehab
1454f38fcaSMauro Carvalho ChehabSynopsis
1554f38fcaSMauro Carvalho Chehab========
1654f38fcaSMauro Carvalho Chehab
1754f38fcaSMauro Carvalho Chehab.. c:function:: int ioctl( int fd, LIRC_SET_MEASURE_CARRIER_MODE, __u32 *enable )
1854f38fcaSMauro Carvalho Chehab    :name: LIRC_SET_MEASURE_CARRIER_MODE
1954f38fcaSMauro Carvalho Chehab
2054f38fcaSMauro Carvalho ChehabArguments
2154f38fcaSMauro Carvalho Chehab=========
2254f38fcaSMauro Carvalho Chehab
2354f38fcaSMauro Carvalho Chehab``fd``
2454f38fcaSMauro Carvalho Chehab    File descriptor returned by open().
2554f38fcaSMauro Carvalho Chehab
2654f38fcaSMauro Carvalho Chehab``enable``
2754f38fcaSMauro Carvalho Chehab    enable = 1 means enable measure mode, enable = 0 means disable measure
2854f38fcaSMauro Carvalho Chehab    mode.
2954f38fcaSMauro Carvalho Chehab
3054f38fcaSMauro Carvalho Chehab
3154f38fcaSMauro Carvalho ChehabDescription
3254f38fcaSMauro Carvalho Chehab===========
3354f38fcaSMauro Carvalho Chehab
3454f38fcaSMauro Carvalho Chehab.. _lirc-mode2-frequency:
3554f38fcaSMauro Carvalho Chehab
3654f38fcaSMauro Carvalho ChehabEnable or disable measure mode. If enabled, from the next key
3754f38fcaSMauro Carvalho Chehabpress on, the driver will send ``LIRC_MODE2_FREQUENCY`` packets. By
3854f38fcaSMauro Carvalho Chehabdefault this should be turned off.
3954f38fcaSMauro Carvalho Chehab
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