diff options
author | Andre Eisenbach <eisenbach@google.com> | 2017-05-11 01:46:53 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-11 01:46:53 +0000 |
commit | 6d7e952b56a8224f330fc5ec007fa280254267b1 (patch) | |
tree | 9a02b0920ba9c6af02c716ff531884fe07f9327c | |
parent | c4068c8a3233ff8095949f3b48f3abc4c67e4058 (diff) | |
parent | 73610a785016a9df4d842a5d4a605c26938a7a9a (diff) | |
download | libhardware-6d7e952b56a8224f330fc5ec007fa280254267b1.tar.gz |
Merge "Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)" am: 4ea8183f5f am: ae85bca70a am: fda14c6da2
am: 73610a7850
Change-Id: I508588948fb870fd8d529068be3500c538c4d59a
-rw-r--r-- | include/hardware/bt_hh.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hardware/bt_hh.h b/include/hardware/bt_hh.h index dad95868..ece3c114 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; |