hci: add page-scan related commands

This commit is contained in:
skoperst 2019-07-11 11:49:22 +03:00
parent 5dfb87efcb
commit 195e82f367
2 changed files with 23 additions and 0 deletions

View File

@ -618,6 +618,12 @@ const hci_cmd_t hci_read_local_name = {
OPCODE(OGF_CONTROLLER_BASEBAND, 0x14), ""
};
/**
*/
const hci_cmd_t hci_read_page_timeout = {
OPCODEX(OGF_CONTROLLER_BASEBAND, 0x17), ""
};
/**
* @param page_timeout (* 0.625 ms)
*/
@ -625,6 +631,20 @@ const hci_cmd_t hci_write_page_timeout = {
OPCODE(OGF_CONTROLLER_BASEBAND, 0x18), "2"
};
/**
*/
const hci_cmd_t hci_read_page_scan_activity = {
OPCODEX(OGF_CONTROLLER_BASEBAND, 0x1B), ""
};
/**
* @param page_scan_interval (* 0.625 ms)
* @param page_scan_window (* 0.625 ms, must be <= page_scan_interval)
*/
const hci_cmd_t hci_write_page_scan_activity = {
OPCODEX(OGF_CONTROLLER_BASEBAND, 0x1C), "22"
};
/**
* @param scan_enable (no, inq, page, inq+page)
*/

View File

@ -117,6 +117,8 @@ extern const hci_cmd_t hci_read_link_supervision_timeout;
extern const hci_cmd_t hci_read_local_extended_ob_data;
extern const hci_cmd_t hci_read_local_extended_oob_data;
extern const hci_cmd_t hci_read_local_name;
extern const hci_cmd_t hci_read_page_timeout;
extern const hci_cmd_t hci_read_page_scan_activity;
extern const hci_cmd_t hci_read_local_oob_data;
extern const hci_cmd_t hci_read_local_supported_commands;
extern const hci_cmd_t hci_read_local_supported_features;
@ -157,6 +159,7 @@ extern const hci_cmd_t hci_write_local_name;
extern const hci_cmd_t hci_write_loopback_mode;
extern const hci_cmd_t hci_write_num_broadcast_retransmissions;
extern const hci_cmd_t hci_write_page_timeout;
extern const hci_cmd_t hci_write_page_scan_activity;
extern const hci_cmd_t hci_write_scan_enable;
extern const hci_cmd_t hci_write_secure_connections_test_mode;
extern const hci_cmd_t hci_write_simple_pairing_debug_mode;