comparison src/cs/services/atp/Bti.h @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 /*
2 +-------------------------------------------------------------------+
3 | PROJECT: GSM-BT (8445) $Workfile:: Bti.h $|
4 | $Author:: Mg $$Revision:: 26 $|
5 | CREATED: 06 April 2000 $Modtime:: 15.03.00 16:01 $|
6 +-------------------------------------------------------------------+
7
8 MODULE : BTI
9
10 PURPOSE : Global definitions for the Bluetooth Interface,
11 which are visible to both sides
12
13 $Log:: /GSM/Condat/MS/SRC/BTI/Bti.h $
14 *
15
16 */
17
18
19 #ifndef BTI_H
20 #define BTI_H
21
22
23
24 /*
25 * Conditional Compiling
26 */
27
28 /*
29 * Constants
30 */
31
32 /* These are the addresses for the headset and the dial-up devices*/
33
34 #define HS_BD_ADDR_BYTE_0 0xbb; /*mvi@140900*/
35 #define HS_BD_ADDR_BYTE_1 0xbb;
36 #define HS_BD_ADDR_BYTE_2 0xbb;
37 #define HS_BD_ADDR_BYTE_3 0xbb;
38 #define HS_BD_ADDR_BYTE_4 0xbb;
39 #define HS_BD_ADDR_BYTE_5 0xbb;
40
41 #define DU_BD_ADDR_BYTE_0 0xcc; /*mvi@140900*/
42 #define DU_BD_ADDR_BYTE_1 0xcc;
43 #define DU_BD_ADDR_BYTE_2 0xcc;
44 #define DU_BD_ADDR_BYTE_3 0xcc;
45 #define DU_BD_ADDR_BYTE_4 0xcc;
46 #define DU_BD_ADDR_BYTE_5 0xcc;
47
48
49 typedef unsigned char T_BTI_DEVICE_TYPE;
50 typedef unsigned short T_BTI_SEARCH_TIME;
51 typedef unsigned short T_BTI_SEARCH_BREAK;
52 typedef unsigned short T_BTI_SCAN_TIME;
53 typedef unsigned short T_BTI_SCAN_BREAK;
54 typedef unsigned char T_BTI_SECURITY_MODE;
55 typedef unsigned char T_BTI_ATTEMPTS;
56 typedef unsigned char T_BTI_MAX_RING;
57 typedef unsigned char T_BTI_BONDING_MODE;
58 typedef unsigned char T_BTI_PARK_MODE;
59
60 typedef struct
61 {
62 T_BTI_SEARCH_TIME search_time;
63 T_BTI_SEARCH_BREAK search_break;
64 T_BTI_SCAN_TIME scan_time;
65 T_BTI_SCAN_BREAK scan_break;
66 T_BTI_SECURITY_MODE security_mode;
67 T_BTI_ATTEMPTS connect_attempts;
68 T_BTI_MAX_RING max_ring;
69 T_BTI_PARK_MODE park_mode;
70 T_BTI_BONDING_MODE bonding;
71 }T_BTI_CONFIG;
72
73 typedef unsigned char T_BTI_RESULT;
74
75
76 typedef unsigned char T_BTI_BD_ADDR;
77 typedef unsigned char T_BTI_BD_NAME;
78 typedef unsigned char T_BTI_PIN;
79
80 typedef unsigned char T_BTI_ERROR_CAUSE;
81
82 typedef unsigned char T_BTI_AUDIO_STATE;
83
84 typedef unsigned char T_BTI_REQ_ID;
85
86 typedef unsigned char T_BTI_RES_ID;
87
88 typedef unsigned char T_BTI_CNF_ID;
89
90 typedef unsigned char T_BTI_IND_ID;
91
92
93 #endif