• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 2005-2012 Broadcom Corporation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 
19 /******************************************************************************
20  *
21  *  This is the interface file for hid host call-out functions.
22  *
23  ******************************************************************************/
24 #ifndef BTA_HH_CO_H
25 #define BTA_HH_CO_H
26 
27 #include "bta_hh_api.h"
28 
29 
30 /*******************************************************************************
31 **
32 ** Function         bta_hh_co_data
33 **
34 ** Description      This callout function is executed by HH when data is received
35 **                  in interupt channel.
36 **
37 **
38 ** Returns          void.
39 **
40 *******************************************************************************/
41 BTA_API extern void bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len,
42                                    tBTA_HH_PROTO_MODE  mode, UINT8 sub_class,
43                                    UINT8 ctry_code, BD_ADDR peer_addr, UINT8 app_id);
44 
45 /*******************************************************************************
46 **
47 ** Function         bta_hh_co_open
48 **
49 ** Description      This callout function is executed by HH when connection is
50 **                  opened, and application may do some device specific
51 **                  initialization.
52 **
53 ** Returns          void.
54 **
55 *******************************************************************************/
56 BTA_API extern void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class,
57                                    UINT16 attr_mask, UINT8 app_id);
58 
59 /*******************************************************************************
60 **
61 ** Function         bta_hh_co_close
62 **
63 ** Description      This callout function is executed by HH when connection is
64 **                  closed, and device specific finalizatio nmay be needed.
65 **
66 ** Returns          void.
67 **
68 *******************************************************************************/
69 BTA_API extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
70 
71 #endif /* BTA_HH_CO_H */
72 
73