18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci.. c:namespace:: RC 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci.. _lirc_get_rec_resolution: 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci***************************** 78c2ecf20Sopenharmony_ciioctl LIRC_GET_REC_RESOLUTION 88c2ecf20Sopenharmony_ci***************************** 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciName 118c2ecf20Sopenharmony_ci==== 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciLIRC_GET_REC_RESOLUTION - Obtain the value of receive resolution, in microseconds. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciSynopsis 168c2ecf20Sopenharmony_ci======== 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci.. c:macro:: LIRC_GET_REC_RESOLUTION 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci``int ioctl(int fd, LIRC_GET_REC_RESOLUTION, __u32 *microseconds)`` 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciArguments 238c2ecf20Sopenharmony_ci========= 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci``fd`` 268c2ecf20Sopenharmony_ci File descriptor returned by open(). 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci``microseconds`` 298c2ecf20Sopenharmony_ci Resolution, in microseconds. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciDescription 328c2ecf20Sopenharmony_ci=========== 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciSome receivers have maximum resolution which is defined by internal 358c2ecf20Sopenharmony_cisample rate or data format limitations. E.g. it's common that 368c2ecf20Sopenharmony_cisignals can only be reported in 50 microsecond steps. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ciThis ioctl returns the integer value with such resolution, with can be 398c2ecf20Sopenharmony_ciused by userspace applications like lircd to automatically adjust the 408c2ecf20Sopenharmony_citolerance value. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciReturn Value 438c2ecf20Sopenharmony_ci============ 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciOn success 0 is returned, on error -1 and the ``errno`` variable is set 468c2ecf20Sopenharmony_ciappropriately. The generic error codes are described at the 478c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter. 48