Changeset 1057

Show
Ignore:
Timestamp:
04/03/01 04:39:23 (8 years ago)
Author:
mds
Message:

add i2cset, simple utility to write a single location

in an i2c device, good for debugging.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r1054 r1057  
    4646                  reading changes 
    4747  Programs i2cdetect, i2cdump: add devfs /dev/i2c/x support 
     48  Program i2cset: new 
    4849  Program mkpatch.pl: Fix adm9240 typos, add more chips to Configure.help, 
    4950                      remove ltc1710 
     
    223224  Module maxilife: NEW 
    224225  Module adm1021: MAX1617A now also supported 
    225   Module adm9024: DS1780 now also supported 
     226  Module adm9240: DS1780 now also supported 
    226227  Module w83781d: W83782D and W83783S now also supported 
    227228  Program sensors-detect: NEW 
  • lm-sensors/trunk/doc/progs

    r1050 r1057  
    22`make install', and that usually can be found in the `prog' directory of 
    33this package. 
     4 
     5These programs are generally small utilities used for debugging, 
     6and installation of the lm_sensors package, and for demonstrating 
     7the use of the drivers and libraries in this package. 
     8For more elaborate programs (for example, GUI sensor displays), 
     9see useful_addresses.html. 
    410 
    511 
     
    4753 
    4854* prog/dump/i2cdump (written in C, not installed) 
    49   This program helps to dump the registers of a I2C device that understands 
     55  This program dumps the registers of a I2C device that understands 
    5056  the 'byte data' or 'word data' and block read SMBus protocols. 
    5157  Usual syntax: 
     
    5359  Here the '0' stands for the bus number (run i2cdump with no arguments  
    5460  to list all installed busses). 
    55   0x49' is the device address, and 'b' or 'w' stands for byte 
     61  '0x49' is the device address, and 'b' or 'w' stands for byte 
    5662  or word data. 
    5763 
     64* prog/dump/i2cset (written in C, not installed) 
     65  This program is used to write the register of a I2C device. 
     66  Usual syntax: 
     67    ./i2cset bus device address data 
     68 
    5869* prog/dump/isadump (written in C, not installed) 
    59   This program helps to dump the registers of LM78-like chips, or more 
    60   exactly, chips which use an I/O-port for its address and one as its 
     70  This program dumps the registers of LM78-like chips, or more 
     71  exactly, chips which use one I/O-port for its address and one as its 
    6172  data register. Usual syntax:  
    6273     ./isadump 0x295 0x296 
     
    8697* prog/rrd/sens_update_rrd (written in bash, not installed) 
    8798  This script gathers sensors data and adds it to a round robin database 
    88   (RRD). RRD is then used to display the graphed data in web pages 
     99  (RRD). RRD is then used to display the graphed data in web pages. 
     100  See prog/rrd/README for more information. 
    89101 
    90102* prog/sensord/sensord (written in C, installed by `make install-prog-sensord') 
     
    101113 
    102114* prog/tellerstats/gather.sh, tellerstats.sh (written in bash, not installed) 
    103   These scripts gather sensors data and graph the data for web pages 
     115  These scripts gather sensors data and graph the data for web pages. 
     116  See prog/tellerstats/README for more information. 
    104117 
    105118* prog/xeon/decode-xeon.pl (written in Perl, not installed) 
  • lm-sensors/trunk/prog/dump/Module.mk

    r581 r1057  
    2424# Regrettably, even 'simply expanded variables' will not put their currently 
    2525# defined value verbatim into the command-list of rules... 
    26 PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/i2cdump 
    27 PROGDUMPSOURCES := $(MODULE_DIR)/isadump.c  $(MODULE_DIR)/i2cdump.c 
     26PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/i2cdump \ 
     27                   $(MODULE_DIR)/i2cset 
     28PROGDUMPSOURCES := $(MODULE_DIR)/isadump.c  $(MODULE_DIR)/i2cdump.c \ 
     29                   $(MODULE_DIR)/i2cset.c 
    2830 
    2931# Include all dependency files. We use '.rd' to indicate this will create