ambient17
2.0.0.0
|
This file contains API for Ambient 17 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 | ambient17_t |
Ambient 17 Click context object. More... | |
struct | ambient17_cfg_t |
Ambient 17 Click configuration object. More... | |
Enumerations | |
enum | ambient17_return_value_t { AMBIENT17_OK = 0, AMBIENT17_ERROR = -1 } |
Ambient 17 Click return value data. More... | |
Functions | |
void | ambient17_cfg_setup (ambient17_cfg_t *cfg) |
Ambient 17 configuration object setup function. More... | |
err_t | ambient17_init (ambient17_t *ctx, ambient17_cfg_t *cfg) |
Ambient 17 initialization function. More... | |
err_t | ambient17_default_cfg (ambient17_t *ctx) |
Ambient 17 default configuration function. More... | |
err_t | ambient17_generic_write (ambient17_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Ambient 17 I2C writing function. More... | |
err_t | ambient17_generic_read (ambient17_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Ambient 17 I2C reading function. More... | |
err_t | ambient17_write_register (ambient17_t *ctx, uint8_t reg, uint8_t data_in) |
Ambient 17 write register function. More... | |
err_t | ambient17_read_register (ambient17_t *ctx, uint8_t reg, uint8_t *data_out) |
Ambient 17 read register function. More... | |
err_t | ambient17_check_communication (ambient17_t *ctx) |
Ambient 17 check communication function. More... | |
uint8_t | ambient17_get_int_pin (ambient17_t *ctx) |
Ambient 17 get INT pin function. More... | |
err_t | ambient17_clear_interrupts (ambient17_t *ctx) |
Ambient 17 clear interrupts function. More... | |
err_t | ambient17_set_atime (ambient17_t *ctx, float atime_ms) |
Ambient 17 set atime function. More... | |
err_t | ambient17_set_wtime (ambient17_t *ctx, float wtime_ms) |
Ambient 17 set wtime function. More... | |
err_t | ambient17_set_again (ambient17_t *ctx, uint8_t again) |
Ambient 17 set again function. More... | |
err_t | ambient17_read_raw_data (ambient17_t *ctx, uint16_t *ch_0, uint16_t *ch_1) |
Ambient 17 read raw data function. More... | |
err_t | ambient17_measure_light_level (ambient17_t *ctx, uint16_t *lux) |
Ambient 17 measure light level function. More... | |
This file contains API for Ambient 17 Click Driver.