SHT3XTEMP(4) | Device Drivers Manual | SHT3XTEMP(4) |
sht3xtemp
— Driver
for Sensirion SHT30/SHT31/SHT35 sensor chip via I2C bus
sht3xtemp* at iic? addr 0x44
sht3xtemp* at iic? addr 0x45
The sht3xtemp
driver provides measurements
from the SHT30/SHT31/SHT35 humidity/temperature sensors via the
envsys(4) framework. The
sht3xtemp
addr locator selects
the address at the iic(4) bus.
The mode of operation, repeatability, heater controls, periodic update rate
and CRC validity can be changed through
sysctl(8) nodes.
The following sysctl(8) variables are provided:
hw.sht3xtemp0.modes
hw.sht3xtemp0.mode
hw.sht3xtemp.modes
.hw.sht3xtemp0.rates
hw.sht3xtemp0.rate
hw.sht3xtemp.rates
.
Since it is possible to have subsecond periodic updates from the chip if so desired a device file is provided that can be used to get the raw temperature and humidity values outside of the envsys(4) framework. The structure of this output is the raw temperature plus an 8-bit CRC followed by the raw humidity plus an 8-bit CRC.
hw.sht3xtemp0.repeatabilities
hw.sht3xtemp0.repeatability
hw.sht3xtemp.repeatabilities
.hw.sht3xtemp0.ignorecrc
hw.sht3xtemp0.heateron
hw.sht3xtemp0.debug
SHT3X_DEBUG
, this
node will appear and can be used to set the debugging level.hw.sht3xtemp0.readattempts
hw.sht3xtemp0.clockstretch
The sht3xtemp
driver first appeared in
NetBSD 10.0.
The sht3xtemp
driver was written by
Brad Spencer
<brad@anduin.eldar.org>.
The datasheet did not provide enough information to get the alarm function of the chip working.
October 31, 2021 | NetBSD 10.99 |