proximity12 2.0.0.0
|
This file contains API for Proximity 12 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 | proximity12_t |
Proximity 12 Click context object. More... | |
struct | proximity12_cfg_t |
Proximity 12 Click configuration object. More... | |
struct | proximity12_als_data_t |
Proximity 12 ALS data object. More... | |
Enumerations | |
enum | proximity12_return_value_t { PROXIMITY12_OK = 0 , PROXIMITY12_ERROR = -1 } |
Proximity 12 Click return value data. More... | |
Functions | |
void | proximity12_cfg_setup (proximity12_cfg_t *cfg) |
Proximity 12 configuration object setup function. | |
err_t | proximity12_init (proximity12_t *ctx, proximity12_cfg_t *cfg) |
Proximity 12 initialization function. | |
err_t | proximity12_default_cfg (proximity12_t *ctx) |
Proximity 12 default configuration function. | |
err_t | proximity12_generic_write (proximity12_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Proximity 12 I2C writing function. | |
err_t | proximity12_generic_read (proximity12_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Proximity 12 I2C reading function. | |
err_t | proximity12_check_device_id (proximity12_t *ctx) |
Proximity 12 check device ID function. | |
err_t | proximity12_read_proximity (proximity12_t *ctx, uint16_t *prox_data) |
Proximity 12 read proximity function. | |
err_t | proximity12_read_als (proximity12_t *ctx, proximity12_als_data_t *als) |
Proximity 12 read als data function. | |
err_t | proximity12_wait_atime (proximity12_t *ctx) |
Proximity 12 wait atime function. | |
err_t | proximity12_wait_ptime (proximity12_t *ctx) |
Proximity 12 wait ptime function. | |
err_t | proximity12_enable (proximity12_t *ctx, uint8_t en_mask) |
Proximity 12 enable function. | |
err_t | proximity12_enable_measurement (proximity12_t *ctx, uint8_t en_mask) |
Proximity 12 enable measurement function. | |
err_t | proximity12_proximity_calibration (proximity12_t *ctx) |
Proximity 12 proximity calibration function. | |
err_t | proximity12_set_proximity_filter (proximity12_t *ctx, uint8_t filter) |
Proximity 12 set proximity filter function. | |
err_t | proximity12_set_led_isink (proximity12_t *ctx, uint8_t scaler, uint8_t current) |
Proximity 12 set led isink function. | |
err_t | proximity12_set_proximity_gain (proximity12_t *ctx, uint8_t gain) |
Proximity 12 set proximity gain function. | |
err_t | proximity12_set_agc_mod_gain (proximity12_t *ctx, uint8_t en_mask, uint8_t gain) |
Proximity 12 set agc modulator gain function. | |
void | proximity12_set_syn_pin (proximity12_t *ctx, uint8_t state) |
Proximity 12 set syn pin state function. | |
void | proximity12_set_gp1_pin (proximity12_t *ctx, uint8_t state) |
Proximity 12 set gp1 pin state function. | |
void | proximity12_set_gp2_pin (proximity12_t *ctx, uint8_t state) |
Proximity 12 set gp2 pin state function. | |
uint8_t | proximity12_get_int_pin (proximity12_t *ctx) |
Proximity 12 get int pin state function. | |
This file contains API for Proximity 12 Click Driver.