EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2

Detailed Description

Si7021 error message macro definitions.

Macros

#define SI7021_ERROR_I2C_TRANSFER_FAILED   0x0002
 
#define SI7021_ERROR_I2C_TRANSFER_NACK   0x0001
 
#define SI7021_ERROR_INVALID_DEVICE_ID   0x0003
 
#define SI7021_ERROR_TIMEOUT   0x0004
 
#define SI7021_OK   0
 

Macro Definition Documentation

#define SI7021_ERROR_I2C_TRANSFER_FAILED   0x0002

I2C transaction failed

Definition at line 60 of file si7021.h.

Referenced by SI7021_cmdRead(), and SI7021_cmdWrite().

#define SI7021_ERROR_I2C_TRANSFER_NACK   0x0001

No acknowledgement received

Definition at line 59 of file si7021.h.

Referenced by SI7021_cmdRead(), SI7021_cmdWrite(), and SI7021_measure().

#define SI7021_ERROR_INVALID_DEVICE_ID   0x0003

The device ID is invalid

Definition at line 61 of file si7021.h.

Referenced by SI7021_init().

#define SI7021_ERROR_TIMEOUT   0x0004

Timeout occurred

Definition at line 62 of file si7021.h.

Referenced by SI7021_measure().

#define SI7021_OK   0

No errors

Definition at line 58 of file si7021.h.

Referenced by SI7021_cmdRead(), SI7021_cmdWrite(), SI7021_init(), and SI7021_measure().