brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · 755d659 Raw
55 lines · plain
1Kernel driver w1_ds24232=======================3 4Supported chips:5 6  * Maxim DS2423 based counter devices.7 8supported family codes:9 10        ===============	====11	W1_THERM_DS2423	0x1D12        ===============	====13 14Author: Mika Laitio <lamikr@pilppa.org>15 16Description17-----------18 19Support is provided through the sysfs w1_slave file. Each opening and20read sequence of w1_slave file initiates the read of counters and ram21available in DS2423 pages 12 - 15.22 23Result of each page is provided as an ASCII output where each counter24value and associated ram buffer is outpputed to own line.25 26Each lines will contain the values of 42 bytes read from the counter and27memory page along the crc=YES or NO for indicating whether the read operation28was successful and CRC matched.29If the operation was successful, there is also in the end of each line30a counter value expressed as an integer after c=31 32Meaning of 42 bytes represented is following:33 34 - 1 byte from ram page35 - 4 bytes for the counter value36 - 4 zero bytes37 - 2 bytes for crc16 which was calculated from the data read since the previous crc bytes38 - 31 remaining bytes from the ram page39 - crc=YES/NO indicating whether read was ok and crc matched40 - c=<int> current counter value41 42example from the successful read::43 44  00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=245  00 02 00 00 00 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=246  00 29 c6 5d 18 00 00 00 00 04 37 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=40879876147  00 05 00 00 00 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=YES c=548 49example from the read with crc errors::50 51  00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=252  00 02 00 00 22 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO53  00 e1 61 5d 19 00 00 00 00 df 0b 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO54  00 05 00 00 20 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=NO55