BMX280THP(4) | Device Drivers Manual | BMX280THP(4) |
bmx280thp
— Driver
for Bosch BMP280/BME280 sensor chip via I2C bus
bmx280thp* at iic? addr 0x76
bmx280thp* at iic? addr 0x77
bmx280thp* at spi? slave 0
bmx280thp* at spi? slave 1
The bmx280thp
driver provides measurements
from the BMP280 and BME280 temperature, humidity and barometric pressure
sensors via the envsys(4)
framework. The bmx280thp
addr
argument selects the address at the
iic(4) bus and the
bmx280thp
slave argument
selects which chip select will be used on the
spi(4) bus. The precision of the
measurement which is related to the over sampling performed on the
measurement can be changed through
sysctl(8) nodes.
The following sysctl(3) variables are provided:
hw.bmx280thp0.osrs_t
hw.bmx280thp0.osrs_p
hw.bmx280thp0.osrs_h
hw.bmx280thp0.irr_samples
hw.bmx280thp0.waitfactor.t
hw.bmx280thp0.waitfactor.p
hw.bmx280thp0.waitfactor.h
hw.bmx280thp0.debug
hw.bmx280thp0.dump_calibration
BMX280_DEBUG
, these
nodes will appear and can be used to set the debugging level and provide
the calibration constants, upon refresh, that are stored in the chip.
Since the constants are fixed, this is a boolean node and will reset back
to false once one dump has been performed.hw.bmx280thp0.readattempts
The bmx280thp
driver first appeared in
NetBSD 10.0.
The bmx280thp
driver was written by
Brad Spencer
<brad@anduin.eldar.org>.
The driver does not support the continuous read mode that the BMP280 and BME280 has.
November 19, 2022 | NetBSD 10.99 |