proximity13 2.0.0.0
|
This file contains API for Proximity 13 Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | proximity13_t |
Click ctx object definition. More... | |
struct | proximity13_cfg_t |
Click configuration structure definition. More... | |
struct | proximity13_config_t |
Structure for configurating device. More... | |
struct | proximity13_chn_val_t |
Structure for reading values of channels. More... | |
Functions | |
void | proximity13_cfg_setup (proximity13_cfg_t *cfg) |
Config Object Initialization function. | |
PROXIMITY13_RETVAL | proximity13_init (proximity13_t *ctx, proximity13_cfg_t *cfg) |
Initialization function. | |
void | proximity13_default_cfg (proximity13_t *ctx) |
Click Default Configuration function. | |
void | proximity13_generic_write (proximity13_t *ctx, uint8_t reg_adr, uint8_t write_data) |
Generic write function. | |
uint8_t | proximity13_generic_read (proximity13_t *ctx, uint8_t reg_adr) |
Generic read function. | |
uint8_t | proximity13_get_int_pin_status (proximity13_t *ctx) |
Checks status of int pin. | |
uint8_t | proximity13_send_command (proximity13_t *ctx, uint8_t cmd_val) |
Sends command to command register. | |
uint8_t | proximity13_set_parameter (proximity13_t *ctx, uint8_t param, uint8_t cmd_val) |
Sets parameter. | |
uint8_t | porximity13_config_channel (proximity13_t *ctx, uint8_t chn_num, proximity13_config_t cfg_val) |
Configuration of channel. | |
uint8_t | porximity13_check_id (proximity13_t *ctx) |
Checks id of the device. | |
void | proximity13_read_channels (proximity13_t *ctx, proximity13_chn_val_t *chn_val) |
Reads all enabled channels. | |
This file contains API for Proximity 13 Click driver.