← Documents Documentation/userspace-api/media/rc/lirc-set-rec-carrier-range.rst GitHub 원문 ↗

Linux 6.18.37 · Userspace API / Media / Remote Controller

ioctl LIRC_SET_REC_CARRIER_RANGE

수신 carrier 범위의 lower bound를 먼저 지정합니다.

Source pathDocumentation/userspace-api/media/rc/lirc-set-rec-carrier-range.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

lirc-set-rec-carrier-range.rst:1-49

범위 설정은 RANGE ioctl로 lower bound를 먼저 보내고 REC_CARRIER로 upper bound를 보내는 두 단계 ABI입니다. 원문의 Description 표현과 이어지는 호출 순서를 함께 보존했습니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: RC
3
4 .. _lirc_set_rec_carrier_range:
5
6 ********************************
7 ioctl LIRC_SET_REC_CARRIER_RANGE
8 ********************************
9
10 Name
11 ====
12
13 LIRC_SET_REC_CARRIER_RANGE - Set lower bound of the carrier used to modulate
14 IR receive.
15
16 Synopsis
17 ========
18
19 .. c:macro:: LIRC_SET_REC_CARRIER_RANGE
20
21 ``int ioctl(int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency)``
22
23 Arguments
24 =========
25
26 ``fd``
27 File descriptor returned by open().
28
29 ``frequency``
30 Frequency of the carrier that modulates PWM data, in Hz.
31
32 Description
33 ===========
34
35 This ioctl sets the upper range of carrier frequency that will be recognized
36 by the IR receiver.
37
38 .. note::
39
40 To set a range use :ref:`LIRC_SET_REC_CARRIER_RANGE
41 <LIRC_SET_REC_CARRIER_RANGE>` with the lower bound first and later call
42 :ref:`LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>` with the upper bound.
43
44 Return Value
45 ============
46
47 On success 0 is returned, on error -1 and the ``errno`` variable is set
48 appropriately. The generic error codes are described at the
49 :ref:`Generic Error Codes <gen-errors>` chapter.
50

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

이름, 선언과 인자

1-31

`LIRC_SET_REC_CARRIER_RANGE`는 IR 수신에서 인식할 modulation carrier 범위의 lower bound를 지정하는 호출입니다. `frequency`는 Hertz 단위입니다.

int ioctl(int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency);
수신 carrier range 인자
인자설명
fdopen()이 반환한 LIRC 장치 file descriptor
frequencyPWM data를 modulation하는 carrier frequency(Hz)

열린 장치와 PWM carrier frequency를 전달합니다.

.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
.. c:namespace:: RC

.. _lirc_set_rec_carrier_range:

********************************
ioctl LIRC_SET_REC_CARRIER_RANGE
********************************

Name
====

LIRC_SET_REC_CARRIER_RANGE - Set lower bound of the carrier used to modulate
IR receive.

Synopsis
========

.. c:macro:: LIRC_SET_REC_CARRIER_RANGE

``int ioctl(int fd, LIRC_SET_REC_CARRIER_RANGE, __u32 *frequency)``

Arguments
=========

``fd``
    File descriptor returned by open().

``frequency``
    Frequency of the carrier that modulates PWM data, in Hz.

범위 설정 호출 순서

32-43

원문 Description은 이 ioctl이 receiver가 인식할 carrier frequency의 upper range를 설정한다고 표현합니다. 이어지는 사용 규칙은 실제 범위를 정할 때 이 ioctl을 lower bound 값으로 먼저 호출한다고 명시합니다.

그 다음 `LIRC_SET_REC_CARRIER`를 upper bound 값으로 호출해야 합니다. 두 호출의 순서를 바꾸지 않아야 driver가 lower·upper pair를 올바르게 해석합니다.

Receive carrier 범위 지정
LIRC_CAN_SET_REC_CARRIER_RANGE feature 확인Lower bound로 LIRC_SET_REC_CARRIER_RANGE 호출Upper bound로 LIRC_SET_REC_CARRIER 호출두 호출의 반환값 확인

ABI가 정한 두 단계 호출 순서입니다.

Description
===========

This ioctl sets the upper range of carrier frequency that will be recognized
by the IR receiver.

.. note::

   To set a range use :ref:`LIRC_SET_REC_CARRIER_RANGE
   <LIRC_SET_REC_CARRIER_RANGE>` with the lower bound first and later call
   :ref:`LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>` with the upper bound.

반환값

44-49

성공하면 0, 오류이면 -1을 반환하고 `errno`를 설정합니다. 공통 오류는 Generic Error Codes 절에 정의됩니다.

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.