RTEMS 6.1-rc2
Loading...
Searching...
No Matches

BASIC_SETTING - Basic Setting

#define TSC_BASIC_SETTING_AUTO_MEASURE_MASK   (0x1U)
 
#define TSC_BASIC_SETTING_AUTO_MEASURE_SHIFT   (0U)
 
#define TSC_BASIC_SETTING_AUTO_MEASURE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_AUTO_MEASURE_SHIFT)) & TSC_BASIC_SETTING_AUTO_MEASURE_MASK)
 
#define TSC_BASIC_SETTING_WIRE_4_5_MASK   (0x10U)
 
#define TSC_BASIC_SETTING_WIRE_4_5_SHIFT   (4U)
 
#define TSC_BASIC_SETTING_WIRE_4_5(x)   (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_WIRE_4_5_SHIFT)) & TSC_BASIC_SETTING_WIRE_4_5_MASK)
 
#define TSC_BASIC_SETTING_MEASURE_DELAY_TIME_MASK   (0xFFFFFF00U)
 
#define TSC_BASIC_SETTING_MEASURE_DELAY_TIME_SHIFT   (8U)
 
#define TSC_BASIC_SETTING_MEASURE_DELAY_TIME(x)   (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_MEASURE_DELAY_TIME_SHIFT)) & TSC_BASIC_SETTING_MEASURE_DELAY_TIME_MASK)
 

PRE_CHARGE_TIME - Pre-charge Time

#define TSC_PRE_CHARGE_TIME_PRE_CHARGE_TIME_MASK   (0xFFFFFFFFU)
 
#define TSC_PRE_CHARGE_TIME_PRE_CHARGE_TIME_SHIFT   (0U)
 
#define TSC_PRE_CHARGE_TIME_PRE_CHARGE_TIME(x)   (((uint32_t)(((uint32_t)(x)) << TSC_PRE_CHARGE_TIME_PRE_CHARGE_TIME_SHIFT)) & TSC_PRE_CHARGE_TIME_PRE_CHARGE_TIME_MASK)
 

FLOW_CONTROL - Flow Control

#define TSC_FLOW_CONTROL_SW_RST_MASK   (0x1U)
 
#define TSC_FLOW_CONTROL_SW_RST_SHIFT   (0U)
 
#define TSC_FLOW_CONTROL_SW_RST(x)   (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_SW_RST_SHIFT)) & TSC_FLOW_CONTROL_SW_RST_MASK)
 
#define TSC_FLOW_CONTROL_START_MEASURE_MASK   (0x10U)
 
#define TSC_FLOW_CONTROL_START_MEASURE_SHIFT   (4U)
 
#define TSC_FLOW_CONTROL_START_MEASURE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_START_MEASURE_SHIFT)) & TSC_FLOW_CONTROL_START_MEASURE_MASK)
 
#define TSC_FLOW_CONTROL_DROP_MEASURE_MASK   (0x100U)
 
#define TSC_FLOW_CONTROL_DROP_MEASURE_SHIFT   (8U)
 
#define TSC_FLOW_CONTROL_DROP_MEASURE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_DROP_MEASURE_SHIFT)) & TSC_FLOW_CONTROL_DROP_MEASURE_MASK)
 
#define TSC_FLOW_CONTROL_START_SENSE_MASK   (0x1000U)
 
#define TSC_FLOW_CONTROL_START_SENSE_SHIFT   (12U)
 
#define TSC_FLOW_CONTROL_START_SENSE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_START_SENSE_SHIFT)) & TSC_FLOW_CONTROL_START_SENSE_MASK)
 
#define TSC_FLOW_CONTROL_DISABLE_MASK   (0x10000U)
 
#define TSC_FLOW_CONTROL_DISABLE_SHIFT   (16U)
 
#define TSC_FLOW_CONTROL_DISABLE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_DISABLE_SHIFT)) & TSC_FLOW_CONTROL_DISABLE_MASK)
 

MEASEURE_VALUE - Measure Value

#define TSC_MEASEURE_VALUE_Y_VALUE_MASK   (0xFFFU)
 
#define TSC_MEASEURE_VALUE_Y_VALUE_SHIFT   (0U)
 
#define TSC_MEASEURE_VALUE_Y_VALUE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_MEASEURE_VALUE_Y_VALUE_SHIFT)) & TSC_MEASEURE_VALUE_Y_VALUE_MASK)
 
#define TSC_MEASEURE_VALUE_X_VALUE_MASK   (0xFFF0000U)
 
#define TSC_MEASEURE_VALUE_X_VALUE_SHIFT   (16U)
 
#define TSC_MEASEURE_VALUE_X_VALUE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_MEASEURE_VALUE_X_VALUE_SHIFT)) & TSC_MEASEURE_VALUE_X_VALUE_MASK)
 

INT_EN - Interrupt Enable

#define TSC_INT_EN_MEASURE_INT_EN_MASK   (0x1U)
 
#define TSC_INT_EN_MEASURE_INT_EN_SHIFT   (0U)
 
#define TSC_INT_EN_MEASURE_INT_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_MEASURE_INT_EN_SHIFT)) & TSC_INT_EN_MEASURE_INT_EN_MASK)
 
#define TSC_INT_EN_DETECT_INT_EN_MASK   (0x10U)
 
#define TSC_INT_EN_DETECT_INT_EN_SHIFT   (4U)
 
#define TSC_INT_EN_DETECT_INT_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_DETECT_INT_EN_SHIFT)) & TSC_INT_EN_DETECT_INT_EN_MASK)
 
#define TSC_INT_EN_IDLE_SW_INT_EN_MASK   (0x1000U)
 
#define TSC_INT_EN_IDLE_SW_INT_EN_SHIFT   (12U)
 
#define TSC_INT_EN_IDLE_SW_INT_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_IDLE_SW_INT_EN_SHIFT)) & TSC_INT_EN_IDLE_SW_INT_EN_MASK)
 

INT_SIG_EN - Interrupt Signal Enable

#define TSC_INT_SIG_EN_MEASURE_SIG_EN_MASK   (0x1U)
 
#define TSC_INT_SIG_EN_MEASURE_SIG_EN_SHIFT   (0U)
 
#define TSC_INT_SIG_EN_MEASURE_SIG_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_MEASURE_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_MEASURE_SIG_EN_MASK)
 
#define TSC_INT_SIG_EN_DETECT_SIG_EN_MASK   (0x10U)
 
#define TSC_INT_SIG_EN_DETECT_SIG_EN_SHIFT   (4U)
 
#define TSC_INT_SIG_EN_DETECT_SIG_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_DETECT_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_DETECT_SIG_EN_MASK)
 
#define TSC_INT_SIG_EN_VALID_SIG_EN_MASK   (0x100U)
 
#define TSC_INT_SIG_EN_VALID_SIG_EN_SHIFT   (8U)
 
#define TSC_INT_SIG_EN_VALID_SIG_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_VALID_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_VALID_SIG_EN_MASK)
 
#define TSC_INT_SIG_EN_IDLE_SW_SIG_EN_MASK   (0x1000U)
 
#define TSC_INT_SIG_EN_IDLE_SW_SIG_EN_SHIFT   (12U)
 
#define TSC_INT_SIG_EN_IDLE_SW_SIG_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_IDLE_SW_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_IDLE_SW_SIG_EN_MASK)
 

INT_STATUS - Intterrupt Status

#define TSC_INT_STATUS_MEASURE_MASK   (0x1U)
 
#define TSC_INT_STATUS_MEASURE_SHIFT   (0U)
 
#define TSC_INT_STATUS_MEASURE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_MEASURE_SHIFT)) & TSC_INT_STATUS_MEASURE_MASK)
 
#define TSC_INT_STATUS_DETECT_MASK   (0x10U)
 
#define TSC_INT_STATUS_DETECT_SHIFT   (4U)
 
#define TSC_INT_STATUS_DETECT(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_DETECT_SHIFT)) & TSC_INT_STATUS_DETECT_MASK)
 
#define TSC_INT_STATUS_VALID_MASK   (0x100U)
 
#define TSC_INT_STATUS_VALID_SHIFT   (8U)
 
#define TSC_INT_STATUS_VALID(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_VALID_SHIFT)) & TSC_INT_STATUS_VALID_MASK)
 
#define TSC_INT_STATUS_IDLE_SW_MASK   (0x1000U)
 
#define TSC_INT_STATUS_IDLE_SW_SHIFT   (12U)
 
#define TSC_INT_STATUS_IDLE_SW(x)   (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_IDLE_SW_SHIFT)) & TSC_INT_STATUS_IDLE_SW_MASK)
 

DEBUG_MODE - Debug Mode Register

#define TSC_DEBUG_MODE_ADC_CONV_VALUE_MASK   (0xFFFU)
 
#define TSC_DEBUG_MODE_ADC_CONV_VALUE_SHIFT   (0U)
 
#define TSC_DEBUG_MODE_ADC_CONV_VALUE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_CONV_VALUE_SHIFT)) & TSC_DEBUG_MODE_ADC_CONV_VALUE_MASK)
 
#define TSC_DEBUG_MODE_ADC_COCO_MASK   (0x1000U)
 
#define TSC_DEBUG_MODE_ADC_COCO_SHIFT   (12U)
 
#define TSC_DEBUG_MODE_ADC_COCO(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_MASK)
 
#define TSC_DEBUG_MODE_EXT_HWTS_MASK   (0x1F0000U)
 
#define TSC_DEBUG_MODE_EXT_HWTS_SHIFT   (16U)
 
#define TSC_DEBUG_MODE_EXT_HWTS(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_EXT_HWTS_SHIFT)) & TSC_DEBUG_MODE_EXT_HWTS_MASK)
 
#define TSC_DEBUG_MODE_TRIGGER_MASK   (0x1000000U)
 
#define TSC_DEBUG_MODE_TRIGGER_SHIFT   (24U)
 
#define TSC_DEBUG_MODE_TRIGGER(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_TRIGGER_SHIFT)) & TSC_DEBUG_MODE_TRIGGER_MASK)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_MASK   (0x2000000U)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_SHIFT   (25U)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_CLEAR_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_CLEAR_MASK)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_MASK   (0x4000000U)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_SHIFT   (26U)
 
#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_MASK)
 
#define TSC_DEBUG_MODE_DEBUG_EN_MASK   (0x10000000U)
 
#define TSC_DEBUG_MODE_DEBUG_EN_SHIFT   (28U)
 
#define TSC_DEBUG_MODE_DEBUG_EN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_DEBUG_EN_SHIFT)) & TSC_DEBUG_MODE_DEBUG_EN_MASK)
 

DEBUG_MODE2 - Debug Mode Register 2

#define TSC_DEBUG_MODE2_XPUL_PULL_DOWN_MASK   (0x1U)
 
#define TSC_DEBUG_MODE2_XPUL_PULL_DOWN_SHIFT   (0U)
 
#define TSC_DEBUG_MODE2_XPUL_PULL_DOWN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_XPUL_PULL_DOWN_MASK)
 
#define TSC_DEBUG_MODE2_XPUL_PULL_UP_MASK   (0x2U)
 
#define TSC_DEBUG_MODE2_XPUL_PULL_UP_SHIFT   (1U)
 
#define TSC_DEBUG_MODE2_XPUL_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XPUL_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_MASK   (0x4U)
 
#define TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_SHIFT   (2U)
 
#define TSC_DEBUG_MODE2_XPUL_200K_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_DOWN_MASK   (0x8U)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_DOWN_SHIFT   (3U)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_DOWN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_XNUR_PULL_DOWN_MASK)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_UP_MASK   (0x10U)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_UP_SHIFT   (4U)
 
#define TSC_DEBUG_MODE2_XNUR_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XNUR_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_MASK   (0x20U)
 
#define TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_SHIFT   (5U)
 
#define TSC_DEBUG_MODE2_XNUR_200K_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_DOWN_MASK   (0x40U)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_DOWN_SHIFT   (6U)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_DOWN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_YPLL_PULL_DOWN_MASK)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_UP_MASK   (0x80U)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_UP_SHIFT   (7U)
 
#define TSC_DEBUG_MODE2_YPLL_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YPLL_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_MASK   (0x100U)
 
#define TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_SHIFT   (8U)
 
#define TSC_DEBUG_MODE2_YPLL_200K_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_DOWN_MASK   (0x200U)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_DOWN_SHIFT   (9U)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_DOWN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_YNLR_PULL_DOWN_MASK)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_UP_MASK   (0x400U)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_UP_SHIFT   (10U)
 
#define TSC_DEBUG_MODE2_YNLR_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YNLR_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_MASK   (0x800U)
 
#define TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_SHIFT   (11U)
 
#define TSC_DEBUG_MODE2_YNLR_200K_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_DOWN_MASK   (0x1000U)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_DOWN_SHIFT   (12U)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_DOWN(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_WIPER_PULL_DOWN_MASK)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_UP_MASK   (0x2000U)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_UP_SHIFT   (13U)
 
#define TSC_DEBUG_MODE2_WIPER_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_WIPER_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_MASK   (0x4000U)
 
#define TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_SHIFT   (14U)
 
#define TSC_DEBUG_MODE2_WIPER_200K_PULL_UP(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_MASK)
 
#define TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_MASK   (0x10000U)
 
#define TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_SHIFT   (16U)
 
#define TSC_DEBUG_MODE2_DETECT_FOUR_WIRE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_MASK)
 
#define TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_MASK   (0x20000U)
 
#define TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_SHIFT   (17U)
 
#define TSC_DEBUG_MODE2_DETECT_FIVE_WIRE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_MASK)
 
#define TSC_DEBUG_MODE2_STATE_MACHINE_MASK   (0x700000U)
 
#define TSC_DEBUG_MODE2_STATE_MACHINE_SHIFT   (20U)
 
#define TSC_DEBUG_MODE2_STATE_MACHINE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_STATE_MACHINE_SHIFT)) & TSC_DEBUG_MODE2_STATE_MACHINE_MASK)
 
#define TSC_DEBUG_MODE2_INTERMEDIATE_MASK   (0x800000U)
 
#define TSC_DEBUG_MODE2_INTERMEDIATE_SHIFT   (23U)
 
#define TSC_DEBUG_MODE2_INTERMEDIATE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_INTERMEDIATE_SHIFT)) & TSC_DEBUG_MODE2_INTERMEDIATE_MASK)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_MASK   (0x1000000U)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_SHIFT   (24U)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_MASK)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_MASK   (0x10000000U)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_SHIFT   (28U)
 
#define TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_MASK)
 
#define TSC_DEBUG_MODE2_DE_GLITCH_MASK   (0x60000000U)
 
#define TSC_DEBUG_MODE2_DE_GLITCH_SHIFT   (29U)
 
#define TSC_DEBUG_MODE2_DE_GLITCH(x)   (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DE_GLITCH_SHIFT)) & TSC_DEBUG_MODE2_DE_GLITCH_MASK)
 

Detailed Description

Macro Definition Documentation

◆ TSC_BASIC_SETTING_AUTO_MEASURE

#define TSC_BASIC_SETTING_AUTO_MEASURE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_AUTO_MEASURE_SHIFT)) & TSC_BASIC_SETTING_AUTO_MEASURE_MASK)

AUTO_MEASURE - Auto Measure 0b0..Disable Auto Measure 0b1..Auto Measure

◆ TSC_BASIC_SETTING_MEASURE_DELAY_TIME

#define TSC_BASIC_SETTING_MEASURE_DELAY_TIME (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_MEASURE_DELAY_TIME_SHIFT)) & TSC_BASIC_SETTING_MEASURE_DELAY_TIME_MASK)

MEASURE_DELAY_TIME - Measure Delay Time

◆ TSC_BASIC_SETTING_WIRE_4_5

#define TSC_BASIC_SETTING_WIRE_4_5 (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_BASIC_SETTING_WIRE_4_5_SHIFT)) & TSC_BASIC_SETTING_WIRE_4_5_MASK)

WIRE_4_5 - 4/5 Wire detection 0b0..4-Wire Detection Mode 0b1..5-Wire Detection Mode

◆ TSC_DEBUG_MODE2_DE_GLITCH

#define TSC_DEBUG_MODE2_DE_GLITCH (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DE_GLITCH_SHIFT)) & TSC_DEBUG_MODE2_DE_GLITCH_MASK)

DE_GLITCH 0b00..Normal function: 0x1fff ipg clock cycles; Low power mode: 0x9 low power clock cycles 0b01..Normal function: 0xfff ipg clock cycles; Low power mode: :0x7 low power clock cycles 0b10..Normal function: 0x7ff ipg clock cycles; Low power mode:0x5 low power clock cycles 0b11..Normal function: 0x3 ipg clock cycles; Low power mode:0x3 low power clock cycles

◆ TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE

#define TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_ENABLE_FIVE_WIRE_MASK)

DETECT_ENABLE_FIVE_WIRE - Detect Enable Five Wire 0b0..Do not read five wire detect value, read default value from analogue 0b1..Read five wire detect status from analogue

◆ TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE

#define TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_ENABLE_FOUR_WIRE_MASK)

DETECT_ENABLE_FOUR_WIRE - Detect Enable Four Wire 0b0..Do not read four wire detect value, read default value from analogue 0b1..Read four wire detect status from analogue

◆ TSC_DEBUG_MODE2_DETECT_FIVE_WIRE

#define TSC_DEBUG_MODE2_DETECT_FIVE_WIRE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_FIVE_WIRE_MASK)

DETECT_FIVE_WIRE - Detect Five Wire 0b0..No detect signal 0b1..Yes, there is a detect on the touch screen.

◆ TSC_DEBUG_MODE2_DETECT_FOUR_WIRE

#define TSC_DEBUG_MODE2_DETECT_FOUR_WIRE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_SHIFT)) & TSC_DEBUG_MODE2_DETECT_FOUR_WIRE_MASK)

DETECT_FOUR_WIRE - Detect Four Wire 0b0..No detect signal 0b1..Yes, there is a detect on the touch screen.

◆ TSC_DEBUG_MODE2_INTERMEDIATE

#define TSC_DEBUG_MODE2_INTERMEDIATE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_INTERMEDIATE_SHIFT)) & TSC_DEBUG_MODE2_INTERMEDIATE_MASK)

INTERMEDIATE - Intermediate State 0b0..Not in intermedia 0b1..Intermedia

◆ TSC_DEBUG_MODE2_STATE_MACHINE

#define TSC_DEBUG_MODE2_STATE_MACHINE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_STATE_MACHINE_SHIFT)) & TSC_DEBUG_MODE2_STATE_MACHINE_MASK)

STATE_MACHINE - State Machine 0b000..Idle 0b001..Pre-charge 0b010..Detect 0b011..X-measure 0b100..Y-measure 0b101..Pre-charge 0b110..Detect

◆ TSC_DEBUG_MODE2_WIPER_200K_PULL_UP

#define TSC_DEBUG_MODE2_WIPER_200K_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_WIPER_200K_PULL_UP_MASK)

WIPER_200K_PULL_UP - Wiper Wire 200K Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_WIPER_PULL_DOWN

#define TSC_DEBUG_MODE2_WIPER_PULL_DOWN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_WIPER_PULL_DOWN_MASK)

WIPER_PULL_DOWN - Wiper Wire Pull Down Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_WIPER_PULL_UP

#define TSC_DEBUG_MODE2_WIPER_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_WIPER_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_WIPER_PULL_UP_MASK)

WIPER_PULL_UP - Wiper Wire Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XNUR_200K_PULL_UP

#define TSC_DEBUG_MODE2_XNUR_200K_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XNUR_200K_PULL_UP_MASK)

XNUR_200K_PULL_UP - XNUR Wire 200K Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XNUR_PULL_DOWN

#define TSC_DEBUG_MODE2_XNUR_PULL_DOWN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_XNUR_PULL_DOWN_MASK)

XNUR_PULL_DOWN - XNUR Wire Pull Down Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XNUR_PULL_UP

#define TSC_DEBUG_MODE2_XNUR_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XNUR_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XNUR_PULL_UP_MASK)

XNUR_PULL_UP - XNUR Wire Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XPUL_200K_PULL_UP

#define TSC_DEBUG_MODE2_XPUL_200K_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XPUL_200K_PULL_UP_MASK)

XPUL_200K_PULL_UP - XPUL Wire 200K Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XPUL_PULL_DOWN

#define TSC_DEBUG_MODE2_XPUL_PULL_DOWN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_XPUL_PULL_DOWN_MASK)

XPUL_PULL_DOWN - XPUL Wire Pull Down Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_XPUL_PULL_UP

#define TSC_DEBUG_MODE2_XPUL_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_XPUL_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_XPUL_PULL_UP_MASK)

XPUL_PULL_UP - XPUL Wire Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YNLR_200K_PULL_UP

#define TSC_DEBUG_MODE2_YNLR_200K_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YNLR_200K_PULL_UP_MASK)

YNLR_200K_PULL_UP - YNLR Wire 200K Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YNLR_PULL_DOWN

#define TSC_DEBUG_MODE2_YNLR_PULL_DOWN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_YNLR_PULL_DOWN_MASK)

YNLR_PULL_DOWN - YNLR Wire Pull Down Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YNLR_PULL_UP

#define TSC_DEBUG_MODE2_YNLR_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YNLR_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YNLR_PULL_UP_MASK)

YNLR_PULL_UP - YNLR Wire Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YPLL_200K_PULL_UP

#define TSC_DEBUG_MODE2_YPLL_200K_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YPLL_200K_PULL_UP_MASK)

YPLL_200K_PULL_UP - YPLL Wire 200K Pull Up Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YPLL_PULL_DOWN

#define TSC_DEBUG_MODE2_YPLL_PULL_DOWN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_PULL_DOWN_SHIFT)) & TSC_DEBUG_MODE2_YPLL_PULL_DOWN_MASK)

YPLL_PULL_DOWN - YPLL Wire Pull Down Switch 0b0..Close the switch 0b1..Open up the switch

◆ TSC_DEBUG_MODE2_YPLL_PULL_UP

#define TSC_DEBUG_MODE2_YPLL_PULL_UP (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE2_YPLL_PULL_UP_SHIFT)) & TSC_DEBUG_MODE2_YPLL_PULL_UP_MASK)

YPLL_PULL_UP - YPLL Wire Pull Up Switch 0b0..Close the switch 0b1..Open the switch

◆ TSC_DEBUG_MODE_ADC_COCO

#define TSC_DEBUG_MODE_ADC_COCO (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_MASK)

ADC_COCO - ADC COCO Signal

◆ TSC_DEBUG_MODE_ADC_COCO_CLEAR

#define TSC_DEBUG_MODE_ADC_COCO_CLEAR (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_CLEAR_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_CLEAR_MASK)

ADC_COCO_CLEAR - ADC Coco Clear 0b0..No ADC COCO clear 0b1..Set ADC COCO clear

◆ TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE

#define TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_SHIFT)) & TSC_DEBUG_MODE_ADC_COCO_CLEAR_DISABLE_MASK)

ADC_COCO_CLEAR_DISABLE - ADC COCO Clear Disable 0b0..Allow TSC hardware generates ADC COCO clear 0b1..Prevent TSC from generate ADC COCO clear signal

◆ TSC_DEBUG_MODE_ADC_CONV_VALUE

#define TSC_DEBUG_MODE_ADC_CONV_VALUE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_ADC_CONV_VALUE_SHIFT)) & TSC_DEBUG_MODE_ADC_CONV_VALUE_MASK)

ADC_CONV_VALUE - ADC Conversion Value

◆ TSC_DEBUG_MODE_DEBUG_EN

#define TSC_DEBUG_MODE_DEBUG_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_DEBUG_EN_SHIFT)) & TSC_DEBUG_MODE_DEBUG_EN_MASK)

DEBUG_EN - Debug Enable 0b0..Enable debug mode 0b1..Disable debug mode

◆ TSC_DEBUG_MODE_EXT_HWTS

#define TSC_DEBUG_MODE_EXT_HWTS (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_EXT_HWTS_SHIFT)) & TSC_DEBUG_MODE_EXT_HWTS_MASK)

EXT_HWTS - Hardware Trigger Select Signal

◆ TSC_DEBUG_MODE_TRIGGER

#define TSC_DEBUG_MODE_TRIGGER (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_DEBUG_MODE_TRIGGER_SHIFT)) & TSC_DEBUG_MODE_TRIGGER_MASK)

TRIGGER - Trigger 0b0..No hardware trigger signal 0b1..Hardware trigger signal, the signal must last at least 1 ips clock period

◆ TSC_FLOW_CONTROL_DISABLE

#define TSC_FLOW_CONTROL_DISABLE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_DISABLE_SHIFT)) & TSC_FLOW_CONTROL_DISABLE_MASK)

DISABLE 0b0..Leave HW state machine control 0b1..SW set to idle status

◆ TSC_FLOW_CONTROL_DROP_MEASURE

#define TSC_FLOW_CONTROL_DROP_MEASURE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_DROP_MEASURE_SHIFT)) & TSC_FLOW_CONTROL_DROP_MEASURE_MASK)

DROP_MEASURE - Drop Measure 0b0..Do not drop measure for now 0b1..Drop the measure and controller return to idle status

◆ TSC_FLOW_CONTROL_START_MEASURE

#define TSC_FLOW_CONTROL_START_MEASURE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_START_MEASURE_SHIFT)) & TSC_FLOW_CONTROL_START_MEASURE_MASK)

START_MEASURE - Start Measure 0b0..Do not start measure for now 0b1..Start measure the X/Y coordinate value

◆ TSC_FLOW_CONTROL_START_SENSE

#define TSC_FLOW_CONTROL_START_SENSE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_START_SENSE_SHIFT)) & TSC_FLOW_CONTROL_START_SENSE_MASK)

START_SENSE - Start Sense 0b0..Stay at idle status 0b1..Start sense detection and (if auto_measure set to 1) measure after detect a touch

◆ TSC_FLOW_CONTROL_SW_RST

#define TSC_FLOW_CONTROL_SW_RST (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_FLOW_CONTROL_SW_RST_SHIFT)) & TSC_FLOW_CONTROL_SW_RST_MASK)

SW_RST - Soft Reset

◆ TSC_INT_EN_DETECT_INT_EN

#define TSC_INT_EN_DETECT_INT_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_DETECT_INT_EN_SHIFT)) & TSC_INT_EN_DETECT_INT_EN_MASK)

DETECT_INT_EN - Detect Interrupt Enable 0b0..Disable detect interrupt 0b1..Enable detect interrupt

◆ TSC_INT_EN_IDLE_SW_INT_EN

#define TSC_INT_EN_IDLE_SW_INT_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_IDLE_SW_INT_EN_SHIFT)) & TSC_INT_EN_IDLE_SW_INT_EN_MASK)

IDLE_SW_INT_EN - Idle Software Interrupt Enable 0b0..Disable idle software interrupt 0b1..Enable idle software interrupt

◆ TSC_INT_EN_MEASURE_INT_EN

#define TSC_INT_EN_MEASURE_INT_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_EN_MEASURE_INT_EN_SHIFT)) & TSC_INT_EN_MEASURE_INT_EN_MASK)

MEASURE_INT_EN - Measure Interrupt Enable 0b0..Disable measure interrupt 0b1..Enable measure interrupt

◆ TSC_INT_SIG_EN_DETECT_SIG_EN

#define TSC_INT_SIG_EN_DETECT_SIG_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_DETECT_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_DETECT_SIG_EN_MASK)

DETECT_SIG_EN - Detect Signal Enable 0b0..Disable detect signal 0b1..Enable detect signal

◆ TSC_INT_SIG_EN_IDLE_SW_SIG_EN

#define TSC_INT_SIG_EN_IDLE_SW_SIG_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_IDLE_SW_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_IDLE_SW_SIG_EN_MASK)

IDLE_SW_SIG_EN - Idle Software Signal Enable 0b0..Disable idle software signal 0b1..Enable idle software signal

◆ TSC_INT_SIG_EN_MEASURE_SIG_EN

#define TSC_INT_SIG_EN_MEASURE_SIG_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_MEASURE_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_MEASURE_SIG_EN_MASK)

MEASURE_SIG_EN - Measure Signal Enable

◆ TSC_INT_SIG_EN_VALID_SIG_EN

#define TSC_INT_SIG_EN_VALID_SIG_EN (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_SIG_EN_VALID_SIG_EN_SHIFT)) & TSC_INT_SIG_EN_VALID_SIG_EN_MASK)

VALID_SIG_EN - Valid Signal Enable 0b0..Disable valid signal 0b1..Enable valid signal

◆ TSC_INT_STATUS_DETECT

#define TSC_INT_STATUS_DETECT (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_DETECT_SHIFT)) & TSC_INT_STATUS_DETECT_MASK)

DETECT - Detect Signal 0b0..Does not exist a detect signal 0b1..Exist detect signal

◆ TSC_INT_STATUS_IDLE_SW

#define TSC_INT_STATUS_IDLE_SW (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_IDLE_SW_SHIFT)) & TSC_INT_STATUS_IDLE_SW_MASK)

IDLE_SW - Idle Software 0b0..Haven't return to idle status 0b1..Already return to idle status

◆ TSC_INT_STATUS_MEASURE

#define TSC_INT_STATUS_MEASURE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_MEASURE_SHIFT)) & TSC_INT_STATUS_MEASURE_MASK)

MEASURE - Measure Signal 0b0..Does not exist a measure signal 0b1..Exist a measure signal

◆ TSC_INT_STATUS_VALID

#define TSC_INT_STATUS_VALID (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_INT_STATUS_VALID_SHIFT)) & TSC_INT_STATUS_VALID_MASK)

VALID - Valid Signal 0b0..There is no touch detected after measurement, indicates that the measured value is not valid 0b1..There is touch detection after measurement, indicates that the measure is valid

◆ TSC_MEASEURE_VALUE_X_VALUE

#define TSC_MEASEURE_VALUE_X_VALUE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_MEASEURE_VALUE_X_VALUE_SHIFT)) & TSC_MEASEURE_VALUE_X_VALUE_MASK)

X_VALUE - X Value

◆ TSC_MEASEURE_VALUE_Y_VALUE

#define TSC_MEASEURE_VALUE_Y_VALUE (   x)    (((uint32_t)(((uint32_t)(x)) << TSC_MEASEURE_VALUE_Y_VALUE_SHIFT)) & TSC_MEASEURE_VALUE_Y_VALUE_MASK)

Y_VALUE - Y Value