annotate gsm-fw/include/condat/kbd.h @ 668:94ef3f115ae2

gsm-fw/comlib/cl_list.c: compiles after including config.h and fixedconf.h
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 28 Sep 2014 07:34:57 +0000
parents a712c95b60c1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
662
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 +-----------------------------------------------------------------------------
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 | Project : GSM (6301)
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 | Modul :
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 +-----------------------------------------------------------------------------
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 | Copyright 2002 Texas Instruments Berlin, AG
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 | All rights reserved.
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 |
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 | This file is confidential and a trade secret of Texas
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 | Instruments Berlin, AG
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 | The receipt of or possession of this file does not convey
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 | any rights to reproduce or disclose its contents or to
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 | manufacture, use, or sell anything it may describe, in
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 | whole, or in part, without the specific written consent of
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 | Texas Instruments Berlin, AG.
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 +-----------------------------------------------------------------------------
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 | Purpose : Types definitions for the keybord driver
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 | .
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 +-----------------------------------------------------------------------------
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 #ifndef KBD_H
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 #define KBD_H
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 * typematic rates (character per second)
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 #define KBD_TYPERATE_NONE 0
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 #define KBD_TYPERATE_6 1
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 #define KBD_TYPERATE_8 2
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 #define KBD_TYPERATE_10 3
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 #define KBD_TYPERATE_12 4
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 #define KBD_TYPERATE_15 5
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 #define KBD_TYPERATE_20 6
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 #define KBD_TYPERATE_24 7
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 #define KBD_TYPERATE_30 8
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 * type delay (in milliseconds)
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 #define KBD_TYPEDELAY_250 1
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42 #define KBD_TYPEDELAY_500 2
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43 #define KBD_TYPEDELAY_750 3
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
44 #define KBD_TYPEDELAY_1000 4
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
45
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
46 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
47 * Keyboard operations
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
48 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
49 #define KBD_KEYDOWN 1
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
50 #define KBD_KEYUP 2
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
51 #define KBD_KEYREPEAT 3
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
53 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
54 * Keyboard signals
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
55 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
56 #define KBD_SIGTYPE_STATUSCHG 1
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
57
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
58 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
59 * Driver Control Block
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
60 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
61 typedef struct kbd_DCB_Type
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
62 {
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
63 USHORT TypematicRate;
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
64 USHORT TypematicDelay;
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
65 } kbd_DCB_Type;
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
66
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67 #if defined (NEW_FRAME)
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 * to achieve backward compatibility with older definitions
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 #define drv_SignalCB_Type T_DRV_CB_FUNC
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72 #define drv_SignalID_Type T_DRV_SIGNAL
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73 #define T_VSI_THANDLE USHORT
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 #endif
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76 /* Marcus: Issue 811: 05:09/2002: Start */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
77 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
78 * Number of elements in the keypad arrays
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
79 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
80 #define NUM_KPD_KEYS 32
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
81 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82 * External data
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
83 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
84 extern const UBYTE kbd_map [NUM_KPD_KEYS];
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
85 extern const UBYTE simkbd_map [NUM_KPD_KEYS];
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
86 extern char * const config_map [NUM_KPD_KEYS];
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
87 /* Marcus: Issue 811: 05:09/2002: End */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
88
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89 /*
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
90 * Prototypes
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
91 */
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
92 EXTERN UBYTE kbd_Init (drv_SignalCB_Type in_SignalCBPtr);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
93 EXTERN void kbd_Exit (void);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
94 EXTERN UBYTE kbd_SetConfig (kbd_DCB_Type * in_DCBPtr);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95 EXTERN UBYTE kbd_GetConfig (kbd_DCB_Type * out_DCBPtr);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 EXTERN UBYTE kbd_SetSignal (drv_SignalID_Type * in_SignalIDPtr);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 EXTERN UBYTE kbd_ResetSignal (drv_SignalID_Type * in_SignalIDPtr);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 EXTERN ULONG kbd_GetStatus (void);
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99
a712c95b60c1 gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
100 #endif