touchpad4 2.0.0.0
|
This file contains API for Touchpad 4 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 | touchpad4_t |
Touchpad 4 Click context object. More... | |
struct | touchpad4_cfg_t |
Touchpad 4 Click configuration object. More... | |
struct | touchpad4_touch_t |
Touchpad 4 Click touch object. More... | |
struct | touchpad4_info_t |
Touchpad 4 Click touchpad information object. More... | |
Enumerations | |
enum | touchpad4_return_value_t { TOUCHPAD4_OK = 0 , TOUCHPAD4_ERROR = -1 } |
Touchpad 4 Click return value data. More... | |
Functions | |
void | touchpad4_cfg_setup (touchpad4_cfg_t *cfg) |
Touchpad 4 configuration object setup function. | |
err_t | touchpad4_init (touchpad4_t *ctx, touchpad4_cfg_t *cfg) |
Touchpad 4 initialization function. | |
err_t | touchpad4_default_cfg (touchpad4_t *ctx) |
Touchpad 4 default configuration function. | |
err_t | touchpad4_generic_write (touchpad4_t *ctx, uint8_t reg, uint16_t tx_data) |
Touchpad 4 I2C writing function. | |
err_t | touchpad4_generic_read (touchpad4_t *ctx, uint8_t reg, uint16_t *rx_data) |
Touchpad 4 I2C reading function. | |
uint8_t | touchpad4_get_ready (touchpad4_t *ctx) |
Get ready pin state. | |
void | touchpad4_set_rst (touchpad4_t *ctx, uint8_t state) |
Set reset pin state. | |
void | touchpad4_reset (touchpad4_t *ctx) |
Reset function. | |
err_t | touchpad4_get_touch (touchpad4_t *ctx, touchpad4_info_t *touch_info) |
Read touch informations. | |
err_t | touchpad_get_channels (touchpad4_t *ctx, uint32_t *channels) |
Read channel information. | |
This file contains API for Touchpad 4 Click Driver.