touch_qm_reg_t

structure

touch_qm_reg_t

Input / Output

Input to the library

Use

Data structure which holds the Register configuration information for QMatrix

This structure contains the data fields that correspond to specific fields in different registers. For a more detailed explanation of the register fields, refer to the device datasheet.

For example, CHLEN field of MCCFG0 is 8 bits wide (bit 8-15 of MGCFG0 register). The user needs to set values from 0 to 255 (0xFF) in the chlen field of this structure. The library will take care of writing this to the appropriate bit position of MCCFG0 register.

Fields

Type

Corresponds to Register

Register Field

div

uint16_t

MGCFG0

DIV

chlen

uint8_t

MGCFG0

CHLEN

selen

uint8_t

MGCFG0

SELEN

dishift

uint8_t

MGCFG1

DISHIFT

sync

uint8_t

MGCFG1

SYNC

spread

uint8_t

MGCFG1

SPREAD

dilen

uint8_t

MGCFG1

DILEN

max

uint16_t

MGCFG1

MAX

acctrl

uint8_t

MGCFG2

ACCTRL

consen

uint8_t

MGCFG2

CONSEN

cxdilen

uint8_t

MGCFG2

CXDILEN

synctim

uint16_t

MGCFG2

SYNCTIM

fsources

uint8_t

DICS

FSOURCES

glen

uint8_t

DICS

GLEN

intvrefsel

uint8_t

DICS

INTVREFSEL

Intrefsel

uint8_t

DICS

INTREFSEL

trim

uint8_t

DICS

TRIM

sources

uint8_t

DICS

SOURCES

shival0

uint16_t

ACSHI0

SHIVAL

shival1

uint16_t

ACSHI1

SHIVAL

shival2

uint16_t

ACSHI2

SHIVAL

shival3

uint16_t

ACSHI3

SHIVAL

shival4

uint16_t

ACSHI4

SHIVAL

shival5

uint16_t

ACSHI5

SHIVAL

shival6

uint16_t

ACSHI6

SHIVAL

shival7

uint16_t

ACSHI7

SHIVAL