← Documents Documentation/ABI/testing/sysfs-bus-iio-dac GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

IIO DAC autonomous toggle controls

IIO 전류·전압 DAC 채널에서 여러 출력 코드를 준비하고 symbol로 선택하거나 자율 토글하는 공통 ABI입니다.

Source pathDocumentation/ABI/testing/sysfs-bus-iio-dac
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Current output symbols

sysfs-bus-iio-dac:1-31

전류 출력 채널은 toggle_en으로 토글을 제어하고 rawN에 symbol별 코드를 저장합니다. symbol에 정수 N을 쓰면 대응하는 out_currentY_rawN 출력으로 전환합니다.

Voltage output symbols

sysfs-bus-iio-dac:32-61

전압 출력도 같은 방식으로 toggle_en, rawN, symbol을 사용합니다. 출력 코드를 바꿀 때는 토글을 끄고 rawN을 갱신한 뒤 다시 켜는 순서를 따릅니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/iio/devices/iio:deviceX/out_currentY_toggle_en
2 KernelVersion: 5.18
3 Contact: linux-iio@vger.kernel.org
4 Description:
5 Toggle enable. Write 1 to enable toggle or 0 to disable it. This
6 is useful when one wants to change the DAC output codes. For
7 autonomous toggling, the way it should be done is:
8
9 - disable toggle operation;
10 - change out_currentY_rawN, where N is the integer value of the symbol;
11 - enable toggle operation.
12
13 What: /sys/bus/iio/devices/iio:deviceX/out_currentY_rawN
14 KernelVersion: 5.18
15 Contact: linux-iio@vger.kernel.org
16 Description:
17 This attribute has the same meaning as out_currentY_raw. It is
18 specific to toggle enabled channels and refers to the DAC output
19 code in INPUT_N (_rawN), where N is the integer value of the symbol.
20 The same scale and offset as in out_currentY_raw applies.
21
22 What: /sys/bus/iio/devices/iio:deviceX/out_currentY_symbol
23 KernelVersion: 5.18
24 Contact: linux-iio@vger.kernel.org
25 Description:
26 Performs a SW switch to a predefined output symbol. This attribute
27 is specific to toggle enabled channels and allows switching between
28 multiple predefined symbols. Each symbol corresponds to a different
29 output, denoted as out_currentY_rawN, where N is the integer value
30 of the symbol. Writing an integer value N will select out_currentY_rawN.
31
32 What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en
33 KernelVersion: 5.18
34 Contact: linux-iio@vger.kernel.org
35 Description:
36 Toggle enable. Write 1 to enable toggle or 0 to disable it. This
37 is useful when one wants to change the DAC output codes. For
38 autonomous toggling, the way it should be done is:
39
40 - disable toggle operation;
41 - change out_voltageY_rawN, where N is the integer value of the symbol;
42 - enable toggle operation.
43
44 What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_rawN
45 KernelVersion: 5.18
46 Contact: linux-iio@vger.kernel.org
47 Description:
48 This attribute has the same meaning as out_currentY_raw. It is
49 specific to toggle enabled channels and refers to the DAC output
50 code in INPUT_N (_rawN), where N is the integer value of the symbol.
51 The same scale and offset as in out_currentY_raw applies.
52
53 What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol
54 KernelVersion: 5.18
55 Contact: linux-iio@vger.kernel.org
56 Description:
57 Performs a SW switch to a predefined output symbol. This attribute
58 is specific to toggle enabled channels and allows switching between
59 multiple predefined symbols. Each symbol corresponds to a different
60 output, denoted as out_voltageY_rawN, where N is the integer value
61 of the symbol. Writing an integer value N will select out_voltageY_rawN.
62

3. 한국어 전문 번역

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

전류 출력 토글 활성화

1-12
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_currentY_toggle_en
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description토글 활성화 속성입니다. 토글을 활성화하려면 1, 비활성화하려면 0을 씁니다. DAC 출력 코드를 바꾸려 할 때 유용합니다. 자율 토글에서는 다음 순서로 수행해야 합니다.
단계동작
1토글 동작을 비활성화합니다.
2N이 symbol의 정수 값인 out_currentY_rawN을 변경합니다.
3토글 동작을 활성화합니다.

전류 출력 symbol별 원시 코드

13-21
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_currentY_rawN
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description이 속성은 out_currentY_raw와 같은 의미입니다. 토글을 활성화한 채널에만 해당하며 INPUT_N의 DAC 출력 코드(_rawN)를 가리킵니다. 여기서 N은 symbol의 정수 값입니다. out_currentY_raw와 같은 scale 및 offset이 적용됩니다.

전류 출력 symbol 선택

22-31
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_currentY_symbol
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description미리 정의된 출력 symbol로 소프트웨어 전환을 수행합니다. 이 속성은 토글을 활성화한 채널에만 해당하며 여러 미리 정의된 symbol 사이를 전환할 수 있게 합니다. 각 symbol은 서로 다른 출력에 대응하며 out_currentY_rawN으로 표시합니다. 여기서 N은 symbol의 정수 값입니다. 정수 값 N을 쓰면 out_currentY_rawN을 선택합니다.

전압 출력 토글 활성화

32-43
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description토글 활성화 속성입니다. 토글을 활성화하려면 1, 비활성화하려면 0을 씁니다. DAC 출력 코드를 바꾸려 할 때 유용합니다. 자율 토글에서는 다음 순서로 수행해야 합니다.
단계동작
1토글 동작을 비활성화합니다.
2N이 symbol의 정수 값인 out_voltageY_rawN을 변경합니다.
3토글 동작을 활성화합니다.

전압 출력 symbol별 원시 코드

44-52
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_voltageY_rawN
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description이 속성은 원문에서 out_currentY_raw와 같은 의미라고 설명합니다. 토글을 활성화한 채널에만 해당하며 INPUT_N의 DAC 출력 코드(_rawN)를 가리킵니다. 여기서 N은 symbol의 정수 값입니다. 원문에서 out_currentY_raw와 같은 scale 및 offset이 적용된다고 명시합니다.

전압 출력 symbol 선택

53-61
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol
KernelVersion5.18
Contactlinux-iio@vger.kernel.org
Description미리 정의된 출력 symbol로 소프트웨어 전환을 수행합니다. 이 속성은 토글을 활성화한 채널에만 해당하며 여러 미리 정의된 symbol 사이를 전환할 수 있게 합니다. 각 symbol은 서로 다른 출력에 대응하며 out_voltageY_rawN으로 표시합니다. 여기서 N은 symbol의 정수 값입니다. 정수 값 N을 쓰면 out_voltageY_rawN을 선택합니다.