Driver for the SHT21 temperature and relative humidity sensor.
More...
#include "dev/i2c.h"
#include "dev/sht21.h"
#include "lib/sensors.h"
Go to the source code of this file.
|
|
#define | SHT21_ADDRESS (0x40) |
|
|
#define | SHT21_USER_REG_READ (0xE7) |
|
#define | SHT21_USER_REG_WRITE (0xE6) |
|
#define | SHT21_USER_REG_RESERVED_BITS (0x38) |
|
#define | SHT21_TEMPERATURE_HM_CMD (0xE3) |
|
#define | SHT21_HUMIDITY_HM_CMD (0xE5) |
|
#define | SHT21_TEMPERATURE_NHM_CMD (0xF3) |
|
#define | SHT21_HUMIDITY_NHM_CMD (0xF5) |
|
#define | SHT21_RESET_CMD (0xFE) |
|
#define | SHT21_STATUS_MASK (0xFC) |
|
#define | SHT21_RESOLUTION_12b_14b ((0 << 7) | (0 << 0)) |
|
#define | SHT21_RESOLUTION_8b_12b ((0 << 7) | (1 << 0)) |
|
#define | SHT21_RESOLUTION_10b_13b ((1 << 7) | (0 << 0)) |
|
#define | SHT21_RESOLUTION_11b_11b ((1 << 7) | (1 << 0)) |
|
#define | SHT21_BATTERY_ABOVE_2V25 (0 << 6) |
|
#define | SHT21_BATTERY_BELOW_2V25 (1 << 6) |
|
#define | SHT21_ONCHIP_HEATER_ENABLE (1 << 2) |
|
#define | SHT21_ONCHIP_HEATER_DISABLE (0 << 2) |
|
#define | SHT21_OTP_RELOAD_ENABLE (0 << 1) |
|
#define | SHT21_OTP_RELOAD_DISABLE (1 << 1) |
|
|
#define | SHT21_DEFAULT_CONFIG |
|
#define | SHT21_USER_CONFIG |
|
Driver for the SHT21 temperature and relative humidity sensor.
- Author
- Pere Tuset peret.nosp@m.uset.nosp@m.@open.nosp@m.mote.nosp@m..com
Definition in file sht21.c.