← Documents Documentation/hwmon/max127.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver max127

MAX127 8채널 12비트 ADC의 네 입력 범위와 min/max 변경에 따른 LSB 자동 갱신입니다.

Source pathDocumentation/hwmon/max127.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

max127.rst:1-45

8개 아날로그 입력이 0-5 V, 0-10 V, ±5 V, ±10 V 범위를 채널별로 선택하며 한계 변경 시 ADC 범위와 LSB가 갱신됩니다.

문서 개요
항목
SourceDocumentation/hwmon/max127.rst
분량45 source lines
채널8개
해상도12비트

원문 분량과 핵심 인터페이스입니다.

운영 흐름
범위 선택min/max 쓰기LSB 갱신채널 전압 읽기

장치 연결부터 측정·경보 처리까지의 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0-or-later
2
3 Kernel driver max127
4 ====================
5
6 Author:
7
8 * Tao Ren <[email protected]>
9
10 Supported chips:
11
12 * Maxim MAX127
13
14 Prefix: 'max127'
15
16 Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf
17
18 Description
19 -----------
20
21 The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing
22 8 analog input channels that are independently software programmable for
23 a variety of ranges. The available ranges are {0,5V}, {0,10V}, {-5,5V}
24 and {-10,10V}.
25
26 The MAX127 features a 2-wire, I2C-compatible serial interface that allows
27 communication among multiple devices using SDA and SCL lines.
28
29 Sysfs interface
30 ---------------
31
32 ============== ==============================================================
33 in[0-7]_input The input voltage (in mV) of the corresponding channel.
34 RO
35
36 in[0-7]_min The lower input limit (in mV) for the corresponding channel.
37 ADC range and LSB will be updated when the limit is changed.
38 For the MAX127, it will be adjusted to -10000, -5000, or 0.
39 RW
40
41 in[0-7]_max The higher input limit (in mV) for the corresponding channel.
42 ADC range and LSB will be updated when the limit is changed.
43 For the MAX127, it will be adjusted to 0, 5000, or 10000.
44 RW
45 ============== ==============================================================
46

3. 한국어 전문 번역

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

MAX127 8채널 다중 범위 12비트 DAS

1-27

GPL-2.0-or-later 문서의 MAX127 드라이버 저자는 Tao Ren이며 Maxim MAX127을 `max127` 접두사로 지원합니다.

MAX127은 채널별로 소프트웨어 설정할 수 있는 아날로그 입력 8개를 제공하는 다중 범위 12비트 데이터 수집 시스템입니다. 범위는 `{0,5V}`, `{0,10V}`, `{-5,5V}`, `{-10,10V}`입니다.

SDA와 SCL을 사용하는 2선 I2C 호환 직렬 인터페이스로 여러 장치와 통신할 수 있습니다.

MAX127 입력 범위
범위형식
0-5 V단극성
0-10 V단극성
-5-5 V양극성
-10-10 V양극성

각 채널이 네 단극성·양극성 범위 중 하나를 선택합니다.

MAX127 채널 구성
I2C 장치 등록채널별 하한·상한 선택ADC 범위와 LSB 갱신12비트 변환값을 mV로 읽기

한계 설정이 ADC 범위와 LSB를 함께 바꿉니다.

.. SPDX-License-Identifier: GPL-2.0-or-later

Kernel driver max127
====================

Author:

  * Tao Ren <[email protected]>

Supported chips:

  * Maxim MAX127

    Prefix: 'max127'

    Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX127-MAX128.pdf

Description
-----------

The MAX127 is a multirange, 12-bit data acquisition system (DAS) providing
8 analog input channels that are independently software programmable for
a variety of ranges. The available ranges are {0,5V}, {0,10V}, {-5,5V}
and {-10,10V}.

The MAX127 features a 2-wire, I2C-compatible serial interface that allows
communication among multiple devices using SDA and SCL lines.

채널별 입력과 자동 조정 한계

28-45

`in[0-7]_input`은 각 채널의 입력 전압을 mV로 제공하는 읽기 전용 속성입니다.

`in[0-7]_min`은 읽고 쓸 수 있는 하한입니다. 변경하면 ADC 범위와 LSB가 갱신되며 MAX127에서는 `-10000`, `-5000`, `0` 중 하나로 조정됩니다.

`in[0-7]_max`도 읽고 쓸 수 있는 상한이며 범위와 LSB를 갱신합니다. 값은 `0`, `5000`, `10000` 중 하나로 조정됩니다. min/max 조합으로 앞서 설명한 네 입력 범위를 결정합니다.

MAX127 sysfs
속성접근
in0-7_inputRO입력 전압 mV
in0-7_minRW-10000 / -5000 / 0
in0-7_maxRW0 / 5000 / 10000

8개 채널의 현재값과 범위 선택 한계입니다.

MAX127 범위 선택
원하는 단극성·양극성 범위 결정채널 min 값 쓰기채널 max 값 쓰기조정된 한계 확인input을 mV로 읽기

min과 max를 쓰면 하드웨어 범위와 LSB가 동기화됩니다.


Sysfs interface
---------------

  ============== ==============================================================
  in[0-7]_input  The input voltage (in mV) of the corresponding channel.
                 RO

  in[0-7]_min    The lower input limit (in mV) for the corresponding channel.
                 ADC range and LSB will be updated when the limit is changed.
                 For the MAX127, it will be adjusted to -10000, -5000, or 0.
                 RW

  in[0-7]_max    The higher input limit (in mV) for the corresponding channel.
                 ADC range and LSB will be updated when the limit is changed.
                 For the MAX127, it will be adjusted to 0, 5000, or 10000.
                 RW
  ============== ==============================================================