[2/6] ds: Added ds_touch_bit(), ds_wait_status(), various changes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    Summary:
      Added ds_touch_bit(), ds_wait_status(), various changes changed.
    Revision:
      ds9490r--main--0.1--patch-2
 
    Added ds_touch_bit(), ds_wait_status().
    Changes ds_read_bit() - only ds_recv_data() and send BIT_IO, do not
enable pulse..
    ds_probe() resets configuration and sets interface 3.
    ds_read_byte() waits for status and compares read value with 0xff -
        if read value is equal to 0xff then nothing was read.
    ds_write_byte() sends control byte_io command, then waiting for the
status and then
        reads back just written value and compares it with written
value.
        If they do not match then write failed.
    ds_write_bit() sends control and waits for the status.
    ds_reset() sends 0x43 control byte and waits for the status.
    ds_recv_data() - must reveive data from ->ep[EP_DATA_IN] not from
EP_DATA_IN.
        If error occured then usb_clear_halt() this endpoint and dump
status.
     
    ds_touch_bit() - sends bit_io command and bit, then waits for the
status, then
        receives data from ep3.
    ds_wait_status() - read status without dumping it until 100 times
"good" status received.
 
    modified files:
     Makefile ds_w1_bridge.c dscore.c dscore.h
 

-- 
	Evgeniy Polaykov ( s0mbre )

Crash is better than data corruption. -- Art Grabowski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dscore.c.patch
Type: text/x-patch
Size: 9972 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040726/ba31c7f1/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dscore.h.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040726/ba31c7f1/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ds_w1_bridge.c.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040726/ba31c7f1/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040726/ba31c7f1/attachment-0003.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux