This example is for interport-interport 16 channel library with two port pair used.
Channel0 is A2B0,Channel1 is A4B3 and Channel2 is A5B6 are enabled in the first port pair. Channel3 is C1D2,Channel4 is C3D3 and Channel5 is C5D4 are enabled in the second port pair.
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]=0x24;
(SNS even mask for port pair
1)
SNS_array[0][1]=0x10;
(SNS odd mask for port pair 1)
SNS_array[1][0]=0x22;
(SNS even mask for port pair
2)
SNS_array[1][1]=0x08;
(SNS odd mask for port pair 2)
SNSK_array[0][0]=0x41;
(SNSK even mask for port pair
1)
SNSK_array[0][1]=0x08;
(SNSK odd mask for port pair
1)
SNSK_array[1][0]=0x14;
(SNSK even mask for port pair
2)
SNSK_array[1][1]=0x08;
(SNSK odd mask for port pair
2)