ambient9 2.0.0.0
|
This file contains API for Ambient 9 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 | ambient9_t |
Click ctx object definition. More... | |
struct | ambient9_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | ambient9_cfg_setup (ambient9_cfg_t *cfg) |
Config Object Initialization function. | |
AMBIENT9_RETVAL | ambient9_init (ambient9_t *ctx, ambient9_cfg_t *cfg) |
Initialization function. | |
void | ambient9_generic_write (ambient9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | ambient9_generic_read (ambient9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | ambient9_get_int_status (ambient9_t *ctx) |
Generic function for getting int pin status. | |
uint32_t | ambient9_als_data (ambient9_t *ctx) |
Generic function for reading ALS data from sensor. | |
uint16_t | ambient9_proxy_data (ambient9_t *ctx) |
Generic function for reading proximity data from sensor. | |
void | ambient9_enable_data (ambient9_t *ctx, uint8_t als_ps) |
Function for enabeling sensor for ALS or proximity. | |
This file contains API for Ambient 9 Click driver.