ambient19 2.0.0.0
|
This file contains API for Ambient 19 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 | ambient19_t |
Ambient 19 Click context object. More... | |
struct | ambient19_cfg_t |
Ambient 19 Click configuration object. More... | |
Enumerations | |
enum | ambient19_return_value_t { AMBIENT19_OK = 0 , AMBIENT19_ERROR = -1 } |
Ambient 19 Click return value data. More... | |
Functions | |
void | ambient19_cfg_setup (ambient19_cfg_t *cfg) |
Ambient 19 configuration object setup function. | |
err_t | ambient19_init (ambient19_t *ctx, ambient19_cfg_t *cfg) |
Ambient 19 initialization function. | |
err_t | ambient19_default_cfg (ambient19_t *ctx) |
Ambient 19 default configuration function. | |
err_t | ambient19_generic_write (ambient19_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Ambient 19 I2C writing function. | |
err_t | ambient19_generic_read (ambient19_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Ambient 19 I2C reading function. | |
err_t | ambient19_write_register (ambient19_t *ctx, uint8_t reg, uint8_t data_in) |
Ambient 19 write register function. | |
err_t | ambient19_read_register (ambient19_t *ctx, uint8_t reg, uint8_t *data_out) |
Ambient 19 read register function. | |
err_t | ambient19_check_communication (ambient19_t *ctx) |
Ambient 19 check communication function. | |
uint8_t | ambient19_get_int_pin (ambient19_t *ctx) |
Ambient 19 get INT pin function. | |
err_t | ambient19_clear_interrupts (ambient19_t *ctx) |
Ambient 19 clear interrupts function. | |
err_t | ambient19_set_wait_time (ambient19_t *ctx, float wait_time_ms) |
Ambient 19 set wait time function. | |
err_t | ambient19_set_als_time (ambient19_t *ctx, float als_time_ms) |
Ambient 19 set als time function. | |
err_t | ambient19_set_als_gain (ambient19_t *ctx, uint8_t als_gain) |
Ambient 19 set als gain function. | |
err_t | ambient19_read_raw_als (ambient19_t *ctx, uint16_t *ch_0, uint16_t *ch_1) |
Ambient 19 read raw als function. | |
err_t | ambient19_read_raw_proximity (ambient19_t *ctx, uint16_t *ps_data, uint16_t *ir_data) |
Ambient 19 read raw proximity function. | |
err_t | ambient19_measure_light_level (ambient19_t *ctx, uint16_t *lux) |
Ambient 19 measure light level function. | |
This file contains API for Ambient 19 Click Driver.