blob: 20d07c2a37a58882b71eb69dc292e1249c5f666e [file] [log] [blame]
Mauro Carvalho Chehab978084b2016-07-10 23:27:31 -03001.. -*- coding: utf-8; mode: rst -*-
2
3.. _lirc_set_send_duty_cycle:
4
5******************************
6ioctl LIRC_SET_SEND_DUTY_CYCLE
7******************************
8
9Name
10====
11
12LIRC_SET_SEND_DUTY_CYCLE - Set the duty cycle of the carrier signal for
13IR transmit.
14
15Synopsis
16========
17
Mauro Carvalho Chehab15c19012016-08-19 16:59:31 -030018.. c:function:: int ioctl( int fd, LIRC_SET_SEND_DUTY_CYCLE, __u32 *duty_cycle)
19 :name: LIRC_SET_SEND_DUTY_CYCLE
Mauro Carvalho Chehab978084b2016-07-10 23:27:31 -030020
21Arguments
22=========
23
24``fd``
25 File descriptor returned by open().
26
Mauro Carvalho Chehab978084b2016-07-10 23:27:31 -030027``duty_cycle``
28 Duty cicle, describing the pulse width in percent (from 1 to 99) of
29 the total cycle. Values 0 and 100 are reserved.
30
31
32Description
33===========
34
35Get/set the duty cycle of the carrier signal for IR transmit.
36
37Currently, no special meaning is defined for 0 or 100, but this
38could be used to switch off carrier generation in the future, so
39these values should be reserved.
40
41
42Return Value
43============
44
45On success 0 is returned, on error -1 and the ``errno`` variable is set
46appropriately. The generic error codes are described at the
47:ref:`Generic Error Codes <gen-errors>` chapter.