capslider2 2.0.0.0
|
This file contains API for CAP SLIDER 2 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 | capslider2_t |
Click ctx object definition. More... | |
struct | capslider2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | capslider2_cfg_setup (capslider2_cfg_t *cfg) |
Config Object Initialization function. | |
CAPSLIDER2_RETVAL | capslider2_init (capslider2_t *ctx, capslider2_cfg_t *cfg) |
Initialization function. | |
void | capslider2_generic_write (capslider2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | capslider2_generic_read (capslider2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | capsldr2_write_reg (capslider2_t *ctx, uint8_t register_address, uint8_t *data_in, uint8_t n_bytes) |
Generic Write function. | |
uint8_t | capsldr2_read_reg (capslider2_t *ctx, uint8_t register_address, uint8_t *data_out, uint8_t n_bytes) |
Generic Read function. | |
uint8_t | capsldr2_check_data_ready (capslider2_t *ctx) |
Data Ready Check function. | |
uint8_t | capsldr2_enable_chann (capslider2_t *ctx, uint16_t sel_chann) |
Channel Enable function. | |
void | capsldr2_get_data (capslider2_t *ctx, uint16_t *wheel_data1, uint16_t *wheel_data2) |
Data Get function. | |
void | capsldr2_set_output (capslider2_t *ctx, uint8_t input_data, uint8_t output_mode) |
Output Set function. | |
void | capsldr2_set_threshold (capslider2_t *ctx, uint8_t thresh_value) |
Threshold Set function. | |
void | capsldr2_reset (capslider2_t *ctx) |
Reset function. | |
void | capsldr2_config (capslider2_t *ctx) |
Config function. | |
This file contains API for CAP SLIDER 2 Click driver.