요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
PWM channel export lifecycle
sysfs-class-pwm:26-480부터 npwm-1까지 channel을 export·unexport하고 pwmX control directory를 생성합니다.
PWM signal configuration
sysfs-class-pwm:50-79Nanosecond period·duty cycle, normal·inversed polarity와 binary enable을 설정합니다.
PWM signal capture
sysfs-class-pwm:81-88Captured period와 duty cycle을 single space로 구분한 unsigned integer pair로 반환합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/pwm/
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
The pwm/ class sub-directory belongs to the Generic PWM
Framework and provides a sysfs interface for using PWM
channels.
What: /sys/class/pwm/pwmchip<N>/
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
A /sys/class/pwm/pwmchipN directory is created for each
probed PWM controller/chip where N is the base of the
PWM chip.
What: /sys/class/pwm/pwmchip<N>/npwm
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
The number of PWM channels supported by the PWM chip.
What: /sys/class/pwm/pwmchip<N>/export
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Exports a PWM channel from the PWM chip for sysfs control.
Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.
What: /sys/class/pwm/pwmchip<N>/unexport
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Unexports a PWM channel.
What: /sys/class/pwm/pwmchip<N>/pwmX
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
A /sys/class/pwm/pwmchipN/pwmX directory is created for
each exported PWM channel where X is the exported PWM
channel number.
What: /sys/class/pwm/pwmchip<N>/pwmX/period
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Sets the PWM signal period in nanoseconds.
What: /sys/class/pwm/pwmchip<N>/pwmX/duty_cycle
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Sets the PWM signal duty cycle in nanoseconds.
What: /sys/class/pwm/pwmchip<N>/pwmX/polarity
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Sets the output polarity of the PWM signal to "normal" or
"inversed".
What: /sys/class/pwm/pwmchip<N>/pwmX/enable
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <[email protected]>
Description:
Enable/disable the PWM signal.
0 is disabled
1 is enabled
What: /sys/class/pwm/pwmchip<N>/pwmX/capture
Date: June 2016
KernelVersion: 4.8
Contact: Lee Jones <[email protected]>
Description:
Capture information about a PWM signal. The output format is a
pair unsigned integers (period and duty cycle), separated by a
single space.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Generic PWM Framework class
1-8| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/ |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | pwm/ class subdirectory는 Generic PWM Framework에 속하며 PWM channel 사용을 위한 sysfs interface를 제공합니다. |
Probed PWM controller
10-17| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/ |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | Probe된 각 PWM controller 또는 chip마다 /sys/class/pwm/pwmchipN directory를 생성합니다. N은 PWM chip의 base입니다. |
Supported PWM channel count
19-24| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/npwm |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM chip이 지원하는 PWM channel 수입니다. |
Export a PWM channel
26-32| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/export |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM chip의 channel을 sysfs control 대상으로 export합니다. 값은 0부터 /sys/class/pwm/pwmchipN/npwm - 1 사이입니다. |
Unexport a PWM channel
34-39| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/unexport |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM channel의 export를 해제합니다. |
Exported PWM channel directory
41-48| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | Export한 각 PWM channel마다 /sys/class/pwm/pwmchipN/pwmX directory를 생성합니다. X는 export한 PWM channel 번호입니다. |
Chip channel index를 export하면 pwmX control directory가 나타납니다.
PWM signal period
50-55| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX/period |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM signal period를 nanosecond 단위로 설정합니다. |
PWM signal duty cycle
57-62| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX/duty_cycle |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM signal duty cycle을 nanosecond 단위로 설정합니다. |
PWM output polarity
64-70| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX/polarity |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM signal output polarity를 "normal" 또는 "inversed"로 설정합니다. |
PWM signal enable
72-79| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX/enable |
| Date | 2013년 5월 |
| KernelVersion | 3.11 |
| Contact | H Hartley Sweeten <[email protected]> |
| Description | PWM signal을 enable 또는 disable합니다. 0은 disabled, 1은 enabled입니다. |
Exported pwmX channel의 waveform configuration입니다.
Captured PWM period and duty cycle
81-88| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/pwm/pwmchip<N>/pwmX/capture |
| Date | 2016년 6월 |
| KernelVersion | 4.8 |
| Contact | Lee Jones <[email protected]> |
| Description | PWM signal 정보를 capture합니다. Output은 period와 duty cycle의 unsigned integer pair이며 single space로 구분합니다. |
<period> <duty_cycle>
Single-space-separated pair의 field 순서입니다.
PWM class and controller
sysfs-class-pwm:1-24Generic PWM Framework class, probed chip instance와 supported channel 수를 제공합니다.