Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Silicon Labs Si7021 temperature / humidity sensor driver

Sensor interface for Silicon Labs Si7021 temperature / humidity sensor. More...

Collaboration diagram for Silicon Labs Si7021 temperature / humidity sensor driver:

Macros

#define SIF_SAD_SI7021   0x40 /* Si7021 temperature / humidity sensor */
 
#define SIF_SI7021_MODE   SIF_SI7021_MODE_HOLD_MASTER
 
#define SIF_SI7021_TCONV_MAX_TEMP   10 /* temperature */
 
#define SIF_SI7021_TCONV_MAX_HUM   20 /* humidity */
 

Enumerations

enum  sif_si7021_mode { SIF_SI7021_MODE_HOLD_MASTER , SIF_SI7021_MODE_NACK_WAIT , SIF_SI7021_MODE_TCONV_WAIT }
 

Functions

u8_t SIF_SI7021_ReadTemperature (void)
 SI7021: Read Temperature. More...
 
u8_t SIF_SI7021_ReadHumidity (void)
 SI7021: Read Humidity. More...
 
void SIF_SI7021_Reset (void)
 SI7021: Soft Reset Command. More...
 
u8_t SIF_SI7021_ReadID (void)
 SI7021: Read ID byte of Electronic Serial Number. More...
 

Detailed Description

Sensor interface for Silicon Labs Si7021 temperature / humidity sensor.

Macro Definition Documentation

◆ SIF_SAD_SI7021

#define SIF_SAD_SI7021   0x40 /* Si7021 temperature / humidity sensor */

◆ SIF_SI7021_MODE

#define SIF_SI7021_MODE   SIF_SI7021_MODE_HOLD_MASTER

◆ 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 */

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ 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.