touchpad4 2.0.0.0
touchpad4.h File Reference

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...
 

Macros

#define TOUCHPAD4_REG_INFO_FLAGS   0x10
 Touchpad 4 description register.
 
#define TOUCHPAD4_REG_GESTURES   0x11
 
#define TOUCHPAD4_REG_RELATIVE_X   0x12
 
#define TOUCHPAD4_REG_RELATIVE_Y   0x13
 
#define TOUCHPAD4_REG_FINGER1_X   0x14
 
#define TOUCHPAD4_REG_FINGER1_Y   0x15
 
#define TOUCHPAD4_REG_FINGER1_TOUCH_STR   0x16
 
#define TOUCHPAD4_REG_FINGER1_AREA   0x17
 
#define TOUCHPAD4_REG_FINGER2_X   0x18
 
#define TOUCHPAD4_REG_FINGER2_Y   0x19
 
#define TOUCHPAD4_REG_FINGER2_TOUCH_STR   0x1A
 
#define TOUCHPAD4_REG_FINGER2_AREA   0x1B
 
#define TOUCHPAD4_REG_TOUCH_STATUS0   0x20
 
#define TOUCHPAD4_REG_TOUCH_STATUS1   0x21
 
#define TOUCHPAD4_REG_TOUCH_STATUS2   0x22
 
#define TOUCHPAD4_REG_ALP_CHANNEL_COUNT   0x23
 
#define TOUCHPAD4_REG_ALP_CHANNEL_LTA   0x24
 
#define TOUCHPAD4_REG_ALP_COUNT_A   0x25
 
#define TOUCHPAD4_REG_ALP_COUNT_B   0x26
 
#define TOUCHPAD4_REG_TRACKPAD_ATI_MULT_DIV   0x30
 
#define TOUCHPAD4_REG_TRACKPAD_ATI_COMP_DIV   0x31
 
#define TOUCHPAD4_REG_TRACKPAD_ATI_TARGET   0x32
 
#define TOUCHPAD4_REG_TRACKPAD_REF_DRIFT_LIMIT   0x33
 
#define TOUCHPAD4_REG_TRACKPAD_MIN_CNT_REATI_VAL   0x34
 
#define TOUCHPAD4_REG_REATI_RETRY_TIME   0x35
 
#define TOUCHPAD4_REG_ALP_ATI_MULT_DIV   0x36
 
#define TOUCHPAD4_REG_ALP_ATI_COMP_DIV   0x37
 
#define TOUCHPAD4_REG_ALP_ATI_TARGET   0x38
 
#define TOUCHPAD4_REG_ALP_ATI_DRIFT_LIMIT   0x39
 
#define TOUCHPAD4_REG_ALP_ATI_COMP_A   0x3A
 
#define TOUCHPAD4_REG_ALP_ATI_COMP_B   0x3B
 
#define TOUCHPAD4_REG_ACTIVE_MODE_REPORT_RATE   0x40
 
#define TOUCHPAD4_REG_IDLE_TOUCH_MODE_REPORT_RATE   0x41
 
#define TOUCHPAD4_REG_IDLE_MODE_REPORT_RATE   0x42
 
#define TOUCHPAD4_REG_LP1_MODE_REPORT_RATE   0x43
 
#define TOUCHPAD4_REG_LP2_MODE_REPORT_RATE   0x44
 
#define TOUCHPAD4_REG_ACTIVE_MODE_TIMEOUT   0x45
 
#define TOUCHPAD4_REG_IDLE_TOUCH_MODE_TIMEOUT   0x46
 
#define TOUCHPAD4_REG_IDLE_MODE_TIMEOUT   0x47
 
#define TOUCHPAD4_REG_LP1_MODE_TIMEOUT   0x48
 
#define TOUCHPAD4_REG_REFERENCE_UPDATE_TIME   0x49
 
#define TOUCHPAD4_REG_I2C_TIMEOUT   0x4A
 
#define TOUCHPAD4_REG_SYSTEM_CONTROL   0x50
 
#define TOUCHPAD4_REG_CONFIG_SETTINGS   0x51
 
#define TOUCHPAD4_REG_OTHER_SETTINGS   0x52
 
#define TOUCHPAD4_REG_TOUCH_CLEAR_SET_THRESH   0x53
 
#define TOUCHPAD4_REG_ALP_THRESH   0x54
 
#define TOUCHPAD4_REG_OPEN_0   0x55
 
#define TOUCHPAD4_REG_ALP_CLEAR_SET_DEBOUNCE   0x56
 
#define TOUCHPAD4_REG_OPEN_1   0x57
 
#define TOUCHPAD4_REG_TRACKPAD_CONVER_FREQ   0x58
 
#define TOUCHPAD4_REG_ALP_CONVER_FREQ   0x59
 
#define TOUCHPAD4_REG_TRACKPAD_HW_SETTINGS   0x5A
 
#define TOUCHPAD4_REG_ALP_HW_SETTINGS   0x5B
 
#define TOUCHPAD4_REG_TOTAL_RXS_TRACKPAD_SETTINGS   0x60
 
#define TOUCHPAD4_REG_MAX_MULTITOUCHES_TOTAL_TXS   0x61
 
#define TOUCHPAD4_REG_X_RES   0x62
 
#define TOUCHPAD4_REG_Y_RES   0x63
 
#define TOUCHPAD4_REG_XY_DYNAMIC_FILTER_BOT_SPEED   0x64
 
#define TOUCHPAD4_REG_XY_DYNAMIC_FILTER_TOP_SPEED   0x65
 
#define TOUCHPAD4_REG_STATIC_FILTER_VAL_DYNAMIC_FILTER_BOT   0x66
 
#define TOUCHPAD4_REG_FINGER_SPLIT_STAT_TOUCH_MOVE_THRESH   0x67
 
#define TOUCHPAD4_REG_X_TRIM_VALUE   0x68
 
#define TOUCHPAD4_REG_Y_TRIM_VALUE   0x69
 
#define TOUCHPAD4_REG_ALP_COUNT_FILTER_BETA   0x70
 
#define TOUCHPAD4_REG_LP2_LP1_BETA   0x71
 
#define TOUCHPAD4_REG_ALP_SETUP   0x72
 
#define TOUCHPAD4_REG_ALP_TX_ENABLE   0x73
 
#define TOUCHPAD4_REG_SETTINGS_MAJOR_MINOR_VER   0x74
 
#define TOUCHPAD4_REG_GESTURE_ENABLE   0x80
 
#define TOUCHPAD4_REG_TAP_TIME   0x81
 
#define TOUCHPAD4_REG_TAP_DIST   0x82
 
#define TOUCHPAD4_REG_HOLD_TIME   0x83
 
#define TOUCHPAD4_REG_SWIPE_TIME   0x84
 
#define TOUCHPAD4_REG_SWIPE_X_DIST   0x85
 
#define TOUCHPAD4_REG_SWIPE_Y_DIST   0x86
 
#define TOUCHPAD4_REG_SWIPE_ANGLE   0x87
 
#define TOUCHPAD4_REG_RXTX_MAP_1_0   0x90
 
#define TOUCHPAD4_REG_RXTX_MAP_3_2   0x91
 
#define TOUCHPAD4_REG_RXTX_MAP_5_4   0x92
 
#define TOUCHPAD4_REG_RXTX_MAP_7_6   0x93
 
#define TOUCHPAD4_REG_RXTX_MAP_9_8   0x94
 
#define TOUCHPAD4_REG_RXTX_MAP_11_10   0x95
 
#define TOUCHPAD4_REG_RXTX_MAP_13_12   0x96
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE0   0xA0
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE0   0xA1
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE1   0xA2
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE2   0xA3
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE2   0xA4
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE3   0xA5
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE4   0xA6
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE4   0xA7
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE5   0xA8
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE6   0xA9
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE6   0xAA
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE7   0xAB
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE8   0xAC
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE8   0xAD
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE9   0xAE
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE10   0xB0
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE10   0xB1
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE11   0xB2
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE12   0xB3
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE12   0xB4
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE13   0xB5
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE14   0xB6
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE14   0xB7
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE15   0xB8
 
#define TOUCHPAD4_REG_1st_CHANNEL_FOR_CYCLE16   0xB9
 
#define TOUCHPAD4_REG_2nd_CHANNEL_FOR_CYCLE16   0xBA
 
#define TOUCHPAD4_REG_2nd1st_CHANNEL_FOR_CYCLE17   0xBB
 
#define TOUCHPAD4_REG_TRACKPAD_COUNT_VAL   0xE0
 
#define TOUCHPAD4_REG_TRACKPAD_REF_VAL   0xE1
 
#define TOUCHPAD4_REG_TRACKPAD_DELTA_VAL   0xE2
 
#define TOUCHPAD4_REG_TRACKPAD_ATI_COMPENSATION_VAL   0xE3
 
#define TOUCHPAD4_TP_ATI_MULTIPLIERS_DIVIDERS_0   0xE1
 Change the ATI Settings.
 
#define TOUCHPAD4_TP_ATI_MULTIPLIERS_DIVIDERS_1   0x3B
 
#define TOUCHPAD4_TP_COMPENSATION_DIV_0   0x0F
 
#define TOUCHPAD4_TP_COMPENSATION_DIV_1   0x00
 
#define TOUCHPAD4_TP_ATI_TARGET_0   0xFA
 
#define TOUCHPAD4_TP_ATI_TARGET_1   0x00
 
#define TOUCHPAD4_TP_REF_DRIFT_LIMIT_0   0x32
 
#define TOUCHPAD4_TP_REF_DRIFT_LIMIT_1   0x00
 
#define TOUCHPAD4_TP_MIN_COUNT_REATI_0   0x32
 
#define TOUCHPAD4_TP_MIN_COUNT_REATI_1   0x00
 
#define TOUCHPAD4_REATI_RETRY_TIME_0   0x05
 
#define TOUCHPAD4_REATI_RETRY_TIME_1   0x00
 
#define TOUCHPAD4_ALP_ATI_MULTIPLIERS_DIVIDERS_0   0x82
 
#define TOUCHPAD4_ALP_ATI_MULTIPLIERS_DIVIDERS_1   0x28
 
#define TOUCHPAD4_ALP_COMPENSATION_DIV_0   0x05
 
#define TOUCHPAD4_ALP_COMPENSATION_DIV_1   0x00
 
#define TOUCHPAD4_ALP_ATI_TARGET_0   0xFA
 
#define TOUCHPAD4_ALP_ATI_TARGET_1   0x00
 
#define TOUCHPAD4_ALP_LTA_DRIFT_LIMIT_0   0x14
 
#define TOUCHPAD4_ALP_LTA_DRIFT_LIMIT_1   0x00
 
#define TOUCHPAD4_ALP_COMPENSATION_A_0   0xC4
 Change the ALP ATI Compensation.
 
#define TOUCHPAD4_ALP_COMPENSATION_A_1   0x01
 
#define TOUCHPAD4_ALP_COMPENSATION_B_0   0xE8
 
#define TOUCHPAD4_ALP_COMPENSATION_B_1   0x01
 
#define TOUCHPAD4_ACTIVE_MODE_REPORT_RATE_0   0x0A
 Change the Report Rates and Timing.
 
#define TOUCHPAD4_ACTIVE_MODE_REPORT_RATE_1   0x00
 
#define TOUCHPAD4_IDLE_TOUCH_MODE_REPORT_RATE_0   0x32
 
#define TOUCHPAD4_IDLE_TOUCH_MODE_REPORT_RATE_1   0x00
 
#define TOUCHPAD4_IDLE_MODE_REPORT_RATE_0   0x32
 
#define TOUCHPAD4_IDLE_MODE_REPORT_RATE_1   0x00
 
#define TOUCHPAD4_LP1_MODE_REPORT_RATE_0   0x32
 
#define TOUCHPAD4_LP1_MODE_REPORT_RATE_1   0x00
 
#define TOUCHPAD4_LP2_MODE_REPORT_RATE_0   0x64
 
#define TOUCHPAD4_LP2_MODE_REPORT_RATE_1   0x00
 
#define TOUCHPAD4_ACTIVE_MODE_TIMEOUT_0   0x0A
 
#define TOUCHPAD4_ACTIVE_MODE_TIMEOUT_1   0x00
 
#define TOUCHPAD4_IDLE_TOUCH_MODE_TIMEOUT_0   0x3C
 
#define TOUCHPAD4_IDLE_TOUCH_MODE_TIMEOUT_1   0x00
 
#define TOUCHPAD4_IDLE_MODE_TIMEOUT_0   0x14
 
#define TOUCHPAD4_IDLE_MODE_TIMEOUT_1   0x00
 
#define TOUCHPAD4_LP1_MODE_TIMEOUT_0   0x0A
 
#define TOUCHPAD4_LP1_MODE_TIMEOUT_1   0x00
 
#define TOUCHPAD4_REF_UPDATE_TIME_0   0x08
 
#define TOUCHPAD4_REF_UPDATE_TIME_1   0x00
 
#define TOUCHPAD4_I2C_TIMEOUT_0   0x64
 
#define TOUCHPAD4_I2C_TIMEOUT_1   0x00
 
#define TOUCHPAD4_SYSTEM_CONTROL_0   0x00
 Change the System Settings.
 
#define TOUCHPAD4_SYSTEM_CONTROL_1   0x00
 
#define TOUCHPAD4_CONFIG_SETTINGS0   0x3C
 
#define TOUCHPAD4_CONFIG_SETTINGS1   0x06
 
#define TOUCHPAD4_OTHER_SETTINGS_0   0x20
 
#define TOUCHPAD4_OTHER_SETTINGS_1   0xFF
 
#define TOUCHPAD4_TRACKPAD_TOUCH_SET_THRESHOLD   0x1A
 
#define TOUCHPAD4_TRACKPAD_TOUCH_CLEAR_THRESHOLD   0x14
 
#define TOUCHPAD4_ALP_THRESHOLD_0   0x08
 
#define TOUCHPAD4_ALP_THRESHOLD_1   0x00
 
#define TOUCHPAD4_OPEN_0_0   0xFF
 
#define TOUCHPAD4_OPEN_0_1   0xFF
 
#define TOUCHPAD4_ALP_SET_DEBOUNCE   0x02
 
#define TOUCHPAD4_ALP_CLEAR_DEBOUNCE   0x04
 
#define TOUCHPAD4_OPEN_1_0   0xFF
 
#define TOUCHPAD4_OPEN_1_1   0xFF
 
#define TOUCHPAD4_TP_CONVERSION_FREQUENCY_UP_PASS_LENGTH   0x05
 
#define TOUCHPAD4_TP_CONVERSION_FREQUENCY_FRACTION_VALUE   0x7F
 
#define TOUCHPAD4_ALP_CONVERSION_FREQUENCY_UP_PASS_LENGTH   0x05
 
#define TOUCHPAD4_ALP_CONVERSION_FREQUENCY_FRACTION_VALUE   0x7F
 
#define TOUCHPAD4_TRACKPAD_HARDWARE_SETTINGS_0   0x01
 
#define TOUCHPAD4_TRACKPAD_HARDWARE_SETTINGS_1   0x0D
 
#define TOUCHPAD4_ALP_HARDWARE_SETTINGS_0   0x65
 
#define TOUCHPAD4_ALP_HARDWARE_SETTINGS_1   0x1D
 
#define TOUCHPAD4_TRACKPAD_SETTINGS_0_0   0x28
 Change the Trackpad Settings.
 
#define TOUCHPAD4_TRACKPAD_SETTINGS_0_1   0x04
 
#define TOUCHPAD4_TRACKPAD_SETTINGS_1_0   0x05
 
#define TOUCHPAD4_TRACKPAD_SETTINGS_1_1   0x01
 
#define TOUCHPAD4_X_RESOLUTION_0   0x00
 
#define TOUCHPAD4_X_RESOLUTION_1   0x03
 
#define TOUCHPAD4_Y_RESOLUTION_0   0x00
 
#define TOUCHPAD4_Y_RESOLUTION_1   0x04
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_BOTTOM_SPEED_0   0x06
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_BOTTOM_SPEED_1   0x00
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_TOP_SPEED_0   0x7C
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_TOP_SPEED_1   0x00
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_BOTTOM_BETA   0x07
 
#define TOUCHPAD4_XY_DYNAMIC_FILTER_STATIC_FILTER_BETA   0x80
 
#define TOUCHPAD4_STATIONARY_TOUCH_MOV_THRESHOLD   0x14
 
#define TOUCHPAD4_FINGER_SPLIT_FACTOR   0x00
 
#define TOUCHPAD4_X_TRIM_VALUE_0   0x14
 
#define TOUCHPAD4_X_TRIM_VALUE_1   0x00
 
#define TOUCHPAD4_Y_TRIM_VALUE_0   0x14
 
#define TOUCHPAD4_Y_TRIM_VALUE_1   0x00
 
#define TOUCHPAD4_ALP_COUNT_FILTER_BETA_0   0xB4
 Change the ALP Settings.
 
#define TOUCHPAD4_OPEN_0   0x00
 
#define TOUCHPAD4_ALP_LTA_BETA_LP1   0x06
 
#define TOUCHPAD4_ALP_LTA_BETA_LP2   0x04
 
#define TOUCHPAD4_ALP_SETUP_0   0x33
 
#define TOUCHPAD4_ALP_SETUP_1   0x03
 
#define TOUCHPAD4_ALP_TX_ENABLE_0   0x40
 
#define TOUCHPAD4_ALP_TX_ENABLE_1   0x05
 
#define TOUCHPAD4_MINOR_VERSION   0x00
 Change the Settings Version Numbers.
 
#define TOUCHPAD4_MAJOR_VERSION   0x01
 
#define TOUCHPAD4_GESTURE_ENABLE_0   0x3F
 Change the Gesture Settings.
 
#define TOUCHPAD4_GESTURE_ENABLE_1   0x0F
 
#define TOUCHPAD4_TAP_TIME_0   0x96
 
#define TOUCHPAD4_TAP_TIME_1   0x00
 
#define TOUCHPAD4_TAP_DISTANCE_0   0x32
 
#define TOUCHPAD4_TAP_DISTANCE_1   0x00
 
#define TOUCHPAD4_HOLD_TIME_0   0x2C
 
#define TOUCHPAD4_HOLD_TIME_1   0x01
 
#define TOUCHPAD4_SWIPE_TIME_0   0x96
 
#define TOUCHPAD4_SWIPE_TIME_1   0x00
 
#define TOUCHPAD4_SWIPE_X_DISTANCE_0   0xC8
 
#define TOUCHPAD4_SWIPE_X_DISTANCE_1   0x00
 
#define TOUCHPAD4_SWIPE_Y_DISTANCE_0   0xC8
 
#define TOUCHPAD4_SWIPE_Y_DISTANCE_1   0x00
 
#define TOUCHPAD4_SWIPE_ANGLE_0   0x17
 
#define TOUCHPAD4_GESTURE_OPEN_0   0x00
 
#define TOUCHPAD4_RX_TX_MAP_0   0x05
 Change the RxTx Mapping.
 
#define TOUCHPAD4_RX_TX_MAP_1   0x04
 
#define TOUCHPAD4_RX_TX_MAP_2   0x01
 
#define TOUCHPAD4_RX_TX_MAP_3   0x00
 
#define TOUCHPAD4_RX_TX_MAP_4   0x0A
 
#define TOUCHPAD4_RX_TX_MAP_5   0x09
 
#define TOUCHPAD4_RX_TX_MAP_6   0x08
 
#define TOUCHPAD4_RX_TX_MAP_7   0x07
 
#define TOUCHPAD4_RX_TX_MAP_8   0x06
 
#define TOUCHPAD4_RX_TX_MAP_9   0x0A
 
#define TOUCHPAD4_RX_TX_MAP_10   0x09
 
#define TOUCHPAD4_RX_TX_MAP_11   0x08
 
#define TOUCHPAD4_RX_TX_MAP_12   0x00
 
#define TOUCHPAD4_RX_TX_MAP_13   0x00
 
#define TOUCHPAD4_PLACEHOLDER_0   0x05
 Change the Allocation of channels into cycles 0-9.
 
#define TOUCHPAD4_CH_1_CYCLE_0   0x00
 
#define TOUCHPAD4_CH_2_CYCLE_0   0x02
 
#define TOUCHPAD4_PLACEHOLDER_1   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_1   0x01
 
#define TOUCHPAD4_CH_2_CYCLE_1   0x03
 
#define TOUCHPAD4_PLACEHOLDER_2   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_2   0x04
 
#define TOUCHPAD4_CH_2_CYCLE_2   0x06
 
#define TOUCHPAD4_PLACEHOLDER_3   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_3   0x05
 
#define TOUCHPAD4_CH_2_CYCLE_3   0x07
 
#define TOUCHPAD4_PLACEHOLDER_4   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_4   0x08
 
#define TOUCHPAD4_CH_2_CYCLE_4   0x0A
 
#define TOUCHPAD4_PLACEHOLDER_5   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_5   0x09
 
#define TOUCHPAD4_CH_2_CYCLE_5   0x0B
 
#define TOUCHPAD4_PLACEHOLDER_6   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_6   0x0C
 
#define TOUCHPAD4_CH_2_CYCLE_6   0x0E
 
#define TOUCHPAD4_PLACEHOLDER_7   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_7   0x0D
 
#define TOUCHPAD4_CH_2_CYCLE_7   0x0F
 
#define TOUCHPAD4_PLACEHOLDER_8   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_8   0x10
 
#define TOUCHPAD4_CH_2_CYCLE_8   0x12
 
#define TOUCHPAD4_PLACEHOLDER_9   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_9   0x11
 
#define TOUCHPAD4_CH_2_CYCLE_9   0x13
 
#define TOUCHPAD4_PLACEHOLDER_10   0x05
 Change the Allocation of channels into cycles 10-17.
 
#define TOUCHPAD4_CH_1_CYCLE_10   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_10   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_11   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_11   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_11   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_12   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_12   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_12   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_13   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_13   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_13   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_14   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_14   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_14   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_15   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_15   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_15   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_16   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_16   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_16   0xFF
 
#define TOUCHPAD4_PLACEHOLDER_17   0x05
 
#define TOUCHPAD4_CH_1_CYCLE_17   0xFF
 
#define TOUCHPAD4_CH_2_CYCLE_17   0xFF
 
#define TOUCHPAD4_SET_DEV_ADDR   0x56
 Touchpad 4 device address setting.
 
#define TOUCHPAD4_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

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.
 

Detailed Description

This file contains API for Touchpad 4 Click Driver.

Enumeration Type Documentation

◆ touchpad4_return_value_t

Touchpad 4 Click return value data.

Predefined enum values for driver return values.

Enumerator
TOUCHPAD4_OK 
TOUCHPAD4_ERROR