요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/bus/iio/devices/iio:deviceX/in_proximity<id>_setup
2
Date: November 2021
3
KernelVersion: 5.17
4
Contact: Gwendal Grignou <gwendal@chromium.org>
5
Description:
6
SX9324 has 3 inputs, CS0, CS1 and CS2. Hardware layout
7
defines if the input is
9
+ not connected (HZ),
10
+ grounded (GD),
11
+ connected to an antenna where it can act as a base
12
(DS - data shield), or measured input (MI).
14
The sensor rotates measurement across 4 phases
15
(PH0, PH1, PH2, PH3), where the inputs are configured
16
and then measured.
18
By default, during the first phase, [PH0], CS0 is measured,
19
while CS1 and CS2 are used as shields.
20
`cat in_proximity0_setup` returns "MI,DS,DS".
21
[PH1], CS1 is measured, CS0 and CS2 are shield:
22
`cat in_proximity1_setup` returns "DS,MI,DS".
23
[PH2], CS2 is measured, CS0 and CS1 are shield:
24
`cat in_proximity1_setup` returns "DS,DS,MI".
25
[PH3], CS1 and CS2 are measured (combo mode):
26
`cat in_proximity1_setup` returns "DS,MI,MI".
28
Note, these are the chip default. Hardware layout will most
29
likely dictate different output. The entry is read-only.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
측정 phase별 입력 구성
1-29| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/iio:deviceX/in_proximity<id>_setup |
| Date | 2021년 11월 |
| KernelVersion | 5.17 |
| Contact | Gwendal Grignou <gwendal@chromium.org> |
| Description | SX9324에는 CS0, CS1, CS2 세 입력이 있습니다. 하드웨어 배치에 따라 각 입력은 연결되지 않음(HZ), 접지(GD), base 역할을 하는 안테나 연결(DS - data shield), 또는 측정 입력(MI)으로 구성됩니다. 센서는 입력을 구성한 뒤 측정하는 네 phase(PH0, PH1, PH2, PH3)를 순환합니다. 다음 표는 칩 기본값입니다. 실제 하드웨어 배치에서는 다른 출력이 필요할 가능성이 큽니다. 이 항목은 읽기 전용입니다. |
| Phase | 측정과 shield 구성 | 원문 명령과 반환값 |
|---|---|---|
| PH0 | CS0 측정, CS1·CS2 shield | `cat in_proximity0_setup` returns "MI,DS,DS" |
| PH1 | CS1 측정, CS0·CS2 shield | `cat in_proximity1_setup` returns "DS,MI,DS" |
| PH2 | CS2 측정, CS0·CS1 shield | `cat in_proximity1_setup` returns "DS,DS,MI" |
| PH3 | CS1·CS2 측정(combo mode) | `cat in_proximity1_setup` returns "DS,MI,MI" |
Read-only phase layout
sysfs-bus-iio-sx9324:1-29setup 문자열은 각 phase에서 세 입력이 측정 입력(MI), data shield(DS), 접지(GD), 미연결(HZ) 중 어떤 역할인지 보여 줍니다. 칩 기본값은 하드웨어 배치에 따라 달라질 수 있습니다.