touchpad3 2.0.0.0
|
This file contains API for Touchpad 3 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 | touchpad3_t |
Touchpad 3 Click context object. More... | |
struct | touchpad3_cfg_t |
Touchpad 3 Click configuration object. More... | |
struct | touch_data_t |
struct | cmd_protocol_t |
Enumerations | |
enum | touchpad3_return_value_t { TOUCHPAD3_OK = 0 , TOUCHPAD3_ERROR = -1 } |
Touchpad 3 Click return value data. More... | |
Functions | |
void | touchpad3_cfg_setup (touchpad3_cfg_t *cfg) |
Touchpad 3 configuration object setup function. | |
err_t | touchpad3_init (touchpad3_t *ctx, touchpad3_cfg_t *cfg) |
Touchpad 3 initialization function. | |
err_t | touchpad3_default_cfg (touchpad3_t *ctx) |
Touchpad 3 default configuration function. | |
uint8_t | touchpad3_get_int (touchpad3_t *ctx) |
Touchpad 3 get interrupt function.. | |
void | touchpad3_hw_reset (touchpad3_t *ctx) |
Touchpad 3 hardware reset function. | |
void | touchpad3_generic_write (touchpad3_t *ctx, uint8_t *tx_buf, uint8_t tx_len) |
Touchpad 3 I2C writing function. | |
err_t | touchpad3_generic_read (touchpad3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Touchpad 3 I2C reading function. | |
void | touchpad3_general_configuration (touchpad3_t *ctx) |
Touchpad 3 general configuration function. | |
void | touchpad3_decoding_configuration (touchpad3_t *ctx) |
Touchpad 3 decoding configuration function. | |
void | touchpad3_sensor_mapping_configuration (touchpad3_t *ctx) |
Touchpad 3 sensor mapping configuration function. | |
uint8_t | touchpad3_get_touch (touchpad3_t *ctx, touch_data_t *tch_data, uint16_t *x_axis, uint16_t *y_axis) |
Touchpad 3 get touch data function. | |
uint8_t | touchpad3_get_gesture (touchpad3_t *ctx, touch_data_t *gst_data, uint8_t *gesture) |
Touchpad 3 get gesture data function. | |
uint8_t | touchpad3_cmd_protocol (touchpad3_t *ctx, cmd_protocol_t cmd_data, uint8_t *p_tx_data, uint8_t *p_rx_data) |
Touchpad 3 command protocol function. | |
uint8_t | touchpad3_write_reg (touchpad3_t *ctx, uint8_t index_loc, uint8_t offset_loc, uint8_t tx_data, uint8_t *p_response) |
Touchpad 3 write register data function. | |
uint8_t | touchpad3_read_reg (touchpad3_t *ctx, uint8_t index_loc, uint8_t offset_loc, uint8_t *read_data, uint8_t *p_response) |
Touchpad 3 read register data function. | |
uint8_t | touchpad3_manufacturing_test (touchpad3_t *ctx) |
Touchpad 3 manufacturing test function. | |
uint32_t | touchpad3_get_device_id (touchpad3_t *ctx) |
Touchpad 3 get device id function. | |
uint8_t | touchpad3_config_touch (touchpad3_t *ctx, uint8_t en_touch) |
Touchpad 3 configure touch function. | |
uint8_t | touchpad3_config_gesture (touchpad3_t *ctx, uint8_t en_gesture) |
Touchpad 3 configure gesture function. | |
This file contains API for Touchpad 3 Click Driver.