|
mikroSDK Reference Manual
|
Go to the documentation of this file.
81 #define FT5XX6_REG_DEVICE_MODE 0x0
88 #define FT5XX6_REG_GEST_ID 0x1
94 #define FT5XX6_REG_TD_STATUS 0x2
101 #define FT5XX6_REG_TOUCH1_XH 0x3
108 #define FT5XX6_REG_TOUCH1_XL 0x4
115 #define FT5XX6_REG_TOUCH1_YH 0x5
122 #define FT5XX6_REG_TOUCH1_YL 0x6
129 #define FT5XX6_REG_TOUCH2_XH 0x9
136 #define FT5XX6_REG_TOUCH2_XL 0xA
143 #define FT5XX6_REG_TOUCH2_YH 0xB
150 #define FT5XX6_REG_TOUCH2_YL 0xC
157 #define FT5XX6_REG_TOUCH3_XH 0xF
164 #define FT5XX6_REG_TOUCH3_XL 0x10
171 #define FT5XX6_REG_TOUCH3_YH 0x11
178 #define FT5XX6_REG_TOUCH3_YL 0x12
185 #define FT5XX6_REG_TOUCH4_XH 0x15
192 #define FT5XX6_REG_TOUCH4_XL 0x16
199 #define FT5XX6_REG_TOUCH4_YH 0x17
206 #define FT5XX6_REG_TOUCH4_YL 0x18
213 #define FT5XX6_REG_TOUCH5_XH 0x1B
220 #define FT5XX6_REG_TOUCH5_XL 0x1C
227 #define FT5XX6_REG_TOUCH5_YH 0x1D
234 #define FT5XX6_REG_TOUCH5_YL 0x1E
241 #define FT5XX6_REG_TOUCH_DET_TH 0x80
248 #define FT5XX6_REG_TOUCH_PEAK_DET_TH 0x81
255 #define FT5XX6_REG_TOUCH_TH_CAL 0x82
262 #define FT5XX6_REG_TOUCH_TH_WATER 0x83
269 #define FT5XX6_REG_TOUCH_TH_TEMP_COMP 0x84
276 #define FT5XX6_REG_POWER_CTRL_MODE 0x86
283 #define FT5XX6_REG_MONITOR_STATUS_TMR 0x87
290 #define FT5XX6_REG_MONITOR_ACT_PERIOD 0x88
297 #define FT5XX6_REG_ENTER_IDLE_TIMER 0x89
304 #define FT5XX6_REG_AUTO_CALIB_MODE 0xA0
311 #define FT5XX6_REG_LIB_VERSION_H 0xA1
318 #define FT5XX6_REG_LIB_VERSION_L 0xA2
325 #define FT5XX6_REG_LIB_CHIP_VENDOR_ID 0xA3
332 #define FT5XX6_REG_IVT_TO_HOST_STATUS 0xA4
339 #define FT5XX6_REG_POWER_CONSUME_MODE 0xA5
346 #define FT5XX6_REG_FW_ID 0xA6
353 #define FT5XX6_REG_RUNNING_STATE 0xA7
360 #define FT5XX6_REG_CTPM_VENDOR_ID 0xA8
366 #define FT5XX6_REG_ERROR_ID 0xA9
373 #define FT5XX6_REG_CONFIGURE_CAL_MODE 0xAA
380 #define FT5XX6_REG_BIG_AREA_TH 0xAE
399 #define FT5XX6_INT_MODE_POLLING 0
405 #define FT5XX6_INT_MODE_TRIGGER 1
411 #define FT5XX6_I2C_ADDR 0x38
417 #define FT5XX6_N_DATA_TRANSFER_MIN 1
423 #define FT5XX6_N_DATA_TRANSFER_MAX 256
429 #define FT5XX6_GESTURE_ITEMS_MAX 7
435 #define FT5XX6_EVENT_PRESS_DET 0x80
452 #define FT5XX6_MASK_PRESS_COORD 0xFFF
458 #define FT5XX6_MASK_PRESS_EVENT 0xC0
464 #define FT5XX6_MASK_PRESS_DET 0xC0
470 #define FT5XX6_MASK_TP_NUM 0xF
489 #define FT5XX6_OFFSET_PRESS_EVENT 6
495 #define FT5XX6_OFFSET_PRESS_ID 4
501 #define FT5XX6_OFFSET_DEV_MODE 4
507 #define FT5XX6_OFFSET_TOUCH_READING 6
515 #define FT5XX6_MAP_PINS( cfg ) \
516 cfg.i2c_cfg.scl = CTP_SCL; \
517 cfg.i2c_cfg.sda = CTP_SDA; \
518 cfg.int_pin = CTP_INT
821 uint8_t * data_out, uint16_t n_bytes );
Pin and port name type definitions.
void ft5xx6_press_coordinates(ft5xx6_t *ctx, tp_touch_item_t *touch_item)
FT5xx6 Pressure Coordinates Check Function.
FT5xx6 Gesture Item Definition.
Definition: ft5xx6.h:553
I2C Master driver context structure, consisted of the following fields :
Definition: drv_i2c_master.h:119
#define FT5XX6_GESTURE_ITEMS_MAX
FT5xx6 Gesture Items Limit Setting.
Definition: ft5xx6.h:428
void ft5xx6_default_cfg(ft5xx6_t *ctx)
FT5xx6 Default Configuration Function.
uint8_t ft5xx6_generic_read_single(ft5xx6_t *ctx, uint8_t reg_addr)
FT5xx6 Generic Single Read Function.
const ft5xx6_controller_t FT5X46_CONTROLLER
FT5x46 Touch Controllers Descriptor.
API for Digital input driver.
tp_event_t
Touch Panel Event Code Definition.
Definition: tp.h:79
void ft5xx6_gesture(ft5xx6_t *ctx, tp_event_t *event)
FT5xx6 Gesture Check Function.
Digital input driver context structure, consisted of the following fields :
Definition: drv_digital_in.h:71
tp_err_t ft5xx6_init(ft5xx6_t *ctx, ft5xx6_cfg_t *cfg, tp_drv_t *drv)
FT5xx6 Initialization Function.
Touch Item Definition.
Definition: tp.h:149
void ft5xx6_generic_write(ft5xx6_t *ctx, uint8_t reg_addr, uint8_t data_in)
FT5xx6 Generic Write Function.
FT5xx6 Context Object.
Definition: ft5xx6.h:588
tp_event_t ft5xx6_press_detect(ft5xx6_t *ctx)
FT5xx6 Touch Pressure Detect Function.
ft5xx6_run_mode_t
FT5xx6 Run Mode Settings.
Definition: ft5xx6.h:539
const ft5xx6_controller_t FT5X16_CONTROLLER
FT5x16 Touch Controllers Descriptor.
tp_err_t
Touch Panel Error Code Definition.
Definition: tp.h:63
const ft5xx6_controller_t FT5X26_CONTROLLER
FT5x26 Touch Controllers Descriptor.
void ft5xx6_dev_mode_setup(ft5xx6_t *ctx, ft5xx6_dev_mode_t mode)
FT5xx6 Device Mode Setup Function.
API for I2C master driver.
tp_err_t ft5xx6_process(ft5xx6_t *ctx)
FT5xx6 Process Function.
void ft5xx6_cfg_setup(ft5xx6_cfg_t *cfg, const ft5xx6_controller_t *controller)
FT5xx6 Configuration Object Setup Function.
const ft5xx6_controller_t FT5X06_CONTROLLER
FT5x06 Touch Controllers Descriptor.
FT5xx6 Gesture Items.
Definition: ft5xx6.h:564
hal_pin_name_t pin_name_t
Definition: drv_name.h:73
ft5xx6_dev_mode_t
FT5xx6 Device Mode Settings.
Definition: ft5xx6.h:527
void ft5xx6_run_mode_setup(ft5xx6_t *ctx, ft5xx6_run_mode_t mode)
FT5xx6 Run Mode Setup Function.
tp_err_t ft5xx6_generic_read_multiple(ft5xx6_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint16_t n_bytes)
FT5xx6 Generic Multiple Read Function.
Touch Panel Driver Interface Items.
Definition: tp.h:197
FT5xx6 Configuration Object.
Definition: ft5xx6.h:574
I2C Master initialization configuration structure, consisted of the following fields :
Definition: drv_i2c_master.h:95