FreeCalypso > hg > fc-magnetite
comparison src/aci2/mfw/mfw_bt_geh.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
1 /* | |
2 +-------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8445) $Workfile:: mfw_bt_geh.h $| | |
4 | $Author:: NDH $Revision:: 1 $| | |
5 | CREATED: 22.04.04 $Modtime:: 22.04.04 10:48 $| | |
6 | STATE : code | | |
7 +-------------------------------------------------------------------+ | |
8 | |
9 | |
10 MODULE : MFW_BT | |
11 | |
12 PURPOSE : This module contains the definitions for MFW Bluetooth File Transfer Profile | |
13 | |
14 */ | |
15 | |
16 #ifndef DEF_MFW_BT_GEH_HEADER | |
17 #define DEF_MFW_BT_GEH_HEADER | |
18 | |
19 #include "mfw_bte.h" | |
20 | |
21 | |
22 /* | |
23 ** The signals processed by the Bluetooth Event Handler are defined by the individual profiles, which it serves. | |
24 */ | |
25 typedef union { | |
26 T_MFW_BT_DM_SEC_SIG_DATA dmSecSignals; | |
27 T_MFW_BT_DM_SRCH_SIG_DATA dmSrchSignals; | |
28 T_MFW_BT_DG_SIG_DATA dgSignals; | |
29 T_MFW_BT_AG_SIG_DATA agSignals; | |
30 T_MFW_BT_OPC_SIG_DATA opcSignals; | |
31 T_MFW_BT_OPS_SIG_DATA opsSignals; | |
32 T_MFW_BT_FTC_SIG_DATA ftcSignals; | |
33 T_MFW_BT_FTS_SIG_DATA ftsSignals; | |
34 } T_MFW_BT_SIG_DATA; | |
35 | |
36 | |
37 /* | |
38 ** The events stored in the Event Buffer contain an EventId, Originator and the original Signal Data. | |
39 */ | |
40 typedef struct { | |
41 ULONG event; /* Combination of Event Id and Originator */ | |
42 T_MFW_BT_SIG_DATA data; | |
43 } T_MFW_BT_SIGNALS; | |
44 | |
45 | |
46 /* | |
47 ** BT Originators, used to identify the originating profile of each event | |
48 */ | |
49 typedef enum { | |
50 MFW_BT_DM_SECURITY = 0x10000, | |
51 MFW_BT_DM_SEARCH = 0x20000, | |
52 MFW_BT_DG = 0X30000, | |
53 MFW_BT_AG = 0X40000, | |
54 MFW_BT_OPC = 0X50000, | |
55 MFW_BT_OPS = 0X60000, | |
56 MFW_BT_FTC = 0X70000, | |
57 MFW_BT_FTS = 0X80000, | |
58 | |
59 MFW_BT_MAX_ORIGINATOR /* This should ALWAYS be the final entry */ | |
60 }T_MFW_BT_ORIGINATORS; | |
61 | |
62 | |
63 /* | |
64 ** MFW_BT_MAX_SIG_Q_ENTRIES macro defines the maximum size of the circular buffer in terms of the number of signals which | |
65 ** can be stored in it. *** NOTE : This should be an even number, as the size will be halved if the buffer cannot be created. *** | |
66 */ | |
67 #define MFW_BT_MAX_SIG_Q_ENTRIES 20 | |
68 | |
69 | |
70 /* | |
71 ** The Bluetooth Event handler, in the GPF context, on receipt of the MMI_BT_CB_NOTIFY_IND primitive, will handle up to a maximum | |
72 ** of MFW_BT_MAX_CONSEC_SIG_PROC consecutive events before reposting the MMI_BT_CB_NOTIFY_IND primitive and relinquishing | |
73 ** control. | |
74 */ | |
75 #define MFW_BT_MAX_CONSEC_SIG_PROC 4 | |
76 | |
77 | |
78 /* | |
79 ** Generic Bluetooth Event Handler Prototypes | |
80 */ | |
81 T_MFW_BT_STATUS mfw_bt_ge_enable (void); | |
82 | |
83 void mfw_bt_ge_disable (void); | |
84 | |
85 T_MFW_BT_STATUS mfw_bt_ge_post_event (T_MFW_BT_ORIGINATORS originator, | |
86 ULONG eventId, | |
87 void *data, | |
88 int dataLen); | |
89 | |
90 void mfw_bt_cb_notify_rxd (void); | |
91 | |
92 #endif | |
93 |