1 .. -*- coding: utf-8; mode: rst -*-
3 .. _lirc_get_send_mode:
4 .. _lirc_set_send_mode:
6 ************************************************
7 ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE
8 ************************************************
13 LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set supported transmit mode.
18 .. cpp:function:: int ioctl( int fd, int request, __u32 *tx_modes )
24 File descriptor returned by open().
30 Bitmask with the supported transmit modes.
36 Get/set supported transmit mode.
38 Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` is supported by for IR send.
43 On success 0 is returned, on error -1 and the ``errno`` variable is set
44 appropriately. The generic error codes are described at the
45 :ref:`Generic Error Codes <gen-errors>` chapter.