FreeCalypso > hg > fc-magnetite
comparison src/ui3/mfw/mfw_BtipsBmg.h @ 420:e8ddbb0837ed
src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:09:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
419:59143cd42ec7 | 420:e8ddbb0837ed |
---|---|
1 #ifndef DEF_MFW_BTIPS_BMG | |
2 #define DEF_MFW_BTIPS_BMG | |
3 /* ========================================================= | |
4 * Texas Instruments OMAP(TM) Platform Software | |
5 * (c) Copyright Texas Instruments, Incorporated. All Rights Reserved. | |
6 * | |
7 * Use of this software is controlled by the terms and conditions found | |
8 * in the license agreement under which this software has been supplied. | |
9 * ========================================================== */ | |
10 /* | |
11 $Project name: Basic Bluetooth MMI | |
12 $Project code: | |
13 $Module: Bluetooth BMG MFW | |
14 $File: Mfw_BtipsBmg.h | |
15 $Revision: 1.0 | |
16 $Author: Texas Instruments | |
17 $Date: 26/06/07 | |
18 | |
19 ******************************************************************************** | |
20 | |
21 Description: | |
22 | |
23 This module provides the BTIPS BMG APPlication functionality. | |
24 | |
25 ******************************************************************************** | |
26 $History: Mfw_BtipsBmg.h | |
27 | |
28 26/06/07 Sasken original version | |
29 | |
30 $End | |
31 | |
32 *******************************************************************************/ | |
33 | |
34 | |
35 #define BT_MAX_DEVICE_LIST 10 | |
36 #define MAX_RESPONSES 10 //limit the number of Inquiry responses to 10 | |
37 | |
38 #include <me.h> | |
39 #include <Bttypes.h> | |
40 | |
41 typedef struct _Bmg_DeviceList | |
42 { | |
43 U8 myIndex; | |
44 BD_ADDR bdAddr; | |
45 UBYTE name[BT_MAX_REM_DEV_NAME]; | |
46 }Bmg_DeviceList; | |
47 | |
48 typedef struct _Bmg_ConnectedDeviceList | |
49 { | |
50 U8 myIndex; | |
51 BD_ADDR bdAddr; | |
52 UBYTE name[BT_MAX_REM_DEV_NAME]; | |
53 U32 ServiceId; | |
54 }Bmg_ConnectedDeviceList ; | |
55 | |
56 typedef enum { | |
57 BTIPS_GENERIC_DEVICE_SEARCH=0, | |
58 BTIPS_A2DP_DEVICE_SEARCH, | |
59 BTIPS_OPP_DEVICE_SEARCH, | |
60 BTIPS_HSHF_DEVICE_SEARCH, | |
61 BTIPS_DEVICE_SERVICES_SEARCH, | |
62 BTIPS_CONNECTED_DEVICES_SEARCH | |
63 }BTIPS_SEARCH_TYPES; | |
64 | |
65 typedef enum{ | |
66 | |
67 BTIPS_SDP_SERVICE_FTPS=0, | |
68 BTIPS_SDP_SERVICE_OPPC, | |
69 BTIPS_SDP_SERVICE_OPPS, | |
70 BTIPS_SDP_SERVICE_VG, | |
71 BTIPS_SDP_SERVICE_A2DP, | |
72 BTIPS_MAX_PROFILE_COUNT, | |
73 | |
74 }BTIPS_SERVICE_TYPES; | |
75 | |
76 BOOL mfw_btips_bmgDeviceDelete(const BD_ADDR *bdAddr); | |
77 BOOL mfw_btips_bmgSetPhoneVisibility(BOOL status); | |
78 BOOL mfw_btips_bmgGetPhoneVisibility(void); | |
79 BOOL mfw_btips_bmgSendPin (const BD_ADDR *bdAddr, | |
80 const U8 *pin, | |
81 const U8 len); | |
82 BOOL mfw_btips_bmgBond(const BD_ADDR *bdAddr, | |
83 const U8 *pin, | |
84 const U8 len); | |
85 | |
86 BOOL mfw_btips_bmgSetLocalDeviceName (U8 *name); | |
87 BOOL mfw_btips_bmgGetLocalDeviceName(U8 *name); | |
88 BOOL mfw_btips_bmgSetRemoteDeviceName( const BD_ADDR *bdAddr, U8 *name); | |
89 BOOL mfw_btips_bmgSetDeviceRecord( const BD_ADDR *bdAddr, U32 sdpSericesMask); | |
90 BOOL mfw_btips_bmg_getPairedDevices(Bmg_DeviceList *pairedDeviceList, U32 *count); | |
91 BOOL mfw_btips_bmg_getConnectedDevices(Bmg_ConnectedDeviceList *pairedDeviceList, U32 *count); | |
92 U32 mfw_btips_bmg_getConnectedDevicesCount(void); | |
93 BOOL mfw_btips_bmg_getConnectedDevicesForProfile(U32 profile_num, BD_ADDR *bdAddr,U8 *name, U32 *ServiceId); | |
94 BOOL mfw_btips_bmgDeviceSetConnectPermissionAllow(const BD_ADDR *bdAddr,BOOL permission); | |
95 BOOL mfw_btips_bmgDeviceSetConnectPermissionAsk(const BD_ADDR *bdAddr,BOOL permission); | |
96 U32 mfw_btips_bmgDeviceGetServices(const BD_ADDR *bdAddr); | |
97 BOOL mfw_btips_ftpsGetConnectedDevice (BD_ADDR *bdAddr, U8 *name); | |
98 BOOL mfw_btips_bmgGetDeviceState (const BD_ADDR *bdAddr, BtRemDevState *state); | |
99 BOOL mfw_btips_bmgSetDeviceNameInRecord(const BD_ADDR *bdAddr, UBYTE *name); | |
100 BOOL mfw_btips_bmg_DiscoverServices(const BD_ADDR *bdAddr, SdpServicesMask sdpServicesMask); | |
101 | |
102 | |
103 #endif | |
104 | |
105 |