ambient16 2.0.0.0
|
This file contains API for Ambient 16 Click Driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | ambient16_t |
Ambient 16 Click context object. More... | |
struct | ambient16_cfg_t |
Ambient 16 Click configuration object. More... | |
Enumerations | |
enum | ambient16_return_value_t { AMBIENT16_OK = 0 , AMBIENT16_ERROR = -1 } |
Ambient 16 Click return value data. More... | |
Functions | |
void | ambient16_cfg_setup (ambient16_cfg_t *cfg) |
Ambient 16 configuration object setup function. | |
err_t | ambient16_init (ambient16_t *ctx, ambient16_cfg_t *cfg) |
Ambient 16 initialization function. | |
err_t | ambient16_default_cfg (ambient16_t *ctx) |
Ambient 16 default configuration function. | |
err_t | ambient16_generic_write (ambient16_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Ambient 16 I2C writing function. | |
err_t | ambient16_generic_read (ambient16_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Ambient 16 I2C reading function. | |
uint8_t | ambient16_get_int_state (ambient16_t *ctx) |
Ambient 16 get INT state function. | |
err_t | ambient16_set_reg (ambient16_t *ctx, uint8_t reg, uint8_t value) |
Ambient 16 set register value function. | |
err_t | ambient16_send_cmd (ambient16_t *ctx, uint8_t cmd) |
Ambient 16 send command function. | |
err_t | ambient16_sw_reset (ambient16_t *ctx) |
Ambient 16 software reset function. | |
err_t | ambient16_int_reset (ambient16_t *ctx) |
Ambient 16 interrupt reset function. | |
err_t | ambient16_set_th_low (ambient16_t *ctx, uint16_t th_val) |
Ambient 16 set interrupt threshold lower level function. | |
err_t | ambient16_set_th_high (ambient16_t *ctx, uint16_t th_val) |
Ambient 16 set interrupt threshold upper level function. | |
err_t | ambient16_set_gain (ambient16_t *ctx, uint8_t data0_gain, uint8_t data1_gain) |
Ambient 16 set ADC gain function. | |
err_t | ambient16_get_part_id (ambient16_t *ctx, uint8_t *part_id) |
Ambient 16 get part ID function. | |
err_t | ambient16_get_data (ambient16_t *ctx, uint16_t *data0, uint16_t *data1) |
Ambient 16 get ADC data function. | |
err_t | ambient16_read_data (ambient16_t *ctx, float *data0, float *data1) |
Ambient 16 get data function. | |
void | ambient16_set_wait (ambient16_t *ctx, uint8_t wait_mode) |
Ambient 16 set wait function. | |
This file contains API for Ambient 16 Click Driver.