ambient22 2.1.0.0
|
This file contains API for Ambient 22 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 | ambient22_t |
Ambient 22 Click context object. More... | |
struct | ambient22_cfg_t |
Ambient 22 Click configuration object. More... | |
Enumerations | |
enum | ambient22_return_value_t { AMBIENT22_OK = 0 , AMBIENT22_ERROR = -1 } |
Ambient 22 Click return value data. More... | |
Functions | |
void | ambient22_cfg_setup (ambient22_cfg_t *cfg) |
Ambient 22 configuration object setup function. | |
err_t | ambient22_init (ambient22_t *ctx, ambient22_cfg_t *cfg) |
Ambient 22 initialization function. | |
err_t | ambient22_default_cfg (ambient22_t *ctx) |
Ambient 22 default configuration function. | |
err_t | ambient22_write_register (ambient22_t *ctx, uint8_t reg, uint16_t data_in) |
Ambient 22 write register function. | |
err_t | ambient22_read_register (ambient22_t *ctx, uint8_t reg, uint16_t *data_out) |
Ambient 22 read register function. | |
err_t | ambient22_check_communication (ambient22_t *ctx) |
Ambient 22 check communication function. | |
err_t | ambient22_read_lux (ambient22_t *ctx, float *lux) |
Ambient 22 read lux function. | |
uint8_t | ambient22_get_int_pin (ambient22_t *ctx) |
Ambient 22 get int pin function. | |
This file contains API for Ambient 22 Click Driver.