ambient8 2.0.0.0
|
This file contains API for Ambient 8 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | ambient8_t |
Click ctx object definition. More... | |
struct | ambient8_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | ambient8_cfg_setup (ambient8_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT8_RETVAL | ambient8_init (ambient8_t *ctx, ambient8_cfg_t *cfg) |
Initialization function. | |
void | ambient8_set_register (ambient8_t *ctx, uint8_t *write_buf, uint8_t n_bytes) |
Writing to device registers. | |
void | ambient8_get_register (ambient8_t *ctx, uint8_t reg_addr, uint8_t *data_buf, uint8_t n_bytes) |
Reading register value(s). | |
void | ambient8_set_constants (ambient8_t *ctx) |
Setting constants for lux level calculation. | |
AMBIENT8_RETVAL | ambient8_get_als_data (ambient8_t *ctx, uint16_t *als_data_ch1, uint16_t *als_data_ch0) |
Reading ALS data. | |
AMBIENT8_RETVAL | ambient8_get_lux_level (ambient8_t *ctx, float *lux_level, float window_factor, float IR_factor) |
Calculating lux level. | |
This file contains API for Ambient 8 Click driver.