summaryrefslogtreecommitdiffstats
path: root/stack/include/hidh_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'stack/include/hidh_api.h')
-rw-r--r--stack/include/hidh_api.h37
1 files changed, 22 insertions, 15 deletions
diff --git a/stack/include/hidh_api.h b/stack/include/hidh_api.h
index bc3f8c8..4662630 100644
--- a/stack/include/hidh_api.h
+++ b/stack/include/hidh_api.h
@@ -1,13 +1,20 @@
-/****************************************************************************
-**
-** Name: hidh_api.h
-**
-** Function: this file contains HID HOST side API definitions
-**
-** Copyright (c) 2002-2004, WIDCOMM Inc., All Rights Reserved.
-** WIDCOMM Bluetooth Core. Proprietary and confidential.
-**
-*****************************************************************************/
+/******************************************************************************
+ *
+ * Copyright (C) 2002-2012 Broadcom Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
#ifndef HIDH_API_H
#define HIDH_API_H
@@ -42,15 +49,15 @@ enum {
*****************************************************************************/
typedef void (tHID_HOST_SDP_CALLBACK) (UINT16 result, UINT16 attr_mask,
- tHID_DEV_SDP_INFO *sdp_rec );
+ tHID_DEV_SDP_INFO *sdp_rec );
/* HID-HOST returns the events in the following table to the application via tHID_HOST_DEV_CALLBACK
-HID_HDEV_EVT_OPEN Connected to device with Interrupt and Control Channels in OPEN state.
+HID_HDEV_EVT_OPEN Connected to device with Interrupt and Control Channels in OPEN state.
Data = NA
HID_HDEV_EVT_CLOSE Connection with device is closed. Data=reason code.
-HID_HDEV_EVT_RETRYING Lost connection is being re-connected.
+HID_HDEV_EVT_RETRYING Lost connection is being re-connected.
Data=Retrial number
-HID_HDEV_EVT_IN_REPORT Device sent an input report Data=Report Type pdata= pointer to BT_HDR
+HID_HDEV_EVT_IN_REPORT Device sent an input report Data=Report Type pdata= pointer to BT_HDR
(GKI buffer having report data.)
HID_HDEV_EVT_HANDSHAKE Device sent SET_REPORT Data=Result-code pdata=NA.
HID_HDEV_EVT_VC_UNPLUG Device sent Virtual Unplug Data=NA. pdata=NA.
@@ -69,7 +76,7 @@ enum
HID_HDEV_EVT_VC_UNPLUG
};
typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle,
- UINT8 event, /* Event from HID-DEVICE. */
+ UINT8 event, /* Event from HID-DEVICE. */
UINT32 data, /* Integer data corresponding to the event.*/
BT_HDR *p_buf ); /* Pointer data corresponding to the event. */