proximity9 2.0.0.0
|
This file contains API for Proximity 9 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | proximity9_t |
Click ctx object definition. More... | |
struct | proximity9_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | proximity9_cfg_setup (proximity9_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY9_RETVAL | proximity9_init (proximity9_t *ctx, proximity9_cfg_t *cfg) |
Initialization function. | |
void | proximity9_default_cfg (proximity9_t *ctx) |
Click Default Configuration function. | |
void | proximity9_generic_write (proximity9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | proximity9_generic_read (proximity9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
PROXIMITY9_RETVAL | proximity9_read_register (proximity9_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Generic Read function. | |
PROXIMITY9_RETVAL | proximity9_write_register (proximity9_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Generic Write function. | |
uint8_t | proximity9_check_int_pin (proximity9_t *ctx) |
INT Pin Check function. | |
uint8_t | proximity9_check_int_flag (proximity9_t *ctx, uint8_t bit_mask) |
INT Flag Check function. | |
float | proximity9_get_als_lux (proximity9_t *ctx) |
ALS Get function. | |
This file contains API for Proximity 9 Click driver.