ambient20 2.1.0.0
|
This file contains API for Ambient 20 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 | ambient20_t |
Ambient 20 Click context object. More... | |
struct | ambient20_cfg_t |
Ambient 20 Click configuration object. More... | |
Enumerations | |
enum | ambient20_return_value_t { AMBIENT20_OK = 0 , AMBIENT20_ERROR = -1 } |
Ambient 20 Click return value data. More... | |
Functions | |
void | ambient20_cfg_setup (ambient20_cfg_t *cfg) |
Ambient 20 configuration object setup function. | |
err_t | ambient20_init (ambient20_t *ctx, ambient20_cfg_t *cfg) |
Ambient 20 initialization function. | |
err_t | ambient20_default_cfg (ambient20_t *ctx) |
Ambient 20 default configuration function. | |
err_t | ambient20_generic_write (ambient20_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Ambient 20 I2C writing function. | |
err_t | ambient20_generic_read (ambient20_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Ambient 20 I2C reading function. | |
err_t | ambient20_sw_reset (ambient20_t *ctx) |
Ambient 20 software reset function. | |
err_t | ambient20_get_manufacturer_id (ambient20_t *ctx, uint8_t *manufacturer_id) |
Ambient 20 read manufacturer id function. | |
err_t | ambient20_get_part_id (ambient20_t *ctx, uint8_t *part_id) |
Ambient 20 read part id function. | |
err_t | ambient20_enable_wait_mode (ambient20_t *ctx) |
Ambient 20 enable wait mode function. | |
err_t | ambient20_disable_wait_mode (ambient20_t *ctx) |
Ambient 20 disable wait mode function. | |
err_t | ambient20_set_meas_mode (ambient20_t *ctx, uint8_t meas_mode) |
Ambient 20 set measurement mode function. | |
err_t | ambient20_set_gain (ambient20_t *ctx, uint8_t data0_gain, uint8_t data1_gain) |
Ambient 20 set data gain function. | |
err_t | ambient20_enable_meas (ambient20_t *ctx) |
Ambient 20 enable measurements function. | |
err_t | ambient20_disable_meas (ambient20_t *ctx) |
Ambient 20 disable measurements function. | |
err_t | ambient20_check_valid (ambient20_t *ctx) |
Ambient 20 check valid bit function. | |
err_t | ambient20_read_data0 (ambient20_t *ctx, uint16_t *data0_out) |
Ambient 20 read data0 function. | |
err_t | ambient20_read_data1 (ambient20_t *ctx, uint16_t *data1_out) |
Ambient 20 read data1 function. | |
err_t | ambient20_get_data_lux (ambient20_t *ctx, float *data0_out, float *data1_out) |
Ambient 20 read light function. | |
This file contains API for Ambient 20 Click Driver.