요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Low and high thresholds
sysfs-bus-iio-adc-hi8435:11-48저전압 임계값은 2..21 V, 고전압 임계값은 3..22 V이며 둘 사이 hysteresis는 2 이상인 짝수여야 합니다. 한 임계값 변경으로 홀수가 되면 드라이버가 반대 임계값을 1만큼 조정합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sensing_mode
Date: August 2015
KernelVersion: 4.2.0
Contact: source@cogentembedded.com
Description:
Program sensor type for threshold detector inputs.
Could be either "GND-Open" or "Supply-Open" mode. Y is a
threshold detector input channel. Channels 0..7, 8..15, 16..23
and 24..31 has common sensor types.
What: /sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_falling_value
Date: August 2015
KernelVersion: 4.2.0
Contact: source@cogentembedded.com
Description:
Channel Y low voltage threshold. If sensor input voltage goes lower then
this value then the threshold falling event is pushed.
Depending on in_voltageY_sensing_mode the low voltage threshold
is separately set for "GND-Open" and "Supply-Open" modes.
Channels 0..31 have common low threshold values, but could have different
sensing_modes.
The low voltage threshold range is between 2..21V.
Hysteresis between low and high thresholds can not be lower then 2 and
can not be odd.
If falling threshold results hysteresis to odd value then rising
threshold is automatically subtracted by one.
What: /sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_rising_value
Date: August 2015
KernelVersion: 4.2.0
Contact: source@cogentembedded.com
Description:
Channel Y high voltage threshold. If sensor input voltage goes higher then
this value then the threshold rising event is pushed.
Depending on in_voltageY_sensing_mode the high voltage threshold
is separately set for "GND-Open" and "Supply-Open" modes.
Channels 0..31 have common high threshold values, but could have different
sensing_modes.
The high voltage threshold range is between 3..22V.
Hysteresis between low and high thresholds can not be lower then 2 and
can not be odd.
If rising threshold results hysteresis to odd value then falling
threshold is automatically appended by one.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Threshold detector sensing mode
1-9/sys/bus/iio/devices/iio:deviceX/in_voltageY_sensing_mode
Date는 2015년 8월, KernelVersion은 4.2.0, Contact는 source@cogentembedded.com입니다. Threshold detector 입력의 센서 유형을 설정합니다. 모드는 "GND-Open" 또는 "Supply-Open"입니다. Y는 threshold detector 입력 채널이며 0..7, 8..15, 16..23, 24..31 채널군은 각각 공통 센서 유형을 사용합니다.
Low voltage falling threshold
11-28/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_falling_value
Date는 2015년 8월, KernelVersion은 4.2.0, Contact는 source@cogentembedded.com입니다. 채널 Y의 저전압 임계값입니다. 센서 입력 전압이 이 값보다 낮아지면 threshold falling 이벤트를 보냅니다. in_voltageY_sensing_mode에 따라 "GND-Open"과 "Supply-Open" 모드의 저전압 임계값을 따로 설정합니다.
채널 0..31은 공통 저전압 임계값을 사용하지만 sensing_mode는 서로 다를 수 있습니다. 저전압 임계값 범위는 2..21 V입니다. 낮은 임계값과 높은 임계값 사이의 hysteresis는 2보다 작을 수 없고 홀수일 수 없습니다.
Falling 임계값 때문에 hysteresis가 홀수가 되면 rising 임계값에서 자동으로 1을 뺍니다.
High voltage rising threshold
30-48/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_rising_value
Date는 2015년 8월, KernelVersion은 4.2.0, Contact는 source@cogentembedded.com입니다. 채널 Y의 고전압 임계값입니다. 센서 입력 전압이 이 값보다 높아지면 threshold rising 이벤트를 보냅니다. in_voltageY_sensing_mode에 따라 "GND-Open"과 "Supply-Open" 모드의 고전압 임계값을 따로 설정합니다.
채널 0..31은 공통 고전압 임계값을 사용하지만 sensing_mode는 서로 다를 수 있습니다. 고전압 임계값 범위는 3..22 V입니다. 낮은 임계값과 높은 임계값 사이의 hysteresis는 2보다 작을 수 없고 홀수일 수 없습니다.
Rising 임계값 때문에 hysteresis가 홀수가 되면 falling 임계값에 자동으로 1을 더합니다.
Grouped sensing modes
sysfs-bus-iio-adc-hi8435:1-9입력 채널은 8개씩 묶여 GND-Open 또는 Supply-Open 센서 유형을 공유하지만 각 채널군의 sensing mode는 다르게 설정할 수 있습니다.