Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   brad
Date:           Thu Jan 23 19:13:19 UTC 2025

Modified Files:
        src/share/man/man4: si70xxtemp.4
        src/sys/dev/i2c: si70xx.c si70xxvar.h

Log Message:
The SI70XX temperature and humidity sensor has a set of commands that
can do the measurement by using I2C clock stretching.  Add a sysctl to
allow the driver to use those commands.  This is more efficient than
doing the usual polling method of getting the measurements back from
the chip, but only works if the I2C master supports clock stretching.

Also...  change the use of the Read without Stop with a command and
zero length read to just a Write of the command in the non-clock
stretching case.  I was confused by the datasheet when I write the
driver initially.  This allows the driver to work with more I2C
masters.

Also...  there were a couple of cases where more bytes were read on
the bus than would be sent by the chip.  Fix those.  The second part
of the serial number only has 6 bytes not 8, the firmware version has
1 byte not 8.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/si70xxtemp.4
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/si70xx.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/si70xxvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index