capwheel 2.0.0.0
|
This file contains API for CAP WHEEL 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 | capwheel_t |
Click ctx object definition. More... | |
struct | capwheel_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | capwheel_cfg_setup (capwheel_cfg_t *cfg) |
Config Object Initialization function. | |
CAPWHEEL_RETVAL | capwheel_init (capwheel_t *ctx, capwheel_cfg_t *cfg) |
Initialization function. | |
void | capwheel_default_cfg (capwheel_t *ctx) |
Click Default Configuration function. | |
void | capwheel_generic_write (capwheel_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | capwheel_generic_read (capwheel_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | capwheel_write_reg (capwheel_t *ctx, uint8_t register_address, uint8_t *data_in, uint8_t n_bytes) |
Generic Write function. | |
uint8_t | capwheel_read_reg (capwheel_t *ctx, uint8_t register_address, uint8_t *data_out, uint8_t n_bytes) |
Generic Read function. | |
uint8_t | capwheel_check_data_ready (capwheel_t *ctx) |
Data Ready Check function. | |
uint8_t | capwheel_enable_chann (capwheel_t *ctx, uint16_t sel_chann) |
Channel Enable function. | |
void | capwheel_get_data (capwheel_t *ctx, uint16_t *wheel_data) |
Data Get function. | |
void | capwheel_set_output (capwheel_t *ctx, uint16_t input_data, uint8_t output_mode) |
Output Set function. | |
void | capwheel_set_threshold (capwheel_t *ctx, uint8_t thresh_value) |
Threshold Set function. | |
void | capwheel_reset (capwheel_t *ctx) |
Reset function. | |
This file contains API for CAP WHEEL Click driver.