summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinu Jella <sjella@codeaurora.org>2013-12-06 16:33:53 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:30:42 -0600
commitb174648fcefdbc89355ee33aa3ba484daaff4029 (patch)
tree5ec5742194953867ed0544e62ee4a1236df0068f
parent6f8ab2001bfe30dd7d4cf8ee0ef9256fd0d01f51 (diff)
downloadhardware_libhardware-b174648fcefdbc89355ee33aa3ba484daaff4029.zip
hardware_libhardware-b174648fcefdbc89355ee33aa3ba484daaff4029.tar.gz
hardware_libhardware-b174648fcefdbc89355ee33aa3ba484daaff4029.tar.bz2
Bluetooth: Header file changes to add new APIs for Test APK
New APIs added to send to test commands and recevie events from bluedroid stack Change-Id: Ibb161b09ef602a6c4e27d38a4c27a45331e1d381 CRs-Fixed: 598650
-rw-r--r--include/hardware/bluetooth.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index 5b5b5e7..2cba754 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -357,6 +357,10 @@ typedef void (*callback_thread_event)(bt_cb_thread_evt evt);
/* Receive any HCI event from controller. Must be in DUT Mode for this callback to be received */
typedef void (*dut_mode_recv_callback)(uint16_t opcode, uint8_t *buf, uint8_t len);
+/** Bluetooth HCI event Callback */
+/* Receive any HCI event from controller for raw commands */
+typedef void (*hci_event_recv_callback)(uint8_t event_code, uint8_t *buf, uint8_t len);
+
/* LE Test mode callbacks
* This callback shall be invoked whenever the le_tx_test, le_rx_test or le_test_end is invoked
* The num_packets is valid only for le_test_end command */
@@ -390,6 +394,7 @@ typedef struct {
dut_mode_recv_callback dut_mode_recv_cb;
le_test_mode_callback le_test_mode_cb;
energy_info_callback energy_info_cb;
+ hci_event_recv_callback hci_event_recv_cb;
} bt_callbacks_t;
typedef void (*alarm_cb)(void *data);
@@ -525,6 +530,10 @@ typedef struct {
/* Send any test HCI (vendor-specific) command to the controller. Must be in DUT Mode */
int (*dut_mode_send)(uint16_t opcode, uint8_t *buf, uint8_t len);
+
+ /* Send any test HCI command to the controller. */
+ int (*hci_cmd_send)(uint16_t opcode, uint8_t *buf, uint8_t len);
+
/** BLE Test Mode APIs */
/* opcode MUST be one of: LE_Receiver_Test, LE_Transmitter_Test, LE_Test_End */
int (*le_test_mode)(uint16_t opcode, uint8_t *buf, uint8_t len);