touchpad2 2.0.0.0
|
This file contains API for TouchPad 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 | touchpad2_t |
TouchPad 2 Click context object. More... | |
struct | touchpad2_cfg_t |
TouchPad 2 Click configuration object. More... | |
struct | touchpad2_ver_info_t |
TouchPad 2 device version information object. More... | |
struct | touchpad2_touch_t |
TouchPad 2 XY data object. More... | |
struct | touchpad2_channel_setup_t |
TouchPad Channel Setup object. More... | |
Enumerations | |
enum | touchpad2_return_value_t { TOUCHPAD2_OK = 0 , TOUCHPAD2_ERROR = -1 } |
TouchPad 2 Click return value data. More... | |
Functions | |
void | touchpad2_cfg_setup (touchpad2_cfg_t *cfg) |
TouchPad 2 configuration object setup function. | |
err_t | touchpad2_init (touchpad2_t *ctx, touchpad2_cfg_t *cfg) |
TouchPad 2 initialization function. | |
err_t | touchpad2_default_cfg (touchpad2_t *ctx) |
TouchPad 2 default configuration function. | |
err_t | touchpad2_generic_write (touchpad2_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
TouchPad 2 I2C writing function. | |
err_t | touchpad2_generic_read (touchpad2_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
TouchPad 2 I2C reading function. | |
uint8_t | touchpad2_check_interrupt (touchpad2_t *ctx) |
TouchPad 2 check interrupt function. | |
void | touchpad2_wait_ready (touchpad2_t *ctx) |
TouchPad 2 wait ready function. | |
err_t | touchpad2_channel_setup (touchpad2_t *ctx, touchpad2_channel_setup_t ch_setup) |
TouchPad 2 channel setup function. | |
err_t | touchpad2_check_version (touchpad2_t *ctx, touchpad2_ver_info_t *ver_info) |
TouchPad 2 check version function. | |
err_t | touchpad2_get_touch (touchpad2_t *ctx, touchpad2_touch_t *touch_data) |
TouchPad 2 get touch function. | |
err_t | touchpad2_get_all_data (touchpad2_t *ctx, uint8_t *rx_data) |
TouchPad 2 get all data function. | |
err_t | touchpad2_get_status (touchpad2_t *ctx, uint8_t sel_status, uint16_t *rx_data) |
TouchPad 2 get status function. | |
This file contains API for TouchPad 2 Click Driver.