summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemant Gupta <hemantg@codeaurora.org>2013-07-30 16:13:46 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:30:34 -0600
commitcf8c6396334d45eec882f7b06b148bf04ea70f70 (patch)
tree2a21b61d0f1fdffa74c7137ee62a85dd7f6c46a1
parent27026c26526e167fff3b0fbc26dd9ba8cb25fb15 (diff)
downloadhardware_libhardware-cf8c6396334d45eec882f7b06b148bf04ea70f70.zip
hardware_libhardware-cf8c6396334d45eec882f7b06b148bf04ea70f70.tar.gz
hardware_libhardware-cf8c6396334d45eec882f7b06b148bf04ea70f70.tar.bz2
Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)
This patch adds the relevant callback prototyps for Set Idle and Get Idle which is used for setting/getting idle time on HID devices. Without this support TC_HOS_HID_BV_05/06 PTS test cases for HID 1.0 cannot be passed. Change-Id: I4c528a510edd847bc6121ce0b875ae313f090b9c CRs-Fixed: 522511
-rw-r--r--include/hardware/bt_hh.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hardware/bt_hh.h b/include/hardware/bt_hh.h
index dad9586..ece3c11 100644
--- a/include/hardware/bt_hh.h
+++ b/include/hardware/bt_hh.h
@@ -165,6 +165,12 @@ typedef struct {
/** Set the HID proto mode. */
bt_status_t (*set_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode);
+ /** Get the HID Idle Time */
+ bt_status_t (*get_idle_time)(bt_bdaddr_t *bd_addr);
+
+ /** Set the HID Idle Time */
+ bt_status_t (*set_idle_time)(bt_bdaddr_t *bd_addr, uint8_t idleTime);
+
/** Send a GET_REPORT to HID device. */
bt_status_t (*get_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize);
@@ -174,7 +180,7 @@ typedef struct {
/** Send data to HID device. */
bt_status_t (*send_data)(bt_bdaddr_t *bd_addr, char* data);
- /** Closes the interface. */
+ /** Closes the interface. */
void (*cleanup)( void );
} bthh_interface_t;