SI70XXTEMP(4)
π NAME π
okay so bestie, this is si70xxtemp(4) from the Kernel Interfaces Manual β the driver for Silicon Labs SI7013/SI7020/SI7021, HTU21D and SHT21 sensor chip via I2C bus. it's giving βtiny humidity/temperature girlieβ and honestly? iconic. π
β¨ SYNOPSIS β¨
si70xxtemp* at iic? addr 0x40
π DESCRIPTION π
The si70xxtemp driver provides measurements from the SI7013/SI7020/SI7021 humidity/temperature sensors via the envsys(4) framework. no cap, that's the whole vibe. πΈ
The si70xxtemp addr locator selects the address at the iic(4) bus. The resolution, heater control and crc validity can be changed through sysctl(8) nodes. lowkey powerful. β¨
πΈ SYSCTL VARIABLES πΈ
The following sysctl(8) variables are provided:
hw.si70xxtemp0.resolutionsβ Lists the resolutions supported by the driver and chip. bestie, this is your menu of options. πhw.si70xxtemp0.resolutionβ Set the resolution, or number of bits, used for %RH and temperature. Use one of the strings listed inhw.si70xxtemp.resolutions. π«hw.si70xxtemp0.ignorecrcβ If set, the crc calculation for %RH and temperature will be ignored. do with that info what you will. π«Άhw.si70xxtemp0.vddokβ If1, the chip is getting enough power. power check: passed, slay. πhw.si70xxtemp0.heateronβ Turn the heater on and off. cozy mode: activated. π₯hw.si70xxtemp0.heaterstrengthβ From1to6, the amount of energy put into the heater. The higher the number, the more power used. it's giving dial-up but for warmth. π- Some
HTU21Dchips do not support a heater register. These chips are detected and the heater features of the driver will be disabled.
- Some
hw.si70xxtemp0.debugβ If the driver is compiled withSI70XX_DEBUG, this node will appear and can be used to set the debugging level. debug girlie era. π§hw.si70xxtemp0.readattemptsβ To read %RH or temperature the driver uses a No Hold Master command. This command needs to be sent to the device, a wait must then occur and then another read command is sent to read back the values. Depending on the resolution, and other factors, the wait time varies. The driver will attempt to read back the valuesreadattemptsnumber of times. The default is40which should be enough for most purposes. There is an initial wait of10,500microseconds followed by a additional1,000microseconds per read attempt. persistence is main character energy, fr fr. β³hw.si70xxtemp0.clockstretchβ The chip supports a set of commands that lets it use I2C clock stretching to perform the temperature or humidity measurement. If this is set to1then use the clock stretching commands with the device. Note that the I2C controller must support clock stretching in order for this to work reliability. When this option is enabled, thereadattemptssysctl noted above will not be used. iykyk, clock stretching is a whole lifestyle. π¦
π¦ SEE ALSO π¦
β HISTORY β
The si70xxtemp driver first appeared in NetBSD 8.0. vintage but still cute. π
π AUTHORS π
The si70xxtemp driver was written by Brad Spencer <brad@anduin.eldar.org>. king behavior, honestly. π
okay that's the whole page, bestie. the footer credits Debian and is dated December 28, 2017. go measure some humidity, ily π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2017 Brad Spencer <brad@anduin.eldar.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms