ambient2 2.0.0.0
|
This file contains API for Ambient 2 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
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... | |
Functions | |
void | ambient2_cfg_setup (ambient2_cfg_t *cfg) |
Configuration Object Setup function. | |
ambient2_err_t | ambient2_init (ambient2_t *ctx, ambient2_cfg_t *cfg) |
Click Initialization function. | |
void | ambient2_default_cfg (ambient2_t *ctx) |
Click Default Configuration function. | |
void | ambient2_generic_write (ambient2_t *ctx, ambient2_reg_addr_t reg_addr, ambient2_data_t data_in) |
Generic Write function. | |
ambient2_data_t | ambient2_generic_read (ambient2_t *ctx, ambient2_reg_addr_t reg_addr) |
Generic Read function. | |
void | ambient2_get_sens_results (ambient2_t *ctx) |
Sensor Results Read function. | |
uint8_t | ambient2_get_int (ambient2_t *ctx) |
INT Pin Check function. | |
This file contains API for Ambient 2 Click driver.