2016-07-11 08:35:21 +07:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _lirc_get_send_mode:
|
2016-07-12 19:11:08 +07:00
|
|
|
.. _lirc_set_send_mode:
|
2016-07-11 08:35:21 +07:00
|
|
|
|
2016-07-12 19:11:08 +07:00
|
|
|
************************************************
|
|
|
|
ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE
|
|
|
|
************************************************
|
2016-07-11 08:35:21 +07:00
|
|
|
|
|
|
|
Name
|
|
|
|
====
|
|
|
|
|
2016-07-12 19:11:08 +07:00
|
|
|
LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set supported transmit mode.
|
2016-07-11 08:35:21 +07:00
|
|
|
|
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
|
|
|
.. cpp:function:: int ioctl( int fd, int request, __u32 *tx_modes )
|
|
|
|
|
|
|
|
Arguments
|
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by open().
|
|
|
|
|
|
|
|
``request``
|
|
|
|
LIRC_GET_SEND_MODE
|
|
|
|
|
|
|
|
``tx_modes``
|
|
|
|
Bitmask with the supported transmit modes.
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
2016-07-12 19:11:08 +07:00
|
|
|
Get/set supported transmit mode.
|
2016-07-11 08:35:21 +07:00
|
|
|
|
2016-07-12 19:11:08 +07:00
|
|
|
Only :ref:`LIRC_MODE_PULSE <lirc-mode-pulse>` is supported by for IR send.
|
2016-07-11 08:35:21 +07:00
|
|
|
|
|
|
|
Return Value
|
|
|
|
============
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|