add hci read/write loopback mode commands

This commit is contained in:
Matthias Ringwald 2015-11-12 11:52:05 +01:00
parent 61123c53f6
commit f3e25de360
2 changed files with 22 additions and 0 deletions

View File

@ -686,6 +686,26 @@ OPCODE(OGF_CONTROLLER_BASEBAND, 0x6d), "11"
// return: status
};
/**
* Testing Commands
*/
/**
*/
const hci_cmd_t hci_read_loopback_mode = {
OPCODE(OGF_TESTING, 0x01), ""
// return: status, loopback mode (0 = off, 1 = local loopback, 2 = remote loopback)
};
/**
* @param loopback_mode
*/
const hci_cmd_t hci_write_loopback_mode = {
OPCODE(OGF_TESTING, 0x01), "1"
// return: status
};
/**
* Informational Parameters

View File

@ -1023,6 +1023,8 @@ extern const hci_cmd_t hci_write_page_timeout;
extern const hci_cmd_t hci_write_scan_enable;
extern const hci_cmd_t hci_write_simple_pairing_mode;
extern const hci_cmd_t hci_write_synchronous_flow_control_enable;
extern const hci_cmd_t hci_read_loopback_mode;
extern const hci_cmd_t hci_write_loopback_mode;
extern const hci_cmd_t hci_le_add_device_to_white_list;
extern const hci_cmd_t hci_le_clear_white_list;