Use different read and write buffer sizes. Due to interaction between common transfer...
[kugel-rb.git] / firmware / export / qt1106.h
blob94f3c8f507578cf186881dc8e2519410e8372d77
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 by Frank Gevaerts
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _QT1106_H_
22 #define _QT1106_H_
24 #define QT1106_CT 0x00800000
26 #define QT1106_AKS_DISABLED 0x00000000
27 #define QT1106_AKS_GLOBAL 0x00010000
28 #define QT1106_AKS_MODE1 0x00020000
29 #define QT1106_AKS_MODE2 0x00030000
30 #define QT1106_AKS_MODE3 0x00040000
31 #define QT1106_AKS_MODE4 0x00050000
33 #define QT1106_SLD_WHEEL 0x00000000
34 #define QT1106_SLD_SLIDER 0x00080000
36 #define QT1106_KEY7_NORMAL 0x00000000
37 #define QT1106_KEY7_PROX 0x00100000
39 #define QT1106_MODE_FREE 0x00000000
40 #define QT1106_MODE_LP1 0x00000100
41 #define QT1106_MODE_LP2 0x00000200
42 #define QT1106_MODE_LP3 0x00000300
43 #define QT1106_MODE_LP4 0x00000400
44 #define QT1106_MODE_SYNC 0x00000500
45 #define QT1106_MODE_SLEEP 0x00000600
47 #define QT1106_LPB 0x00000800
48 #define QT1106_DI 0x00001000
50 #define QT1106_MOD_10 0x00000000
51 #define QT1106_MOD_20 0x00002000
52 #define QT1106_MOD_60 0x00004000
53 #define QT1106_MOD_INF 0x00006000
55 #define QT1106_CAL_ALL 0x00000000
56 #define QT1106_CAL_KEYS 0x00000008
57 #define QT1106_CAL_WHEEL 0x00000010
58 #define QT1106_RES_4 0x00000020
59 #define QT1106_RES_8 0x00000040
60 #define QT1106_RES_16 0x00000060
61 #define QT1106_RES_32 0x00000080
62 #define QT1106_RES_64 0x000000A0
63 #define QT1106_RES_128 0x000000C0
64 #define QT1106_RES_256 0x000000E0
67 void init_qt1106(void);
68 void qt1106_wait(void);
69 unsigned int qt1106_io(unsigned int input);
71 #endif