Lines Matching full:n

95 	int			n;  in hci_reset()  local
97 n = sizeof(rp); in hci_reset()
99 NG_HCI_OCF_RESET), (char *) &rp, &n) == ERROR) in hci_reset()
103 fprintf(stdout, "Status: %s [%#02x]\n", in hci_reset()
116 int n; in hci_read_pin_type() local
118 n = sizeof(rp); in hci_read_pin_type()
121 (char *) &rp, &n) == ERROR) in hci_read_pin_type()
125 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_pin_type()
130 fprintf(stdout, "PIN type: %s [%#02x]\n", in hci_read_pin_type()
142 int n; in hci_write_pin_type() local
147 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 1) in hci_write_pin_type()
150 cp.pin_type = (uint8_t) n; in hci_write_pin_type()
158 n = sizeof(rp); in hci_write_pin_type()
162 (char *) &rp , &n) == ERROR) in hci_write_pin_type()
166 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_pin_type()
192 int n, n1; in hci_read_stored_link_key() local
225 n = sizeof(event); in hci_read_stored_link_key()
226 if (hci_recv(s, (char *) &event, &n) != OK) in hci_read_stored_link_key()
229 if (n <= sizeof(event.hdr)) { in hci_read_stored_link_key()
251 fprintf(stdout, "Complete: Status: %s [%#x]\n", in hci_read_stored_link_key()
253 fprintf(stdout, "Maximum Number of keys: %d\n", in hci_read_stored_link_key()
255 fprintf(stdout, "Number of keys read: %d\n", in hci_read_stored_link_key()
265 fprintf(stdout, "Event: Number of keys: %d\n", in hci_read_stored_link_key()
269 for (n = 0; n < event.ep.key.num_keys; n++) { in hci_read_stored_link_key()
271 n + 1, hci_bdaddr2str(&k->bdaddr)); in hci_read_stored_link_key()
275 fprintf(stdout, "\n"); in hci_read_stored_link_key()
301 int32_t n; in hci_write_stored_link_key() local
329 n = sizeof(rp); in hci_write_stored_link_key()
333 (char *) &rp, &n) == ERROR) in hci_write_stored_link_key()
337 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_stored_link_key()
342 fprintf(stdout, "Number of keys written: %d\n", rp.num_keys_written); in hci_write_stored_link_key()
354 int32_t n; in hci_delete_stored_link_key() local
377 n = sizeof(cp); in hci_delete_stored_link_key()
381 (char *) &rp, &n) == ERROR) in hci_delete_stored_link_key()
385 fprintf(stdout, "Status: %s [%#02x]\n", in hci_delete_stored_link_key()
390 fprintf(stdout, "Number of keys deleted: %d\n", rp.num_keys_deleted); in hci_delete_stored_link_key()
401 int n; in hci_change_local_name() local
414 n = sizeof(rp); in hci_change_local_name()
418 (char *) &rp, &n) == ERROR) in hci_change_local_name()
422 fprintf(stdout, "Status: %s [%#02x]\n", in hci_change_local_name()
435 int n; in hci_read_local_name() local
437 n = sizeof(rp); in hci_read_local_name()
440 (char *) &rp, &n) == ERROR) in hci_read_local_name()
444 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_local_name()
449 fprintf(stdout, "Local name: %s\n", rp.name); in hci_read_local_name()
459 int n; in hci_read_connection_accept_timeout() local
461 n = sizeof(rp); in hci_read_connection_accept_timeout()
464 (char *) &rp, &n) == ERROR) in hci_read_connection_accept_timeout()
468 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_connection_accept_timeout()
474 fprintf(stdout, "Connection accept timeout: %.2f msec [%d slots]\n", in hci_read_connection_accept_timeout()
486 int n; in hci_write_connection_accept_timeout() local
491 if (sscanf(argv[0], "%d", &n) != 1 || n < 1 || n > 0xb540) in hci_write_connection_accept_timeout()
494 cp.timeout = (uint16_t) n; in hci_write_connection_accept_timeout()
503 n = sizeof(rp); in hci_write_connection_accept_timeout()
507 (char *) &rp, &n) == ERROR) in hci_write_connection_accept_timeout()
511 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_connection_accept_timeout()
524 int n; in hci_read_page_timeout() local
526 n = sizeof(rp); in hci_read_page_timeout()
529 (char *) &rp, &n) == ERROR) in hci_read_page_timeout()
533 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_page_timeout()
539 fprintf(stdout, "Page timeout: %.2f msec [%d slots]\n", in hci_read_page_timeout()
551 int n; in hci_write_page_timeout() local
556 if (sscanf(argv[0], "%d", &n) != 1 || n < 1 || n > 0xffff) in hci_write_page_timeout()
559 cp.timeout = (uint16_t) n; in hci_write_page_timeout()
568 n = sizeof(rp); in hci_write_page_timeout()
572 (char *) &rp, &n) == ERROR) in hci_write_page_timeout()
576 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_page_timeout()
589 int n; in hci_read_scan_enable() local
591 n = sizeof(rp); in hci_read_scan_enable()
594 (char *) &rp, &n) == ERROR) in hci_read_scan_enable()
598 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_scan_enable()
603 fprintf(stdout, "Scan enable: %s [%#02x]\n", in hci_read_scan_enable()
615 int n; in hci_write_scan_enable() local
620 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 3) in hci_write_scan_enable()
623 cp.scan_enable = (uint8_t) n; in hci_write_scan_enable()
630 n = sizeof(rp); in hci_write_scan_enable()
634 (char *) &rp, &n) == ERROR) in hci_write_scan_enable()
638 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_scan_enable()
651 int n; in hci_read_page_scan_activity() local
653 n = sizeof(rp); in hci_read_page_scan_activity()
656 (char *) &rp, &n) == ERROR) in hci_read_page_scan_activity()
660 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_page_scan_activity()
668 fprintf(stdout, "Page Scan Interval: %.2f msec [%d slots]\n", in hci_read_page_scan_activity()
670 fprintf(stdout, "Page Scan Window: %.2f msec [%d slots]\n", in hci_read_page_scan_activity()
682 int n; in hci_write_page_scan_activity() local
688 if (sscanf(argv[0], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_page_scan_activity()
691 cp.page_scan_interval = (uint16_t) n; in hci_write_page_scan_activity()
694 if (sscanf(argv[1], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_page_scan_activity()
697 cp.page_scan_window = (uint16_t) n; in hci_write_page_scan_activity()
711 n = sizeof(rp); in hci_write_page_scan_activity()
715 (char *) &rp, &n) == ERROR) in hci_write_page_scan_activity()
719 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_page_scan_activity()
732 int n; in hci_read_inquiry_scan_activity() local
734 n = sizeof(rp); in hci_read_inquiry_scan_activity()
737 (char *) &rp, &n) == ERROR) in hci_read_inquiry_scan_activity()
741 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_inquiry_scan_activity()
749 fprintf(stdout, "Inquiry Scan Interval: %.2f msec [%d slots]\n", in hci_read_inquiry_scan_activity()
751 fprintf(stdout, "Inquiry Scan Window: %.2f msec [%d slots]\n", in hci_read_inquiry_scan_activity()
763 int n; in hci_write_inquiry_scan_activity() local
769 if (sscanf(argv[0], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_inquiry_scan_activity()
772 cp.inquiry_scan_interval = (uint16_t) n; in hci_write_inquiry_scan_activity()
775 if (sscanf(argv[1], "%d", &n) != 1 || n < 0x12 || n > 0x1000) in hci_write_inquiry_scan_activity()
778 cp.inquiry_scan_window = (uint16_t) n; in hci_write_inquiry_scan_activity()
793 n = sizeof(rp); in hci_write_inquiry_scan_activity()
797 (char *) &rp, &n) == ERROR) in hci_write_inquiry_scan_activity()
801 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_inquiry_scan_activity()
814 int n; in hci_read_authentication_enable() local
816 n = sizeof(rp); in hci_read_authentication_enable()
819 (char *) &rp, &n) == ERROR) in hci_read_authentication_enable()
823 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_authentication_enable()
828 fprintf(stdout, "Authentication Enable: %s [%d]\n", in hci_read_authentication_enable()
840 int n; in hci_write_authentication_enable() local
845 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 1) in hci_write_authentication_enable()
848 cp.auth_enable = (uint8_t) n; in hci_write_authentication_enable()
856 n = sizeof(rp); in hci_write_authentication_enable()
860 (char *) &rp, &n) == ERROR) in hci_write_authentication_enable()
864 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_authentication_enable()
877 int n; in hci_read_encryption_mode() local
879 n = sizeof(rp); in hci_read_encryption_mode()
882 (char *) &rp, &n) == ERROR) in hci_read_encryption_mode()
886 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_encryption_mode()
891 fprintf(stdout, "Encryption mode: %s [%#02x]\n", in hci_read_encryption_mode()
903 int n; in hci_write_encryption_mode() local
908 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 2) in hci_write_encryption_mode()
911 cp.encryption_mode = (uint8_t) n; in hci_write_encryption_mode()
919 n = sizeof(rp); in hci_write_encryption_mode()
923 (char *) &rp, &n) == ERROR) in hci_write_encryption_mode()
927 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_encryption_mode()
940 int n; in hci_read_class_of_device() local
942 n = sizeof(rp); in hci_read_class_of_device()
945 (char *) &rp, &n) == ERROR) in hci_read_class_of_device()
949 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_class_of_device()
954 fprintf(stdout, "Class: %02x:%02x:%02x\n", in hci_read_class_of_device()
992 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_class_of_device()
1005 int n, in hci_read_voice_settings() local
1010 n = sizeof(rp); in hci_read_voice_settings()
1013 (char *) &rp, &n) == ERROR) in hci_read_voice_settings()
1017 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_voice_settings()
1028 fprintf(stdout, "Voice settings: %#04x\n", rp.settings); in hci_read_voice_settings()
1029 fprintf(stdout, "Input coding: %s [%d]\n", in hci_read_voice_settings()
1031 fprintf(stdout, "Input data format: %s [%d]\n", in hci_read_voice_settings()
1035 fprintf(stdout, "Input sample size: %d bit [%d]\n", in hci_read_voice_settings()
1047 int n; in hci_write_voice_settings() local
1052 if (sscanf(argv[0], "%x", &n) != 1) in hci_write_voice_settings()
1055 cp.settings = (uint16_t) n; in hci_write_voice_settings()
1064 n = sizeof(rp); in hci_write_voice_settings()
1068 (char *) &rp, &n) == ERROR) in hci_write_voice_settings()
1072 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_voice_settings()
1085 int n; in hci_read_number_broadcast_retransmissions() local
1087 n = sizeof(rp); in hci_read_number_broadcast_retransmissions()
1090 (char *) &rp, &n) == ERROR) in hci_read_number_broadcast_retransmissions()
1094 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_number_broadcast_retransmissions()
1099 fprintf(stdout, "Number of broadcast retransmissions: %d\n", in hci_read_number_broadcast_retransmissions()
1111 int n; in hci_write_number_broadcast_retransmissions() local
1116 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 0xff) in hci_write_number_broadcast_retransmissions()
1119 cp.counter = (uint8_t) n; in hci_write_number_broadcast_retransmissions()
1127 n = sizeof(rp); in hci_write_number_broadcast_retransmissions()
1131 (char *) &rp, &n) == ERROR) in hci_write_number_broadcast_retransmissions()
1135 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_number_broadcast_retransmissions()
1148 int n; in hci_read_hold_mode_activity() local
1151 n = sizeof(rp); in hci_read_hold_mode_activity()
1154 (char *) &rp, &n) == ERROR) in hci_read_hold_mode_activity()
1158 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_hold_mode_activity()
1163 fprintf(stdout, "Hold Mode Activities: %#02x\n", rp.hold_mode_activity); in hci_read_hold_mode_activity()
1170 fprintf(stdout, "\n"); in hci_read_hold_mode_activity()
1181 int n; in hci_write_hold_mode_activity() local
1186 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 4) in hci_write_hold_mode_activity()
1189 cp.hold_mode_activity = (uint8_t) n; in hci_write_hold_mode_activity()
1197 n = sizeof(rp); in hci_write_hold_mode_activity()
1201 (char *) &rp, &n) == ERROR) in hci_write_hold_mode_activity()
1205 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_hold_mode_activity()
1218 int n; in hci_read_sco_flow_control_enable() local
1220 n = sizeof(rp); in hci_read_sco_flow_control_enable()
1223 (char *) &rp, &n) == ERROR) in hci_read_sco_flow_control_enable()
1227 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_sco_flow_control_enable()
1232 fprintf(stdout, "SCO flow control %s [%d]\n", in hci_read_sco_flow_control_enable()
1244 int n; in hci_write_sco_flow_control_enable() local
1249 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 1) in hci_write_sco_flow_control_enable()
1252 cp.flow_control = (uint8_t) n; in hci_write_sco_flow_control_enable()
1260 n = sizeof(rp); in hci_write_sco_flow_control_enable()
1264 (char *) &rp, &n) == ERROR) in hci_write_sco_flow_control_enable()
1268 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_sco_flow_control_enable()
1282 int n; in hci_read_link_supervision_timeout() local
1287 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_read_link_supervision_timeout()
1290 cp.con_handle = (uint16_t) (n & 0x0fff); in hci_read_link_supervision_timeout()
1299 n = sizeof(rp); in hci_read_link_supervision_timeout()
1303 (char *) &rp, &n) == ERROR) in hci_read_link_supervision_timeout()
1307 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_link_supervision_timeout()
1314 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_link_supervision_timeout()
1315 fprintf(stdout, "Link supervision timeout: %.2f msec [%d slots]\n", in hci_read_link_supervision_timeout()
1327 int n; in hci_write_link_supervision_timeout() local
1332 if (sscanf(argv[0], "%d", &n) != 1 || n <= 0 || n > 0x0eff) in hci_write_link_supervision_timeout()
1335 cp.con_handle = (uint16_t) (n & 0x0fff); in hci_write_link_supervision_timeout()
1339 if (sscanf(argv[1], "%d", &n) != 1 || n < 0 || n > 0xffff) in hci_write_link_supervision_timeout()
1342 cp.timeout = (uint16_t) (n & 0x0fff); in hci_write_link_supervision_timeout()
1351 n = sizeof(rp); in hci_write_link_supervision_timeout()
1355 (char *) &rp, &n) == ERROR) in hci_write_link_supervision_timeout()
1359 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_link_supervision_timeout()
1372 int n; in hci_read_page_scan_period_mode() local
1374 n = sizeof(rp); in hci_read_page_scan_period_mode()
1377 (char *) &rp, &n) == ERROR) in hci_read_page_scan_period_mode()
1381 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_page_scan_period_mode()
1386 fprintf(stdout, "Page scan period mode: %#02x\n", in hci_read_page_scan_period_mode()
1398 int n; in hci_write_page_scan_period_mode() local
1403 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 2) in hci_write_page_scan_period_mode()
1406 cp.page_scan_period_mode = (n & 0xff); in hci_write_page_scan_period_mode()
1414 n = sizeof(rp); in hci_write_page_scan_period_mode()
1418 (char *) &rp, &n) == ERROR) in hci_write_page_scan_period_mode()
1422 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_page_scan_period_mode()
1435 int n; in hci_read_page_scan_mode() local
1437 n = sizeof(rp); in hci_read_page_scan_mode()
1440 (char *) &rp, &n) == ERROR) in hci_read_page_scan_mode()
1444 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_page_scan_mode()
1449 fprintf(stdout, "Page scan mode: %#02x\n", rp.page_scan_mode); in hci_read_page_scan_mode()
1460 int n; in hci_write_page_scan_mode() local
1465 if (sscanf(argv[0], "%d", &n) != 1 || n < 0 || n > 3) in hci_write_page_scan_mode()
1468 cp.page_scan_mode = (n & 0xff); in hci_write_page_scan_mode()
1476 n = sizeof(rp); in hci_write_page_scan_mode()
1480 (char *) &rp, &n) == ERROR) in hci_write_page_scan_mode()
1484 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_page_scan_mode()
1496 int n; in hci_read_le_host_support() local
1497 n = sizeof(rp); in hci_read_le_host_support()
1500 (char *) &rp, &n) == ERROR) in hci_read_le_host_support()
1504 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_le_host_support()
1509 fprintf(stdout, "LE Host support: %#02x\n", rp.le_supported_host); in hci_read_le_host_support()
1510 fprintf(stdout, "Simultaneous LE Host : %#02x\n", rp.simultaneous_le_host); in hci_read_le_host_support()
1521 int n; in hci_write_le_host_support() local
1527 if (sscanf(argv[1], "%d", &n) != 1 || (n != 0 && n != 1)){ in hci_write_le_host_support()
1528 printf("-ARGC2: %d\n", n); in hci_write_le_host_support()
1531 cp.simultaneous_le_host = (n &1); in hci_write_le_host_support()
1534 if (sscanf(argv[0], "%d", &n) != 1 || (n != 0 && n != 1)){ in hci_write_le_host_support()
1535 printf("+ARGC1: %d\n", n); in hci_write_le_host_support()
1539 cp.le_supported_host = (n &1); in hci_write_le_host_support()
1548 n = sizeof(rp); in hci_write_le_host_support()
1552 (char *) &rp, &n) == ERROR) in hci_write_le_host_support()
1556 fprintf(stdout, "Status: %s [%#02x]\n", in hci_write_le_host_support()
1567 "\nThe Reset command will reset the Host Controller and the Link Manager.\n" \
1568 "After the reset is completed, the current operational state will be lost,\n" \
1569 "the Bluetooth unit will enter standby mode and the Host Controller will\n" \
1570 "automatically revert to the default values for the parameters for which\n" \
1576 "\nThe Read_PIN_Type command is used for the Host to read whether the Link\n" \
1577 "Manager assumes that the Host supports variable PIN codes only a fixed PIN\n" \
1583 "\nThe Write_PIN_Type command is used for the Host to write to the Host\n" \
1584 "Controller whether the Host supports variable PIN codes or only a fixed PIN\n"\
1585 "code.\n\n" \
1591 "\nThe Read_Stored_Link_Key command provides the ability to read one or\n" \
1592 "more link keys stored in the Bluetooth Host Controller. The Bluetooth Host\n" \
1593 "Controller can store a limited number of link keys for other Bluetooth\n" \
1594 "devices.\n\n" \
1600 "\nThe Write_Stored_Link_Key command provides the ability to write one\n" \
1601 "or more link keys to be stored in the Bluetooth Host Controller. The\n" \
1602 "Bluetooth Host Controller can store a limited number of link keys for other\n"\
1603 "Bluetooth devices. If no additional space is available in the Bluetooth\n"\
1604 "Host Controller then no additional link keys will be stored.\n\n" \
1605 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name\n" \
1611 "\nThe Delete_Stored_Link_Key command provides the ability to remove one\n" \
1612 "or more of the link keys stored in the Bluetooth Host Controller. The\n" \
1613 "Bluetooth Host Controller can store a limited number of link keys for other\n"\
1614 "Bluetooth devices.\n\n" \
1620 "\nThe Change_Local_Name command provides the ability to modify the user\n" \
1621 "friendly name for the Bluetooth unit.\n\n" \
1627 "\nThe Read_Local_Name command provides the ability to read the\n" \
1633 "\nThis command will read the value for the Connection_Accept_Timeout\n" \
1634 "configuration parameter. The Connection_Accept_Timeout configuration\n" \
1635 "parameter allows the Bluetooth hardware to automatically deny a\n" \
1636 "connection request after a specified time period has occurred and\n" \
1637 "the new connection is not accepted. Connection Accept Timeout\n" \
1643 "\nThis command will write the value for the Connection_Accept_Timeout\n" \
1644 "configuration parameter.\n\n" \
1650 "\nThis command will read the value for the Page_Timeout configuration\n" \
1651 "parameter. The Page_Timeout configuration parameter defines the\n" \
1652 "maximum time the local Link Manager will wait for a baseband page\n" \
1653 "response from the remote unit at a locally initiated connection\n" \
1659 "\nThis command will write the value for the Page_Timeout configuration\n" \
1660 "parameter.\n\n" \
1666 "\nThis command will read the value for the Scan_Enable parameter. The\n" \
1667 "Scan_Enable parameter controls whether or not the Bluetooth uint\n" \
1668 "will periodically scan for page attempts and/or inquiry requests\n" \
1669 "from other Bluetooth unit.\n\n" \
1670 "\t0x00 - No Scans enabled.\n" \
1671 "\t0x01 - Inquiry Scan enabled. Page Scan disabled.\n" \
1672 "\t0x02 - Inquiry Scan disabled. Page Scan enabled.\n" \
1678 "\nThis command will write the value for the Scan_Enable parameter.\n" \
1679 "The Scan_Enable parameter controls whether or not the Bluetooth\n" \
1680 "unit will periodically scan for page attempts and/or inquiry\n" \
1681 "requests from other Bluetooth unit.\n\n" \
1682 "\t<scan_enable> - dd;\n" \
1683 "\t0 - No Scans enabled.\n" \
1684 "\t1 - Inquiry Scan enabled. Page Scan disabled.\n" \
1685 "\t2 - Inquiry Scan disabled. Page Scan enabled.\n" \
1691 "\nThis command will read the value for Page_Scan_Activity configuration\n" \
1692 "parameters. The Page_Scan_Interval configuration parameter defines the\n" \
1693 "amount of time between consecutive page scans. This time interval is \n" \
1694 "defined from when the Host Controller started its last page scan until\n" \
1695 "it begins the next page scan. The Page_Scan_Window configuration parameter\n" \
1696 "defines the amount of time for the duration of the page scan. The\n" \
1702 "\nThis command will write the value for Page_Scan_Activity configuration\n" \
1703 "parameter. The Page_Scan_Interval configuration parameter defines the\n" \
1704 "amount of time between consecutive page scans. This is defined as the time\n" \
1705 "interval from when the Host Controller started its last page scan until it\n" \
1706 "begins the next page scan. The Page_Scan_Window configuration parameter\n" \
1707 "defines the amount of time for the duration of the page scan. \n" \
1708 "The Page_Scan_Window can only be less than or equal to the Page_Scan_Interval.\n\n" \
1709 "\t<interval> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \
1710 "\t<window> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec",
1715 "\nThis command will read the value for Inquiry_Scan_Activity configuration\n" \
1716 "parameter. The Inquiry_Scan_Interval configuration parameter defines the\n" \
1717 "amount of time between consecutive inquiry scans. This is defined as the\n" \
1718 "time interval from when the Host Controller started its last inquiry scan\n" \
1724 "\nThis command will write the value for Inquiry_Scan_Activity configuration\n"\
1725 "parameter. The Inquiry_Scan_Interval configuration parameter defines the\n" \
1726 "amount of time between consecutive inquiry scans. This is defined as the\n" \
1727 "time interval from when the Host Controller started its last inquiry scan\n" \
1728 "until it begins the next inquiry scan. The Inquiry_Scan_Window configuration\n" \
1729 "parameter defines the amount of time for the duration of the inquiry scan.\n" \
1730 "The Inquiry_Scan_Window can only be less than or equal to the Inquiry_Scan_Interval.\n\n" \
1731 "\t<interval> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \
1732 "\t<window> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec",
1737 "\nThis command will read the value for the Authentication_Enable parameter.\n"\
1738 "The Authentication_Enable parameter controls if the local unit requires\n"\
1739 "to authenticate the remote unit at connection setup (between the\n" \
1740 "Create_Connection command or acceptance of an incoming ACL connection\n"\
1741 "and the corresponding Connection Complete event). At connection setup, only\n"\
1742 "the unit(s) with the Authentication_Enable parameter enabled will try to\n"\
1748 "\nThis command will write the value for the Authentication_Enable parameter.\n"\
1749 "The Authentication_Enable parameter controls if the local unit requires to\n"\
1750 "authenticate the remote unit at connection setup (between the\n" \
1751 "Create_Connection command or acceptance of an incoming ACL connection\n" \
1752 "and the corresponding Connection Complete event). At connection setup, only\n"\
1753 "the unit(s) with the Authentication_Enable parameter enabled will try to\n"\
1759 "\nThis command will read the value for the Encryption_Mode parameter. The\n" \
1760 "Encryption_Mode parameter controls if the local unit requires encryption\n" \
1761 "to the remote unit at connection setup (between the Create_Connection\n" \
1762 "command or acceptance of an incoming ACL connection and the corresponding\n" \
1763 "Connection Complete event). At connection setup, only the unit(s) with\n" \
1764 "the Authentication_Enable parameter enabled and Encryption_Mode parameter\n" \
1765 "enabled will try to encrypt the connection to the other unit.\n\n" \
1766 "\t<encryption_mode>:\n" \
1767 "\t0x00 - Encryption disabled.\n" \
1768 "\t0x01 - Encryption only for point-to-point packets.\n" \
1774 "\tThis command will write the value for the Encryption_Mode parameter.\n" \
1775 "The Encryption_Mode parameter controls if the local unit requires\n" \
1776 "encryption to the remote unit at connection setup (between the\n" \
1777 "Create_Connection command or acceptance of an incoming ACL connection\n" \
1778 "and the corresponding Connection Complete event). At connection setup,\n" \
1779 "only the unit(s) with the Authentication_Enable parameter enabled and\n" \
1780 "Encryption_Mode parameter enabled will try to encrypt the connection to\n" \
1781 "the other unit.\n\n" \
1782 "\t<encryption_mode> (dd)\n" \
1783 "\t0 - Encryption disabled.\n" \
1784 "\t1 - Encryption only for point-to-point packets.\n" \
1790 "\nThis command will read the value for the Class_of_Device parameter.\n" \
1791 "The Class_of_Device parameter is used to indicate the capabilities of\n" \
1797 "\nThis command will write the value for the Class_of_Device parameter.\n" \
1798 "The Class_of_Device parameter is used to indicate the capabilities of \n" \
1799 "the local unit to other units.\n\n" \
1805 "\nThis command will read the values for the Voice_Setting parameter.\n" \
1806 "The Voice_Setting parameter controls all the various settings for voice\n" \
1807 "connections. These settings apply to all voice connections, and cannot be\n" \
1808 "set for individual voice connections. The Voice_Setting parameter controls\n" \
1809 "the configuration for voice connections: Input Coding, Air coding format,\n" \
1815 "\nThis command will write the values for the Voice_Setting parameter.\n" \
1816 "The Voice_Setting parameter controls all the various settings for voice\n" \
1817 "connections. These settings apply to all voice connections, and cannot be\n" \
1818 "set for individual voice connections. The Voice_Setting parameter controls\n" \
1819 "the configuration for voice connections: Input Coding, Air coding format,\n" \
1820 "input data format, Input sample size, and linear PCM parameter.\n\n" \
1826 "\nThis command will read the unit's parameter value for the Number of\n" \
1827 "Broadcast Retransmissions. Broadcast packets are not acknowledged and are\n" \
1833 "\nThis command will write the unit's parameter value for the Number of\n" \
1834 "Broadcast Retransmissions. Broadcast packets are not acknowledged and are\n" \
1835 "unreliable.\n\n" \
1841 "\nThis command will read the value for the Hold_Mode_Activity parameter.\n" \
1842 "The Hold_Mode_Activity value is used to determine what activities should\n" \
1848 "\nThis command will write the value for the Hold_Mode_Activity parameter.\n" \
1849 "The Hold_Mode_Activity value is used to determine what activities should\n" \
1850 "be suspended when the unit is in hold mode.\n\n" \
1851 "\t<settings> (dd) - bit mask:\n" \
1852 "\t0 - Maintain current Power State. Default\n" \
1853 "\t1 - Suspend Page Scan.\n" \
1854 "\t2 - Suspend Inquiry Scan.\n" \
1860 "\nThe Read_SCO_Flow_Control_Enable command provides the ability to read\n" \
1861 "the SCO_Flow_Control_Enable setting. By using this setting, the Host can\n" \
1862 "decide if the Host Controller will send Number Of Completed Packets events\n" \
1863 "for SCO Connection Handles. This setting allows the Host to enable and\n" \
1869 "\nThe Write_SCO_Flow_Control_Enable command provides the ability to write\n" \
1870 "the SCO_Flow_Control_Enable setting. By using this setting, the Host can\n" \
1871 "decide if the Host Controller will send Number Of Completed Packets events\n" \
1872 "for SCO Connection Handles. This setting allows the Host to enable and\n" \
1873 "disable SCO flow control. The SCO_Flow_Control_Enable setting can only be\n" \
1879 "\nThis command will read the value for the Link_Supervision_Timeout\n" \
1880 "parameter for the device. The Link_Supervision_Timeout parameter is used\n" \
1881 "by the master or slave Bluetooth device to monitor link loss. If, for any\n" \
1882 "reason, no Baseband packets are received from that Connection Handle for a\n" \
1883 "duration longer than the Link_Supervision_Timeout, the connection is\n"
1884 "disconnected.\n\n" \
1885 "\t<connection_handle> - dddd; connection handle\n",
1890 "\nThis command will write the value for the Link_Supervision_Timeout\n" \
1891 "parameter for the device. The Link_Supervision_Timeout parameter is used\n" \
1892 "by the master or slave Bluetooth device to monitor link loss. If, for any\n" \
1893 "reason, no Baseband packets are received from that connection handle for a\n" \
1894 "duration longer than the Link_Supervision_Timeout, the connection is\n" \
1895 "disconnected.\n\n" \
1896 "\t<connection_handle> - dddd; connection handle\n" \
1897 "\t<timeout> - dddd; timeout measured in number of baseband slots\n",
1902 "\nThis command is used to read the mandatory Page_Scan_Period_Mode of the\n" \
1903 "local Bluetooth device. Every time an inquiry response message is sent, the\n"\
1904 "Bluetooth device will start a timer (T_mandatory_pscan), the value of which\n"\
1905 "is dependent on the Page_Scan_Period_Mode. As long as this timer has not\n" \
1906 "expired, the Bluetooth device will use the Page_Scan_Period_Mode for all\n" \
1912 "\nThis command is used to write the mandatory Page_Scan_Period_Mode of the\n" \
1913 "local Bluetooth device. Every time an inquiry response message is sent, the\n"\
1914 "Bluetooth device will start a timer (T_mandatory_pscan), the value of which\n"\
1915 "is dependent on the Page_Scan_Period_Mode. As long as this timer has not\n" \
1916 "expired, the Bluetooth device will use the Page_Scan_Period_Mode for all\n" \
1917 "following page scans.\n\n" \
1918 "\t<page_scan_period_mode> - dd; page scan period mode:\n" \
1919 "\t0x00 - P0 (Default)\n" \
1920 "\t0x01 - P1\n" \
1926 "\nThis command is used to read the default page scan mode of the local\n" \
1927 "Bluetooth device. The Page_Scan_Mode parameter indicates the page scan mode\n"\
1928 "that is used for the default page scan. Currently one mandatory page scan\n"\
1929 "mode and three optional page scan modes are defined. Following an inquiry\n" \
1930 "response, if the Baseband timer T_mandatory_pscan has not expired, the\n" \
1936 "\nThis command is used to write the default page scan mode of the local\n" \
1937 "Bluetooth device. The Page_Scan_Mode parameter indicates the page scan mode\n"\
1938 "that is used for the default page scan. Currently, one mandatory page scan\n"\
1939 "mode and three optional page scan modes are defined. Following an inquiry\n"\
1940 "response, if the Baseband timer T_mandatory_pscan has not expired, the\n" \
1941 "mandatory page scan mode must be applied.\n\n" \
1942 "\t<page_scan_mode> - dd; page scan mode:\n" \
1943 "\t0x00 - Mandatory Page Scan Mode (Default)\n" \
1944 "\t0x01 - Optional Page Scan Mode I\n" \
1945 "\t0x02 - Optional Page Scan Mode II\n" \