
This example is for interport 8 channel library with only one port pair used.
Channel0 is A0B2,Channel1 is A3B5 and Channel2 is A6B7 are enabled for the 8 channel library.
The SNS_array and SNSK_array masks are calculated by the Qtouch Studio with rules mentioned above.
In this case, the SNS_array and SNSK_array values will be as mentioned below:
SNS_array[0][0]=0x41; (SNS even mask for port pair
1)
SNS_array[0][1]=0x08; (SNS odd mask for port pair 1)
SNS_array[1][0]=0x00; (SNS even mask for port pair
2)
SNS_array[1][1]=0x00; (SNS odd mask for port pair 2)
SNSK_array[0][0]=0x84; (SNSK even mask for port pair
1)
SNSK_array[0][1]=0x20; (SNSK odd mask for port pair
1)
SNSK_array[1][0]=0x00; (SNSK even mask for port pair
2)
SNSK_array[1][1]=0x00; (SNSK odd mask for port pair
2)
As there is no second port pair used for this, so that is why
SNS_array[1][0], SNS_array[1][1],
SNSK_array[0][1] and
SNSK_array[1][1] are having value zero.