ambient21 2.1.0.0
|
This file contains API for Ambient 21 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 | ambient21_t |
Ambient 21 Click context object. More... | |
struct | ambient21_cfg_t |
Ambient 21 Click configuration object. More... | |
Enumerations | |
enum | ambient21_return_value_t { AMBIENT21_OK = 0 , AMBIENT21_ERROR = -1 } |
Ambient 21 Click return value data. More... | |
Functions | |
void | ambient21_cfg_setup (ambient21_cfg_t *cfg) |
Ambient 21 configuration object setup function. | |
err_t | ambient21_init (ambient21_t *ctx, ambient21_cfg_t *cfg) |
Ambient 21 initialization function. | |
err_t | ambient21_default_cfg (ambient21_t *ctx) |
Ambient 21 default configuration function. | |
err_t | ambient21_generic_write (ambient21_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Ambient 21 I2C writing function. | |
err_t | ambient21_generic_read (ambient21_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Ambient 21 I2C reading function. | |
err_t | ambient21_write_register (ambient21_t *ctx, uint8_t reg, uint8_t data_in) |
Ambient 21 write register function. | |
err_t | ambient21_read_register (ambient21_t *ctx, uint8_t reg, uint8_t *data_out) |
Ambient 21 read register function. | |
err_t | ambient21_write_spec_func (ambient21_t *ctx, uint8_t spec_func) |
Ambient 21 write spec func function. | |
uint8_t | ambient21_get_int_pin (ambient21_t *ctx) |
Ambient 21 get int pin function. | |
err_t | ambient21_check_communication (ambient21_t *ctx) |
Ambient 21 check communication function. | |
err_t | ambient21_clear_interrupts (ambient21_t *ctx) |
Ambient 21 clear interrupts function. | |
err_t | ambient21_set_config (ambient21_t *ctx, uint8_t again, uint8_t atime) |
Ambient 21 set config function. | |
err_t | ambient21_read_raw_data (ambient21_t *ctx, uint16_t *ch_0, uint16_t *ch_1) |
Ambient 21 read raw data function. | |
err_t | ambient21_measure_light_level (ambient21_t *ctx, uint16_t *lux) |
Ambient 21 measure light level function. | |
This file contains API for Ambient 21 Click Driver.