ambient15 2.0.0.0
|
This file contains API for Ambient 15 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 | ambient15_t |
Ambient 15 Click context object. More... | |
struct | ambient15_cfg_t |
Ambient 15 Click configuration object. More... | |
Enumerations | |
enum | ambient15_return_value_t { AMBIENT15_OK = 0 , AMBIENT15_ERROR = -1 } |
Ambient 15 Click return value data. More... | |
Functions | |
void | ambient15_cfg_setup (ambient15_cfg_t *cfg) |
Ambient 15 configuration object setup function. | |
err_t | ambient15_init (ambient15_t *ctx, ambient15_cfg_t *cfg) |
Ambient 15 initialization function. | |
err_t | ambient15_default_cfg (ambient15_t *ctx) |
Ambient 15 default configuration function. | |
err_t | ambient15_generic_write (ambient15_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Ambient 15 I2C writing function. | |
err_t | ambient15_generic_read (ambient15_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Ambient 15 I2C reading function. | |
err_t | ambient15_write_register (ambient15_t *ctx, uint8_t reg, uint8_t data_in) |
Ambient 15 write register function. | |
err_t | ambient15_read_register (ambient15_t *ctx, uint8_t reg, uint8_t *data_out) |
Ambient 15 read register function. | |
uint8_t | ambient15_get_int_pin (ambient15_t *ctx) |
Ambient 15 get int pin function. | |
err_t | ambient15_check_communication (ambient15_t *ctx) |
Ambient 15 check communication function. | |
err_t | ambient15_set_atime (ambient15_t *ctx, float atime_ms) |
Ambient 15 set atime function. | |
err_t | ambient15_set_gain (ambient15_t *ctx, uint8_t gain) |
Ambient 15 set gain function. | |
err_t | ambient15_read_raw_data (ambient15_t *ctx, uint16_t *ch_0, uint16_t *ch_1) |
Ambient 15 read raw data function. | |
err_t | ambient15_measure_light_level (ambient15_t *ctx, uint16_t *lux) |
Ambient 15 measure light level function. | |
This file contains API for Ambient 15 Click Driver.