captouch2
2.0.0.0
|
This file contains API for Cap Touch 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | captouch2_t |
Click ctx object definition. More... | |
struct | captouch2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | captouch2_cfg_setup (captouch2_cfg_t *cfg) |
Config Object Initialization function. More... | |
CAPTOUCH2_RETVAL | captouch2_init (captouch2_t *ctx, captouch2_cfg_t *cfg) |
Initialization function. More... | |
void | captouch2_default_cfg (captouch2_t *ctx) |
Click Default Configuration function. More... | |
void | captouch2_generic_transfer (captouch2_t *ctx, spi_master_transfer_data_t *block) |
Generic transfer function. More... | |
void | captouch2_write_reg (captouch2_t *ctx, uint8_t reg_addr, uint8_t tx_data) |
Generic Write function. More... | |
void | captouch2_read_reg (captouch2_t *ctx, uint8_t reg_addr, uint8_t *rx_data, uint8_t n_bytes) |
Generic Read function. More... | |
void | captouch2_detect_touch (captouch2_t *ctx, uint8_t *in_sens) |
Touch Detect function. More... | |
void | captouch2_set_active_mode (captouch2_t *ctx, uint8_t analog_gain, uint8_t en_input) |
Active Mode Set function. More... | |
void | captouch2_set_standby_mode (captouch2_t *ctx, uint8_t analog_gain, uint8_t en_input) |
Standby Mode Set function. More... | |
void | captouch2_set_deep_sleep_mode (captouch2_t *ctx) |
DeepSleep Mode Set function. More... | |
uint8_t | captouch2_check_interrupt (captouch2_t *ctx) |
Interrupt Check function. More... | |
void | captouch2_reset (captouch2_t *ctx) |
Reset function. More... | |
This file contains API for Cap Touch 2 Click driver.