요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
========================
Kernel driver w1_ds28e04
========================
Supported chips:
* Maxim DS28E04-100 4096-Bit Addressable 1-Wire EEPROM with PIO
supported family codes:
================= ====
W1_FAMILY_DS28E04 0x1C
================= ====
Author: Markus Franke, <[email protected]> <[email protected]>
Description
-----------
Support is provided through the sysfs files "eeprom" and "pio". CRC checking
during memory accesses can optionally be enabled/disabled via the device
attribute "crccheck". The strong pull-up can optionally be enabled/disabled
via the module parameter "w1_strong_pullup".
Memory Access
A read operation on the "eeprom" file reads the given amount of bytes
from the EEPROM of the DS28E04.
A write operation on the "eeprom" file writes the given byte sequence
to the EEPROM of the DS28E04. If CRC checking mode is enabled only
fully aligned blocks of 32 bytes with valid CRC16 values (in bytes 30
and 31) are allowed to be written.
PIO Access
The 2 PIOs of the DS28E04-100 are accessible via the "pio" sysfs file.
The current status of the PIO's is returned as an 8 bit value. Bit 0/1
represent the state of PIO_0/PIO_1. Bits 2..7 do not care. The PIO's are
driven low-active, i.e. the driver delivers/expects low-active values.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
DS28E04-100과 설정
1-20`w1_ds28e04`은 PIO를 갖춘 Maxim DS28E04-100 4096비트 주소 지정 1-Wire EEPROM을 지원합니다. family symbol은 `W1_FAMILY_DS28E04`, 코드는 `0x1C`입니다.
sysfs의 `eeprom`과 `pio`로 기능을 제공합니다. 메모리 접근 중 CRC 확인은 `crccheck` 장치 속성으로 선택적으로 켜거나 끌 수 있고, strong pull-up은 `w1_strong_pullup` 모듈 매개변수로 제어합니다.
메모리·PIO와 선택 설정입니다.
========================
Kernel driver w1_ds28e04
========================
Supported chips:
* Maxim DS28E04-100 4096-Bit Addressable 1-Wire EEPROM with PIO
supported family codes:
================= ====
W1_FAMILY_DS28E04 0x1C
================= ====
Author: Markus Franke, <[email protected]> <[email protected]>
Description
-----------
Support is provided through the sysfs files "eeprom" and "pio". CRC checking
EEPROM 읽기와 쓰기
21-33`eeprom` 파일 읽기는 요청한 바이트 수만큼 DS28E04 EEPROM에서 가져옵니다.
`eeprom` 파일 쓰기는 주어진 바이트열을 EEPROM에 기록합니다. CRC 검사 모드가 켜져 있으면 32바이트 경계에 완전히 맞춘 블록만 허용되며, 바이트 30과 31에 올바른 CRC16 값이 있어야 합니다.
정렬과 CRC16이 모두 유효해야 기록합니다.
during memory accesses can optionally be enabled/disabled via the device
attribute "crccheck". The strong pull-up can optionally be enabled/disabled
via the module parameter "w1_strong_pullup".
Memory Access
A read operation on the "eeprom" file reads the given amount of bytes
from the EEPROM of the DS28E04.
A write operation on the "eeprom" file writes the given byte sequence
to the EEPROM of the DS28E04. If CRC checking mode is enabled only
fully aligned blocks of 32 bytes with valid CRC16 values (in bytes 30
and 31) are allowed to be written.
두 PIO의 low-active 표현
34-41DS28E04-100의 두 PIO는 `pio` sysfs 파일로 접근합니다.
현재 PIO 상태는 8비트 값으로 반환됩니다. 비트 0과 1이 각각 PIO_0과 PIO_1 상태이고 비트 2~7은 무관합니다. PIO는 low-active 방식으로 구동되므로 드라이버도 low-active 값을 반환하고 입력으로 기대합니다.
pio 파일의 비트 의미입니다.
PIO Access
The 2 PIOs of the DS28E04-100 are accessible via the "pio" sysfs file.
The current status of the PIO's is returned as an 8 bit value. Bit 0/1
represent the state of PIO_0/PIO_1. Bits 2..7 do not care. The PIO's are
driven low-active, i.e. the driver delivers/expects low-active values.
요약·해설
w1_ds28e04.rst:1-41DS28E04 EEPROM의 CRC 정렬 쓰기와 low-active PIO 접근을 설명합니다.