요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0
Kernel driver sht4x
===================
Supported Chips:
* Sensirion SHT4X
Prefix: 'sht4x'
Addresses scanned: None
Datasheet:
English: https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf
Author: Navin Sankar Velliangiri <navin@linumiz.com>
Description
-----------
This driver implements support for the Sensirion SHT4x chip, a humidity
and temperature sensor. Temperature is measured in degree celsius, relative
humidity is expressed as a percentage. In sysfs interface, all values are
scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
Usage Notes
-----------
The device communicates with the I2C protocol. Sensors can have the I2C
address 0x44. See Documentation/i2c/instantiating-devices.rst for methods
to instantiate the device.
Sysfs entries
-------------
=============== ============================================
temp1_input Measured temperature in millidegrees Celsius
humidity1_input Measured humidity in %H
update_interval The minimum interval for polling the sensor,
in milliseconds. Writable. Must be at least
2000.
heater_power The requested heater power, in milliwatts.
Available values: 20, 110, 200 (default: 200).
heater_time The requested operating time of the heater,
in milliseconds.
Available values: 100, 1000 (default 1000).
heater_enable Enable the heater with the selected power
and for the selected time in order to remove
condensed water from the sensor surface. The
heater cannot be manually turned off once
enabled (it will automatically turn off
after completing its operation).
- 0: turned off (read-only value)
- 1: turn on
=============== ============================================
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Sensirion SHT4X 지원 정보
1-20GPL-2.0 라이선스의 `sht4x` 드라이버는 Sensirion SHT4X 온습도 센서를 지원합니다. 접두사는 `sht4x`이고 주소 자동 검색은 하지 않습니다. 영어 데이터시트 링크가 제공됩니다.
문서 작성자는 Navin Sankar Velliangiri입니다.
드라이버 식별과 자료 공개 상태입니다.
주소 0x44의 센서를 명시적으로 생성할 준비를 합니다.
.. SPDX-License-Identifier: GPL-2.0
Kernel driver sht4x
===================
Supported Chips:
* Sensirion SHT4X
Prefix: 'sht4x'
Addresses scanned: None
Datasheet:
English: https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf
Author: Navin Sankar Velliangiri <navin@linumiz.com>
온습도 배율과 I2C 등록
21-35SHT4X는 온도와 상대 습도를 측정합니다. 온도는 섭씨, 상대 습도는 백분율로 정의되며 sysfs에서는 모든 값이 1000배로 표시됩니다. 예를 들어 31.5°C는 `31500`입니다.
장치는 I2C 프로토콜로 통신하며 주소는 `0x44`입니다. 인스턴스 생성 방법은 `Documentation/i2c/instantiating-devices.rst`를 참고합니다.
물리량과 sysfs 스케일, 통신 주소입니다.
I2C 측정 결과를 표준 hwmon 배율로 변환합니다.
Description
-----------
This driver implements support for the Sensirion SHT4x chip, a humidity
and temperature sensor. Temperature is measured in degree celsius, relative
humidity is expressed as a percentage. In sysfs interface, all values are
scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
Usage Notes
-----------
The device communicates with the I2C protocol. Sensors can have the I2C
address 0x44. See Documentation/i2c/instantiating-devices.rst for methods
to instantiate the device.
폴링 간격과 시간 제한 히터
36-59`temp1_input`은 밀리섭씨 단위 온도, `humidity1_input`은 습도 측정값입니다. `update_interval`은 센서를 폴링하는 최소 밀리초 간격으로 쓰기 가능하며 2000 ms 이상이어야 합니다.
`heater_power`는 요청 히터 전력을 밀리와트로 설정합니다. 허용 값은 20, 110, 200 mW이고 기본값은 200 mW입니다. `heater_time`은 히터 동작 시간을 밀리초로 설정하며 100 또는 1000 ms를 사용할 수 있고 기본값은 1000 ms입니다.
`heater_enable`은 선택한 전력과 시간으로 히터를 켜 센서 표면의 응축수를 제거합니다. 한 번 켜진 히터는 수동으로 끌 수 없고 지정한 동작을 마치면 자동으로 꺼집니다. 읽을 때 0은 꺼짐 상태이고 1을 쓰면 켜집니다.
폴링과 히터의 허용 값·기본값·제약입니다.
허용 전력과 시간을 먼저 선택한 뒤 한 번의 히터 사이클을 시작합니다.
Sysfs entries
-------------
=============== ============================================
temp1_input Measured temperature in millidegrees Celsius
humidity1_input Measured humidity in %H
update_interval The minimum interval for polling the sensor,
in milliseconds. Writable. Must be at least
2000.
heater_power The requested heater power, in milliwatts.
Available values: 20, 110, 200 (default: 200).
heater_time The requested operating time of the heater,
in milliseconds.
Available values: 100, 1000 (default 1000).
heater_enable Enable the heater with the selected power
and for the selected time in order to remove
condensed water from the sensor surface. The
heater cannot be manually turned off once
enabled (it will automatically turn off
after completing its operation).
- 0: turned off (read-only value)
- 1: turn on
=============== ============================================
요약·해설
sht4x.rst:1-59주소 0x44의 센서를 2초 이상 간격으로 폴링하고 20·110·200 mW 및 100·1000 ms 조합으로 히터를 자동 종료 방식으로 가동합니다.
원문 분량과 핵심 장치 구성을 정리합니다.
장치 식별부터 측정값 확인까지의 핵심 순서입니다.