author | Mike Kinghan <mikek@symbian.org> |
Mon, 22 Nov 2010 13:48:58 +0000 | |
branch | GCC_SURGE |
changeset 120 | 10294cf40451 |
parent 112 | fdfa12d9a47a |
permissions | -rw-r--r-- |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
1 |
// This component and the accompanying materials are made available |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
2 |
// under the terms of the License "Eclipse Public License v1.0" |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
3 |
// which accompanies this distribution, and is available |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
4 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
5 |
// |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
6 |
// Initial Contributors: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
7 |
// lukasz.forynski@gmail.com |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
8 |
// |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
9 |
// Contributors: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
10 |
// |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
11 |
// Description: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
12 |
// omap3530/beagle_drivers/byd_touch/common/controller.h |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
13 |
// |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
14 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
15 |
#ifndef TOUCH_KEY_CONTROLLER_H_ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
16 |
#define TOUCH_KEY_CONTROLLER_H_ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
17 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
18 |
#include <drivers/iic.h> |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
19 |
#include <e32def.h> |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
20 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
21 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
22 |
// controller specific constants.. |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
23 |
const TUint KMaxNumPoints = 3; |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
24 |
|
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
25 |
|
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
26 |
const TInt KNumColumns = 0x4; // TODO update these values.. |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
27 |
const TInt KNumRows = 0x4; |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
28 |
|
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
29 |
|
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
30 |
typedef void (*TVoidCallback) (TAny*); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
31 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
32 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
33 |
// spi specific constants.. |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
34 |
const TUint KMaxPacketLength = 16; |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
35 |
const TUint KStartByte = 0x80; |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
36 |
const TUint KWrite = 0; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
37 |
const TUint KRead = 1; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
38 |
const TUint KReadCommand = KStartByte | KRead; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
39 |
const TUint KWriteCommand = KStartByte; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
40 |
const TUint KBufGranulatity = 8; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
41 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
42 |
// digitizer specific settings.. |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
43 |
const TUint KResetPin = 93; // This setting does not change (it goes through J4/J5 connectors) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
44 |
const TUint KDataReadyPin = 133; // DAV connected to the GPIO133 (Expansion header pin 15) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
45 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
46 |
const TUint KSpiModule = 2; // McSPI3 |
112
fdfa12d9a47a
SPI update: fixed pin and zero-lengh transfer bugs, added asynchronous trasaction example (test)
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
95
diff
changeset
|
47 |
const TUint KSpiSlaveAddr = 3; // ..slave address 3=> spi taken to 'dvi_data18-dvi_data_23' pins |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
48 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
49 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
50 |
const TConfigSpiV01 KHeader = |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
51 |
{ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
52 |
ESpiWordWidth_8, //iWordWidth |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
53 |
375000,//,93750, //iClkSpeed |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
54 |
ESpiPolarityHighFallingEdge, //iClkMode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
55 |
500, // iTimeoutPeriod |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
56 |
EBigEndian, // iEndianness |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
57 |
EMsbFirst, //iBitOrder |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
58 |
2, //iTransactionWaitCycles |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
59 |
ESpiCSPinActiveLow //iCsPinActiveMode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
60 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
61 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
62 |
// spi interface to the controller |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
63 |
class TTouchControllerInterface |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
64 |
{ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
65 |
public: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
66 |
inline TTouchControllerInterface(); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
67 |
inline TInt Read(TUint8 aRegAddress, TUint8& aValue); |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
68 |
inline TInt ReadMultiple(TUint8 aStartAddress, TInt aNumBytes); |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
69 |
inline TInt Write(TUint8 aRegAddress, TUint8 aValue); |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
70 |
inline TInt WriteMultiple(TUint8 aStartAddress, TInt aNumBytes); |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
71 |
inline TDes& ReadBuff(); |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
72 |
inline TDes& WriteBuff(); |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
73 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
74 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
75 |
private: |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
76 |
TInt iCurrentReadStart; |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
77 |
// SPI duplex transaction with two transfers for each direction |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
78 |
TPckgBuf<TConfigSpiV01> iSpiTransactionHeader; |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
79 |
TBuf8<KMaxPacketLength> iSpiWriteBuffer; |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
80 |
TBuf8<KMaxPacketLength> iSpiReadBuffer; |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
81 |
TIicBusTransfer iSpiTxTransfer; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
82 |
TIicBusTransfer iSpiRxTransfer; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
83 |
TIicBusTransaction iSpiTransaction; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
84 |
TInt iSpiBusId; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
85 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
86 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
87 |
class TouchController |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
88 |
{ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
89 |
public: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
90 |
enum TTouchMode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
91 |
{ |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
92 |
EModeSingle = 0, |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
93 |
EModeMulti, |
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
94 |
EModeGesture |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
95 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
96 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
97 |
enum TResolution |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
98 |
{ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
99 |
ERes10Bits = 0, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
100 |
ERes12Bits |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
101 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
102 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
103 |
enum TGestureType |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
104 |
{ |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
105 |
EClockwiseCircumvolve = 3, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
106 |
EDragLeft = 4, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
107 |
EDragRight = 5, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
108 |
EDragUp = 6, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
109 |
EDragDown = 7, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
110 |
EZoomOut = 8, |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
111 |
EZoomIn = 9 |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
112 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
113 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
114 |
TouchController(); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
115 |
TouchController(TVoidCallback aCallback); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
116 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
117 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
118 |
TInt HardReset(); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
119 |
TInt SoftReset(); |
95
450a8cf0c020
updated byd touch controller handling. needs debugging and update.
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
85
diff
changeset
|
120 |
TInt Configure(TTouchMode aMode); |
85
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
121 |
TInt SetTouchMode(TTouchMode aMode); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
122 |
TInt SetResolution(TResolution aResolution); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
123 |
TInt SetLongerSamplingRate(TUint aRate); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
124 |
TInt SetIrqActiveTime(TUint aIrqActiveTime); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
125 |
TInt SetPanelVoltageStabTime(TUint aVoltageStabilizationTime); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
126 |
TInt SetNumberOfColumns(TUint aNumberOfColumns); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
127 |
TInt SetNumberOfRows(TUint aNumberOfRows); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
128 |
TInt EnableWindowMode(TPoint aXpoint, TPoint aYPoint); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
129 |
TInt DisableWindowMode(); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
130 |
TInt GetMeasurements(TPoint* aPoints, TInt& aNumPoints); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
131 |
TInt NumOfTouches(); |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
132 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
133 |
private: |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
134 |
TInt iCtrlRegsCache[4]; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
135 |
TTouchControllerInterface iInterface; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
136 |
TVoidCallback iCallback; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
137 |
}; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
138 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
139 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
140 |
// BF6917 Register definitions |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
141 |
const TUint8 KControl_0 = 0x0; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
142 |
const TUint8 KControl_0_SWRST = 1 << 7; // SW reset |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
143 |
const TUint8 KControl_0_RM_12 = 1 << 6; // Resolution mode 12 bits if set, 10bits otherwise |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
144 |
const TUint8 KControl_0_MODE_SINGLE = 1 << 3; // single touch mode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
145 |
const TUint8 KControl_0_MODE_MULTI = 5 << 3; // multi-touch mode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
146 |
const TUint8 KControl_0_MODE_GESTURE = 6 << 3; // gesture mode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
147 |
const TUint8 KControl_0_MODE_MASK = 7 << 3; // gesture mode |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
148 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
149 |
const TUint8 KControl_0_LST_MASK = 0x7; // Longer sampling rate: from 5 to 120 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
150 |
const TUint8 KControl_0_LST_5 = 0 << 0; // 5 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
151 |
const TUint8 KControl_0_LST_10 = 1 << 0; // 10 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
152 |
const TUint8 KControl_0_LST_20 = 2 << 0; // 20 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
153 |
const TUint8 KControl_0_LST_40 = 3 << 0; // 40 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
154 |
const TUint8 KControl_0_LST_60 = 4 << 0; // 60 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
155 |
const TUint8 KControl_0_LST_80 = 5 << 0; // 80 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
156 |
const TUint8 KControl_0_LST_100 = 6 << 0; // 100 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
157 |
const TUint8 KControl_0_LST_120 = 7 << 0; // 120 ADC clocks sampling time |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
158 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
159 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
160 |
// Pen Irq Active time (sensiveness) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
161 |
const TUint8 KControl_1 = 0x1; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
162 |
const TUint8 KControl_1_PAT_SHIFT = 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
163 |
const TUint8 KControl_1_PAT_MASK = 7 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
164 |
const TUint8 KControl_1_PAT_100 = 0 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
165 |
const TUint8 KControl_1_PAT_87_5 = 1 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
166 |
const TUint8 KControl_1_PAT_75 = 2 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
167 |
const TUint8 KControl_1_PAT_62_5 = 3 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
168 |
const TUint8 KControl_1_PAT_50 = 4 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
169 |
const TUint8 KControl_1_PAT_37_5 = 5 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
170 |
const TUint8 KControl_1_PAT_25 = 6 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
171 |
const TUint8 KControl_1_PAT_12_5 = 7 << 5; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
172 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
173 |
// Panel Voltage stabilization Time(sensiveness) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
174 |
const TUint8 KControl_1_PVT_SHIFT = 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
175 |
const TUint8 KControl_1_PVT_MASK = 7 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
176 |
const TUint8 KControl_1_PVT_200 = 0 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
177 |
const TUint8 KControl_1_PVT_175 = 1 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
178 |
const TUint8 KControl_1_PVT_150 = 2 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
179 |
const TUint8 KControl_1_PVT_125 = 3 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
180 |
const TUint8 KControl_1_PVT_100 = 4 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
181 |
const TUint8 KControl_1_PVT_75 = 5 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
182 |
const TUint8 KControl_1_PVT_50 = 6 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
183 |
const TUint8 KControl_1_PVT_25 = 7 << 2; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
184 |
const TUint8 KControl_1_WS = 1 << 0; // Window mode enables |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
185 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
186 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
187 |
const TUint8 KControl_2 = 0x2; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
188 |
const TUint8 KControl_2_C_SHIFT = 3; // number of columns |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
189 |
const TUint8 KControl_2_C_MASK = 0xf8; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
190 |
const TUint8 KControl_2_PR_SHIFT = 0; // pull-up resistance |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
191 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
192 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
193 |
const TUint8 KControl_3 = 0x3; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
194 |
const TUint8 KControl_3_R_SHIFT = 4; // number of rows |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
195 |
const TUint8 KControl_3_R_MASK = 0xF0; // number of rows |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
196 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
197 |
const TUint8 KControl_2_R_TEST = 1 << 3; // test mode select |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
198 |
const TUint8 KControl_2_PS_SHIFT = 0; // processing scale (0-7) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
199 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
200 |
const TUint8 KWindowXStart_Msb = 0x4; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
201 |
const TUint8 KWindowXStart_Lsb = 0x5; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
202 |
const TUint8 KWindowXStop_Msb = 0x6; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
203 |
const TUint8 KWindowXStop_Lsb = 0x7; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
204 |
const TUint8 KWindowYStart_Msb = 0x8; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
205 |
const TUint8 KWindowYStart_Lsb = 0x9; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
206 |
const TUint8 KWindowYStop_Msb = 0xa; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
207 |
const TUint8 KWindowYStop_Lsb = 0xb; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
208 |
const TUint8 KMasterReadStartAddr = 0xc; // R/W |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
209 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
210 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
211 |
// data registers |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
212 |
const TUint8 KTouchNumberAndType = 0xd; // R, Touch number and touch type |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
213 |
const TUint8 KTouchNumberAndType_SINGLE = 0 << 3; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
214 |
const TUint8 KTouchNumberAndType_MULTI = 1 << 3; |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
215 |
const TUint8 KTouchNumberAndType_TouchNMask = 7; // touch number (0 - 3) |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
216 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
217 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
218 |
const TUint8 X1_H = 0xe; // R, High byte of x1 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
219 |
const TUint8 X1_L = 0xf; // R, Low byte of x1 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
220 |
const TUint8 Y1_H = 0x10; // R, High byte of y1 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
221 |
const TUint8 Y1_L = 0x11; // R, Low byte of y1 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
222 |
const TUint8 X2_H = 0x12; // R, High byte of x2 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
223 |
const TUint8 X2_L = 0x13; // R, Low byte of x2 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
224 |
const TUint8 Y2_H = 0x14; // R, High byte of y2 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
225 |
const TUint8 Y2_L = 0x15; // R, Low byte of y2 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
226 |
const TUint8 X3_H = 0x16; // R, High byte of x3 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
227 |
const TUint8 X3_L = 0x17; // R, Low byte of x3 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
228 |
const TUint8 Y3_H = 0x18; // R, High byte of y3 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
229 |
const TUint8 Y3_L = 0x19; // R, Low byte of y3 measurement |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
230 |
const TUint8 Ges_H = 0x1a; // R, High byte of gesture information |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
231 |
const TUint8 Ges_L = 0x1b; // R, Low byte of gesture information |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
232 |
const TUint8 TEST_H = 0x1c; // R, Low byte of the test result |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
233 |
const TUint8 TEST_L = 0x1d; // R, Low byte of the test result |
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
234 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
235 |
|
d93b485c1325
updated SPI. Added template touch (byd_touch) -WORKING version,does not work-needs update as I missunderstood how the touchcontroller(chip) works. Submitting in order to share whatever there was-prior to going for holiday
Lukasz Forynski <lukasz.forynski@gmail.com>
parents:
diff
changeset
|
236 |
#endif /* TOUCH_KEY_CONTROLLER_H_ */ |