proximity2 2.0.0.0
|
This file contains API for Proximity 2 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | proximity2_t |
Click ctx object definition. More... | |
struct | proximity2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | proximity2_cfg_setup (proximity2_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY2_RETVAL | proximity2_init (proximity2_t *ctx, proximity2_cfg_t *cfg) |
Initialization function. | |
void | proximity2_default_cfg (proximity2_t *ctx) |
Click Default Configuration function. | |
void | proximity2_generic_write (proximity2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | proximity2_generic_read (proximity2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | proximity2_read_prox (proximity2_t *ctx) |
Read PROX Data Register function. | |
uint16_t | proximity2_read_als (proximity2_t *ctx) |
Read ALS Data Registers function. | |
uint8_t | proximity2_get_int_pin_status (proximity2_t *ctx) |
Get int pin status. | |
This file contains API for Proximity 2 Click driver.