Sensor interface for Silicon Labs Si7021 temperature / humidity sensor.
More...
Sensor interface for Silicon Labs Si7021 temperature / humidity sensor.
◆ SIF_SAD_SI7021
#define SIF_SAD_SI7021 0x40 /* Si7021 temperature / humidity sensor */ |
◆ SIF_SI7021_MODE
◆ SIF_SI7021_TCONV_MAX_HUM
#define SIF_SI7021_TCONV_MAX_HUM 20 /* humidity */ |
◆ SIF_SI7021_TCONV_MAX_TEMP
#define SIF_SI7021_TCONV_MAX_TEMP 10 /* temperature */ |
◆ sif_si7021_mode
Enumerator |
---|
SIF_SI7021_MODE_HOLD_MASTER | |
SIF_SI7021_MODE_NACK_WAIT | SIF_SI7021_MODE_HOLD_MASTER.
|
SIF_SI7021_MODE_TCONV_WAIT | SIF_SI7021_MODE_NACK_WAIT.
|
◆ SIF_SI7021_ReadHumidity()
u8_t SIF_SI7021_ReadHumidity |
( |
void |
| ) |
|
SI7021: Read Humidity.
- Returns
- Humidity in % (0 to 100 %)
◆ SIF_SI7021_ReadID()
u8_t SIF_SI7021_ReadID |
( |
void |
| ) |
|
SI7021: Read ID byte of Electronic Serial Number.
- Returns
- Sensr ID
◆ SIF_SI7021_ReadTemperature()
u8_t SIF_SI7021_ReadTemperature |
( |
void |
| ) |
|
SI7021: Read Temperature.
- Returns
- Temperature in 'C, 1s complement (-128 to +127 'C)
◆ SIF_SI7021_Reset()
void SIF_SI7021_Reset |
( |
void |
| ) |
|
SI7021: Soft Reset Command.