ambient2 2.0.0.0

Data Structures

struct  ambient2_sens_data_t
 Click sensor data definition. More...
 
struct  ambient2_t
 Click context object definition. More...
 
struct  ambient2_cfg_t
 Click configuration structure definition. More...
 

Typedefs

typedef uint16_t ambient2_data_t
 Click registers data type.
 

Enumerations

enum  ambient2_err_t { AMBIENT2_OK = 0x0 , AMBIENT2_ERR_INIT_DRV = 0xFE , AMBIENT2_ERR_UNSUPPORTED_PIN }
 Click error code definition. More...
 
enum  ambient_addr_t { AMBIENT2_I2C_ADDRESS_GND = 0x44 , AMBIENT2_I2C_ADDRESS_VDD , AMBIENT2_I2C_ADDRESS_SDA , AMBIENT2_I2C_ADDRESS_SCL }
 Click I2C address selection. More...
 
enum  ambient2_reg_addr_t {
  AMBIENT2_REG_RESULT = 0x0 , AMBIENT2_REG_CONFIGURATION , AMBIENT2_REG_LOW_LIMIT , AMBIENT2_REG_HIGH_LIMIT ,
  AMBIENT2_REG_MANUFACTURER_ID = 0x7E , AMBIENT2_REG_DEVICE_ID
}
 Click register address selection. More...
 

Detailed Description

Typedef Documentation

◆ ambient2_data_t

typedef uint16_t ambient2_data_t

Click registers data type.

Enumeration Type Documentation

◆ ambient2_err_t

Click error code definition.

Enumerator
AMBIENT2_OK 
AMBIENT2_ERR_INIT_DRV 
AMBIENT2_ERR_UNSUPPORTED_PIN 

◆ ambient2_reg_addr_t

Click register address selection.

Enumerator
AMBIENT2_REG_RESULT 
AMBIENT2_REG_CONFIGURATION 
AMBIENT2_REG_LOW_LIMIT 
AMBIENT2_REG_HIGH_LIMIT 
AMBIENT2_REG_MANUFACTURER_ID 
AMBIENT2_REG_DEVICE_ID 

◆ ambient_addr_t

Click I2C address selection.

Enumerator
AMBIENT2_I2C_ADDRESS_GND 
AMBIENT2_I2C_ADDRESS_VDD 
AMBIENT2_I2C_ADDRESS_SDA 
AMBIENT2_I2C_ADDRESS_SCL