mikroSDK Reference Manual
TSC2003 Touch Controllers Driver

TSC2003 Touch Controller Driver API Reference. More...

Topics

 .
 
 Macro used to configure data byte.
 
 Config nibbles.
 

Macros

#define TSC2003_MAP_PINS(cfg)
 Map adequate control pins.
 

Enumerations

enum  tsc2003_bits_cfg {
  tsc2003_bits_cfg_measure_temp0 , tsc2003_bits_cfg_measure_vbat1 , tsc2003_bits_cfg_measure_in1 , tsc2003_bits_cfg_measure_temp1 = 0x4 ,
  tsc2003_bits_cfg_measure_vbat2 , tsc2003_bits_cfg_measure_in2 , tsc2003_bits_cfg_measure_activate_drivers_x = 0x8 , tsc2003_bits_cfg_measure_activate_drivers_y ,
  tsc2003_bits_cfg_measure_activate_drivers_x_y , tsc2003_bits_cfg_measure_position_x = 0xC , tsc2003_bits_cfg_measure_position_y , tsc2003_bits_cfg_measure_position_z1 ,
  tsc2003_bits_cfg_measure_position_z2
}
 

Macro Definition Documentation

◆ TSC2003_MAP_PINS

#define TSC2003_MAP_PINS ( cfg)
Value:
cfg.i2c_cfg.scl = CTP_SCL; \
cfg.i2c_cfg.sda = CTP_SDA; \
cfg.int_pin = CTP_INT

Enumeration Type Documentation

◆ tsc2003_bits_cfg

Enumerator
tsc2003_bits_cfg_measure_temp0 

Measure ambient temperature method 1.

tsc2003_bits_cfg_measure_vbat1 

Measure main battery voltage.

tsc2003_bits_cfg_measure_in1 

Measure auxiliary input 1.

tsc2003_bits_cfg_measure_temp1 

Measure ambient temperature method 2.

tsc2003_bits_cfg_measure_vbat2 

Measure secondary battery voltage.

tsc2003_bits_cfg_measure_in2 

Measure auxiliary input 2.

tsc2003_bits_cfg_measure_activate_drivers_x 

Activate X- drivers.

tsc2003_bits_cfg_measure_activate_drivers_y 

Activate Y- drivers.

tsc2003_bits_cfg_measure_activate_drivers_x_y 

Activate X-,Y+ plate drivers.

tsc2003_bits_cfg_measure_position_x 

measure X AD conversion.

tsc2003_bits_cfg_measure_position_y 

Measure Y AD conversion.

tsc2003_bits_cfg_measure_position_z1 

Measure Z1 AD conversion result.

tsc2003_bits_cfg_measure_position_z2 

measure Z2 AD conversion result.