comparison g23m/condat/com/include/kbd_obsolete.h @ 0:509db1a7b7b8

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