← Documents Documentation/w1/slaves/w1_ds28e04.rst GitHub 원문 ↗

Linux 6.18.37 · 1-Wire / Slave

Kernel driver w1_ds28e04

DS28E04 EEPROM의 CRC 정렬 쓰기와 low-active PIO 접근을 설명합니다.

Source pathDocumentation/w1/slaves/w1_ds28e04.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

w1_ds28e04.rst:1-41

DS28E04 EEPROM의 CRC 정렬 쓰기와 low-active PIO 접근을 설명합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 ========================
2 Kernel driver w1_ds28e04
3 ========================
4
5 Supported chips:
6
7 * Maxim DS28E04-100 4096-Bit Addressable 1-Wire EEPROM with PIO
8
9 supported family codes:
10
11 ================= ====
12 W1_FAMILY_DS28E04 0x1C
13 ================= ====
14
15 Author: Markus Franke, <[email protected]> <[email protected]>
16
17 Description
18 -----------
19
20 Support is provided through the sysfs files "eeprom" and "pio". CRC checking
21 during memory accesses can optionally be enabled/disabled via the device
22 attribute "crccheck". The strong pull-up can optionally be enabled/disabled
23 via the module parameter "w1_strong_pullup".
24
25 Memory Access
26
27 A read operation on the "eeprom" file reads the given amount of bytes
28 from the EEPROM of the DS28E04.
29
30 A write operation on the "eeprom" file writes the given byte sequence
31 to the EEPROM of the DS28E04. If CRC checking mode is enabled only
32 fully aligned blocks of 32 bytes with valid CRC16 values (in bytes 30
33 and 31) are allowed to be written.
34
35 PIO Access
36
37 The 2 PIOs of the DS28E04-100 are accessible via the "pio" sysfs file.
38
39 The current status of the PIO's is returned as an 8 bit value. Bit 0/1
40 represent the state of PIO_0/PIO_1. Bits 2..7 do not care. The PIO's are
41 driven low-active, i.e. the driver delivers/expects low-active values.
42

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` 모듈 매개변수로 제어합니다.

DS28E04 인터페이스
이름역할
eeprom4096비트 EEPROM 읽기·쓰기
pio두 PIO 상태 접근
crccheck메모리 접근 CRC 검사
w1_strong_pullupstrong pull-up 설정

메모리·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 값이 있어야 합니다.

CRC 검사 모드의 EEPROM 쓰기
32바이트 블록 준비블록 경계 정렬 확인바이트 30·31의 CRC16 확인검증 성공 시 EEPROM 기록

정렬과 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-41

DS28E04-100의 두 PIO는 `pio` sysfs 파일로 접근합니다.

현재 PIO 상태는 8비트 값으로 반환됩니다. 비트 0과 1이 각각 PIO_0과 PIO_1 상태이고 비트 2~7은 무관합니다. PIO는 low-active 방식으로 구동되므로 드라이버도 low-active 값을 반환하고 입력으로 기대합니다.

DS28E04 PIO 값
비트의미
0PIO_0 상태, low-active
1PIO_1 상태, low-active
2~7무관

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.