proximity17 2.0.0.0
|
This file contains API for Proximity 17 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 | proximity17_t |
Proximity 17 Click context object. More... | |
struct | proximity17_cfg_t |
Proximity 17 Click configuration object. More... | |
Enumerations | |
enum | proximity17_return_value_t { PROXIMITY17_OK = 0 , PROXIMITY17_ERROR = -1 } |
Proximity 17 Click return value data. More... | |
Functions | |
void | proximity17_cfg_setup (proximity17_cfg_t *cfg) |
Proximity 17 configuration object setup function. | |
err_t | proximity17_init (proximity17_t *ctx, proximity17_cfg_t *cfg) |
Proximity 17 initialization function. | |
err_t | proximity17_default_cfg (proximity17_t *ctx) |
Proximity 17 default configuration function. | |
err_t | proximity17_generic_write (proximity17_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Proximity 17 I2C writing function. | |
err_t | proximity17_generic_read (proximity17_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Proximity 17 I2C reading function. | |
err_t | proximity17_write_register (proximity17_t *ctx, uint8_t reg, uint8_t data_in) |
Proximity 17 write register function. | |
err_t | proximity17_read_register (proximity17_t *ctx, uint8_t reg, uint8_t *data_out) |
Proximity 17 read register function. | |
err_t | proximity17_check_communication (proximity17_t *ctx) |
Proximity 17 check communication function. | |
err_t | proximity17_soft_reset (proximity17_t *ctx) |
Proximity 17 soft reset function. | |
err_t | proximity17_read_proximity (proximity17_t *ctx, uint16_t *prox_data) |
Proximity 17 read proximity function. | |
uint8_t | proximity17_get_int_pin (proximity17_t *ctx) |
Proximity 17 get int pin function. | |
This file contains API for Proximity 17 Click Driver.