Loading...
Searching...
No Matches

Internal register addresses, bitfields and constants. More...

Detailed Description

Internal register addresses, bitfields and constants.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file ft5x06_constants.h.

#include "kernel_defines.h"
+ Include dependency graph for ft5x06_constants.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Constants (depends on variants)

#define FT5X06_I2C_DEFAULT_ADDRESS   (0x38)
 
#define FT5X06_VENDOR_ID_1   (0x51)
 Vendor ID for FT5606, FT5X16, FT5X06I, FT5336, FT3316, FT5436I, FT5336I, FT5X46 models.
 
#define FT5X06_VENDOR_ID_2   (0x11)
 Vendor ID used for most FT6X06 and FT6X36 as well as FT3X67 models.
 
#define FT5X06_VENDOR_ID_3   (0xcd)
 Vendor ID used for some FT6X06 and FT6X36 models.
 
#define FT6XX6_TOUCHES_COUNT_MAX   (2)
 Maximum touches count for FT6X06 and FT6X36 models.
 
#define FT5X06_TOUCHES_COUNT_MAX   (5)
 Maximum touches count for FT5606, FT5X16, FT5X06I, FT5336, FT3316, FT5436I, FT5336I, FT5X46 models.
 

Register addresses

#define FT5X06_DEVIDE_MODE_REG   (0x00)
 
#define FT5X06_GESTURE_ID_REG   (0x01)
 
#define FT5X06_TD_STATUS_REG   (0x02)
 
#define FT5X06_TOUCH1_XH_REG   (0x03)
 
#define FT5X06_TOUCH1_XL_REG   (0x04)
 
#define FT5X06_TOUCH1_YH_REG   (0x05)
 
#define FT5X06_TOUCH1_YL_REG   (0x06)
 
#define FT5X06_TOUCH2_XH_REG   (0x09)
 
#define FT5X06_TOUCH2_XL_REG   (0x0A)
 
#define FT5X06_TOUCH2_YH_REG   (0x0B)
 
#define FT5X06_TOUCH2_YL_REG   (0x0C)
 
#define FT5X06_TOUCH3_XH_REG   (0x0F)
 
#define FT5X06_TOUCH3_XL_REG   (0x11)
 
#define FT5X06_TOUCH3_YH_REG   (0x12)
 
#define FT5X06_TOUCH3_YL_REG   (0x13)
 
#define FT5X06_TOUCH4_XH_REG   (0x15)
 
#define FT5X06_TOUCH4_XL_REG   (0x16)
 
#define FT5X06_TOUCH4_YH_REG   (0x17)
 
#define FT5X06_TOUCH4_YL_REG   (0x18)
 
#define FT5X06_TOUCH5_XH_REG   (0x1B)
 
#define FT5X06_TOUCH5_XL_REG   (0x1C)
 
#define FT5X06_TOUCH5_YH_REG   (0x1D)
 
#define FT5X06_TOUCH5_YL_REG   (0x1E)
 
#define FT5X06_G_AUTO_CLB_MODE_REG   (0xA0)
 
#define FT5X06_G_LIB_VERSION_H_REG   (0xA1)
 
#define FT5X06_G_LIB_VERSION_L_REG   (0xA2)
 
#define FT5X06_G_CIPHER_REG   (0xA3)
 
#define FT5X06_G_MODE_REG   (0xA4)
 
#define FT5X06_G_PMODE_REG   (0xA5)
 
#define FT5X06_G_FIRMID_REG   (0xA6)
 
#define FT5X06_G_STATE_REG   (0xA7)
 
#define FT5X06_G_VENDOR_ID_REG   (0xA8)
 

Gesture ID register bitfields

#define FT5X06_GESTURE_ID_MOVE_UP   (0x10)
 
#define FT5X06_GESTURE_ID_MOVE_LEFT   (0x14)
 
#define FT5X06_GESTURE_ID_MOVE_DOWN   (0x18)
 
#define FT5X06_GESTURE_ID_MOVE_RIGHT   (0x1C)
 
#define FT5X06_GESTURE_ID_ZOOM_IN   (0x48)
 
#define FT5X06_GESTURE_ID_ZOOM_OUT   (0x49)
 
#define FT5X06_GESTURE_ID_NONE   (0x00)
 

Touch detect status register bitfields

#define FT5X06_TD_STATUS_MASK   (0x0F)
 

Touch position (LSB/MSB) registers masks

#define FT5X06_TOUCH_POS_LSB_MASK   (0xFF)
 
#define FT5X06_TOUCH_POS_MSB_MASK   (0x0F)
 

Interrupt mode register masks and bitfields

#define FT5X06_G_MODE_INTERRUPT_MASK   (0x03)
 
#define FT5X06_G_MODE_INTERRUPT_SHIFT   (0x00)
 
#define FT5X06_G_MODE_INTERRUPT_POLLING   (0x00)
 
#define FT5X06_G_MODE_INTERRUPT_TRIGGER   (0x01)
 

Macro Definition Documentation

◆ FT5X06_DEVIDE_MODE_REG

#define FT5X06_DEVIDE_MODE_REG   (0x00)

Definition at line 65 of file ft5x06_constants.h.

◆ FT5X06_G_AUTO_CLB_MODE_REG

#define FT5X06_G_AUTO_CLB_MODE_REG   (0xA0)

Definition at line 88 of file ft5x06_constants.h.

◆ FT5X06_G_CIPHER_REG

#define FT5X06_G_CIPHER_REG   (0xA3)

Definition at line 91 of file ft5x06_constants.h.

◆ FT5X06_G_FIRMID_REG

#define FT5X06_G_FIRMID_REG   (0xA6)

Definition at line 94 of file ft5x06_constants.h.

◆ FT5X06_G_LIB_VERSION_H_REG

#define FT5X06_G_LIB_VERSION_H_REG   (0xA1)

Definition at line 89 of file ft5x06_constants.h.

◆ FT5X06_G_LIB_VERSION_L_REG

#define FT5X06_G_LIB_VERSION_L_REG   (0xA2)

Definition at line 90 of file ft5x06_constants.h.

◆ FT5X06_G_MODE_INTERRUPT_MASK

#define FT5X06_G_MODE_INTERRUPT_MASK   (0x03)

Definition at line 131 of file ft5x06_constants.h.

◆ FT5X06_G_MODE_INTERRUPT_POLLING

#define FT5X06_G_MODE_INTERRUPT_POLLING   (0x00)

Definition at line 133 of file ft5x06_constants.h.

◆ FT5X06_G_MODE_INTERRUPT_SHIFT

#define FT5X06_G_MODE_INTERRUPT_SHIFT   (0x00)

Definition at line 132 of file ft5x06_constants.h.

◆ FT5X06_G_MODE_INTERRUPT_TRIGGER

#define FT5X06_G_MODE_INTERRUPT_TRIGGER   (0x01)

Definition at line 134 of file ft5x06_constants.h.

◆ FT5X06_G_MODE_REG

#define FT5X06_G_MODE_REG   (0xA4)

Definition at line 92 of file ft5x06_constants.h.

◆ FT5X06_G_PMODE_REG

#define FT5X06_G_PMODE_REG   (0xA5)

Definition at line 93 of file ft5x06_constants.h.

◆ FT5X06_G_STATE_REG

#define FT5X06_G_STATE_REG   (0xA7)

Definition at line 95 of file ft5x06_constants.h.

◆ FT5X06_G_VENDOR_ID_REG

#define FT5X06_G_VENDOR_ID_REG   (0xA8)

Definition at line 96 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_MOVE_DOWN

#define FT5X06_GESTURE_ID_MOVE_DOWN   (0x18)

Definition at line 105 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_MOVE_LEFT

#define FT5X06_GESTURE_ID_MOVE_LEFT   (0x14)

Definition at line 104 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_MOVE_RIGHT

#define FT5X06_GESTURE_ID_MOVE_RIGHT   (0x1C)

Definition at line 106 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_MOVE_UP

#define FT5X06_GESTURE_ID_MOVE_UP   (0x10)

Definition at line 103 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_NONE

#define FT5X06_GESTURE_ID_NONE   (0x00)

Definition at line 109 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_REG

#define FT5X06_GESTURE_ID_REG   (0x01)

Definition at line 66 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_ZOOM_IN

#define FT5X06_GESTURE_ID_ZOOM_IN   (0x48)

Definition at line 107 of file ft5x06_constants.h.

◆ FT5X06_GESTURE_ID_ZOOM_OUT

#define FT5X06_GESTURE_ID_ZOOM_OUT   (0x49)

Definition at line 108 of file ft5x06_constants.h.

◆ FT5X06_I2C_DEFAULT_ADDRESS

#define FT5X06_I2C_DEFAULT_ADDRESS   (0x38)

Definition at line 32 of file ft5x06_constants.h.

◆ FT5X06_TD_STATUS_MASK

#define FT5X06_TD_STATUS_MASK   (0x0F)

Definition at line 116 of file ft5x06_constants.h.

◆ FT5X06_TD_STATUS_REG

#define FT5X06_TD_STATUS_REG   (0x02)

Definition at line 67 of file ft5x06_constants.h.

◆ FT5X06_TOUCH1_XH_REG

#define FT5X06_TOUCH1_XH_REG   (0x03)

Definition at line 68 of file ft5x06_constants.h.

◆ FT5X06_TOUCH1_XL_REG

#define FT5X06_TOUCH1_XL_REG   (0x04)

Definition at line 69 of file ft5x06_constants.h.

◆ FT5X06_TOUCH1_YH_REG

#define FT5X06_TOUCH1_YH_REG   (0x05)

Definition at line 70 of file ft5x06_constants.h.

◆ FT5X06_TOUCH1_YL_REG

#define FT5X06_TOUCH1_YL_REG   (0x06)

Definition at line 71 of file ft5x06_constants.h.

◆ FT5X06_TOUCH2_XH_REG

#define FT5X06_TOUCH2_XH_REG   (0x09)

Definition at line 72 of file ft5x06_constants.h.

◆ FT5X06_TOUCH2_XL_REG

#define FT5X06_TOUCH2_XL_REG   (0x0A)

Definition at line 73 of file ft5x06_constants.h.

◆ FT5X06_TOUCH2_YH_REG

#define FT5X06_TOUCH2_YH_REG   (0x0B)

Definition at line 74 of file ft5x06_constants.h.

◆ FT5X06_TOUCH2_YL_REG

#define FT5X06_TOUCH2_YL_REG   (0x0C)

Definition at line 75 of file ft5x06_constants.h.

◆ FT5X06_TOUCH3_XH_REG

#define FT5X06_TOUCH3_XH_REG   (0x0F)

Definition at line 76 of file ft5x06_constants.h.

◆ FT5X06_TOUCH3_XL_REG

#define FT5X06_TOUCH3_XL_REG   (0x11)

Definition at line 77 of file ft5x06_constants.h.

◆ FT5X06_TOUCH3_YH_REG

#define FT5X06_TOUCH3_YH_REG   (0x12)

Definition at line 78 of file ft5x06_constants.h.

◆ FT5X06_TOUCH3_YL_REG

#define FT5X06_TOUCH3_YL_REG   (0x13)

Definition at line 79 of file ft5x06_constants.h.

◆ FT5X06_TOUCH4_XH_REG

#define FT5X06_TOUCH4_XH_REG   (0x15)

Definition at line 80 of file ft5x06_constants.h.

◆ FT5X06_TOUCH4_XL_REG

#define FT5X06_TOUCH4_XL_REG   (0x16)

Definition at line 81 of file ft5x06_constants.h.

◆ FT5X06_TOUCH4_YH_REG

#define FT5X06_TOUCH4_YH_REG   (0x17)

Definition at line 82 of file ft5x06_constants.h.

◆ FT5X06_TOUCH4_YL_REG

#define FT5X06_TOUCH4_YL_REG   (0x18)

Definition at line 83 of file ft5x06_constants.h.

◆ FT5X06_TOUCH5_XH_REG

#define FT5X06_TOUCH5_XH_REG   (0x1B)

Definition at line 84 of file ft5x06_constants.h.

◆ FT5X06_TOUCH5_XL_REG

#define FT5X06_TOUCH5_XL_REG   (0x1C)

Definition at line 85 of file ft5x06_constants.h.

◆ FT5X06_TOUCH5_YH_REG

#define FT5X06_TOUCH5_YH_REG   (0x1D)

Definition at line 86 of file ft5x06_constants.h.

◆ FT5X06_TOUCH5_YL_REG

#define FT5X06_TOUCH5_YL_REG   (0x1E)

Definition at line 87 of file ft5x06_constants.h.

◆ FT5X06_TOUCH_POS_LSB_MASK

#define FT5X06_TOUCH_POS_LSB_MASK   (0xFF)

Definition at line 123 of file ft5x06_constants.h.

◆ FT5X06_TOUCH_POS_MSB_MASK

#define FT5X06_TOUCH_POS_MSB_MASK   (0x0F)

Definition at line 124 of file ft5x06_constants.h.

◆ FT5X06_TOUCHES_COUNT_MAX

#define FT5X06_TOUCHES_COUNT_MAX   (5)

Maximum touches count for FT5606, FT5X16, FT5X06I, FT5336, FT3316, FT5436I, FT5336I, FT5X46 models.

Definition at line 58 of file ft5x06_constants.h.

◆ FT5X06_VENDOR_ID_1

#define FT5X06_VENDOR_ID_1   (0x51)

Vendor ID for FT5606, FT5X16, FT5X06I, FT5336, FT3316, FT5436I, FT5336I, FT5X46 models.

Definition at line 37 of file ft5x06_constants.h.

◆ FT5X06_VENDOR_ID_2

#define FT5X06_VENDOR_ID_2   (0x11)

Vendor ID used for most FT6X06 and FT6X36 as well as FT3X67 models.

Definition at line 42 of file ft5x06_constants.h.

◆ FT5X06_VENDOR_ID_3

#define FT5X06_VENDOR_ID_3   (0xcd)

Vendor ID used for some FT6X06 and FT6X36 models.

Definition at line 47 of file ft5x06_constants.h.

◆ FT6XX6_TOUCHES_COUNT_MAX

#define FT6XX6_TOUCHES_COUNT_MAX   (2)

Maximum touches count for FT6X06 and FT6X36 models.

Definition at line 52 of file ft5x06_constants.h.