요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
LED identity, mapping, and PWM zones
sysfs-class-led-driver-lm3533:40-73LED id, exponential·linear brightness mapping과 global·zone별 PWM input enable bit를 정의합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/class/leds/<led>/als_channel
2
Date: May 2012
3
KernelVersion: 3.5
4
Contact: Johan Hovold <[email protected]>
5
Description:
6
Set the ALS output channel to use as input in
7
ALS-current-control mode (1, 2), where:
9
== ============
10
1 out_current1
11
2 out_current2
12
== ============
14
What: /sys/class/leds/<led>/als_en
15
Date: May 2012
16
KernelVersion: 3.5
17
Contact: Johan Hovold <[email protected]>
18
Description:
19
Enable ALS-current-control mode (0, 1).
21
What: /sys/class/leds/<led>/falltime
22
What: /sys/class/leds/<led>/risetime
23
Date: April 2012
24
KernelVersion: 3.5
25
Contact: Johan Hovold <[email protected]>
26
Description:
27
Set the pattern generator fall and rise times (0..7), where:
29
== =======
30
0 2048 us
31
1 262 ms
32
2 524 ms
33
3 1.049 s
34
4 2.097 s
35
5 4.194 s
36
6 8.389 s
37
7 16.78 s
38
== =======
40
What: /sys/class/leds/<led>/id
41
Date: April 2012
42
KernelVersion: 3.5
43
Contact: Johan Hovold <[email protected]>
44
Description:
45
Get the id of this led (0..3).
47
What: /sys/class/leds/<led>/linear
48
Date: April 2012
49
KernelVersion: 3.5
50
Contact: Johan Hovold <[email protected]>
51
Description:
52
Set the brightness-mapping mode (0, 1), where:
54
== ================
55
0 exponential mode
56
1 linear mode
57
== ================
59
What: /sys/class/leds/<led>/pwm
60
Date: April 2012
61
KernelVersion: 3.5
62
Contact: Johan Hovold <[email protected]>
63
Description:
64
Set the PWM-input control mask (5 bits), where:
66
===== ===========================
67
bit 5 PWM-input enabled in Zone 4
68
bit 4 PWM-input enabled in Zone 3
69
bit 3 PWM-input enabled in Zone 2
70
bit 2 PWM-input enabled in Zone 1
71
bit 1 PWM-input enabled in Zone 0
72
bit 0 PWM-input enabled
73
===== ===========================
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
ALS current-control input channel
1-13| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/als_channel |
| Date | 2012년 5월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | ALS-current-control mode에서 input으로 사용할 ALS output channel을 1 또는 2로 설정합니다. |
값Channel
1out_current1
2out_current2
als_channel 값과 대응 output current입니다.
ALS current-control enable
14-20| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/als_en |
| Date | 2012년 5월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | 0 또는 1로 ALS-current-control mode를 enable합니다. |
Pattern generator fall time
21-21| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/falltime |
| Date | 원문에 명시되지 않음 |
| Description | Pattern generator의 fall time을 설정합니다. risetime과 같은 0-7 timing table을 사용하며 상세 값은 다음 section에 보존했습니다. |
Pattern generator rise time
22-39| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/risetime |
| Date | 2012년 4월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | Pattern generator의 fall·rise time을 0-7 값으로 설정합니다. |
값시간
02048 us
1262 ms
2524 ms
31.049 s
42.097 s
54.194 s
68.389 s
716.78 s
falltime과 risetime이 공유하는 값입니다.
LM3533 LED identifier
40-46| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/id |
| Date | 2012년 4월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | 이 LED의 id를 0-3 범위로 가져옵니다. |
Brightness mapping mode
47-58| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/linear |
| Date | 2012년 4월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | Brightness mapping mode를 설정합니다. 0은 exponential mode, 1은 linear mode입니다. |
값Mode
0Exponential
1Linear
linear 속성의 두 mapping mode입니다.
PWM input control mask
59-73| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/leds/<led>/pwm |
| Date | 2012년 4월 |
| KernelVersion | 3.5 |
| Contact | Johan Hovold <[email protected]> |
| Description | PWM-input control mask를 설정합니다. 원문은 5-bit mask라고 부르지만 bit 5부터 bit 0까지의 의미를 나열합니다. |
Bit동작
5Zone 4에서 PWM input enable
4Zone 3에서 PWM input enable
3Zone 2에서 PWM input enable
2Zone 1에서 PWM input enable
1Zone 0에서 PWM input enable
0PWM input enable
원문 bit 번호와 zone enable 의미를 그대로 보존합니다.
ALS input and pattern timing
sysfs-class-led-driver-lm3533:1-39두 ALS output current channel과 ALS control enable, pattern generator의 8단계 rise·fall timing을 제공합니다.