hci.h (9c1f3c5616276d6ee6644a1c7ac9167e0744813a) | hci.h (32a127304c5c9da6fe53a9a8a37ffbb67c6047e9) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 706 unchanged lines hidden (view full) --- 715 716#ifdef ENABLE_CLASSIC 717 HCI_INIT_WRITE_SIMPLE_PAIRING_MODE, 718 HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE, 719 HCI_INIT_WRITE_INQUIRY_MODE, 720 HCI_INIT_W4_WRITE_INQUIRY_MODE, 721 HCI_INIT_WRITE_SECURE_CONNECTIONS_HOST_ENABLE, 722 HCI_INIT_W4_WRITE_SECURE_CONNECTIONS_HOST_ENABLE, | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 706 unchanged lines hidden (view full) --- 715 716#ifdef ENABLE_CLASSIC 717 HCI_INIT_WRITE_SIMPLE_PAIRING_MODE, 718 HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE, 719 HCI_INIT_WRITE_INQUIRY_MODE, 720 HCI_INIT_W4_WRITE_INQUIRY_MODE, 721 HCI_INIT_WRITE_SECURE_CONNECTIONS_HOST_ENABLE, 722 HCI_INIT_W4_WRITE_SECURE_CONNECTIONS_HOST_ENABLE, |
723 HCI_INIT_WRITE_PAGE_TIMEOUT, 724 HCI_INIT_W4_WRITE_PAGE_TIMEOUT, | |
725 726#ifdef ENABLE_SCO_OVER_HCI 727 // SCO over HCI 728 HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE, 729 HCI_INIT_W4_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE, 730 HCI_INIT_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING, 731 HCI_INIT_W4_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING, 732#endif --- 48 unchanged lines hidden (view full) --- 781 782#define GAP_TASK_SET_LOCAL_NAME 0x01 783#define GAP_TASK_SET_EIR_DATA 0x02 784#define GAP_TASK_SET_CLASS_OF_DEVICE 0x04 785#define GAP_TASK_SET_DEFAULT_LINK_POLICY 0x08 786#define GAP_TASK_WRITE_SCAN_ENABLE 0x10 787#define GAP_TASK_WRITE_PAGE_SCAN_ACTIVITY 0x20 788#define GAP_TASK_WRITE_PAGE_SCAN_TYPE 0x40 | 723 724#ifdef ENABLE_SCO_OVER_HCI 725 // SCO over HCI 726 HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE, 727 HCI_INIT_W4_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE, 728 HCI_INIT_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING, 729 HCI_INIT_W4_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING, 730#endif --- 48 unchanged lines hidden (view full) --- 779 780#define GAP_TASK_SET_LOCAL_NAME 0x01 781#define GAP_TASK_SET_EIR_DATA 0x02 782#define GAP_TASK_SET_CLASS_OF_DEVICE 0x04 783#define GAP_TASK_SET_DEFAULT_LINK_POLICY 0x08 784#define GAP_TASK_WRITE_SCAN_ENABLE 0x10 785#define GAP_TASK_WRITE_PAGE_SCAN_ACTIVITY 0x20 786#define GAP_TASK_WRITE_PAGE_SCAN_TYPE 0x40 |
787#define GAP_TASK_WRITE_PAGE_TIMEOUT 0x80 |
|
789 790enum { 791 // Tasks 792 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0, 793 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1, 794 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2, 795 LE_ADVERTISEMENT_TASKS_SET_ADDRESS = 1 << 3, 796 // State --- 76 unchanged lines hidden (view full) --- 873 bool secure_connections_enable; 874 bool secure_connections_active; 875 inquiry_mode_t inquiry_mode; 876 877#ifdef ENABLE_CLASSIC 878 /* GAP tasks, see GAP_TASK_* */ 879 uint16_t gap_tasks; 880 | 788 789enum { 790 // Tasks 791 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0, 792 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1, 793 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2, 794 LE_ADVERTISEMENT_TASKS_SET_ADDRESS = 1 << 3, 795 // State --- 76 unchanged lines hidden (view full) --- 872 bool secure_connections_enable; 873 bool secure_connections_active; 874 inquiry_mode_t inquiry_mode; 875 876#ifdef ENABLE_CLASSIC 877 /* GAP tasks, see GAP_TASK_* */ 878 uint16_t gap_tasks; 879 |
881 /* write page scan activity, 0xffff is no change */ | 880 /* write page scan activity */ |
882 uint16_t new_page_scan_interval; 883 uint16_t new_page_scan_window; 884 | 881 uint16_t new_page_scan_interval; 882 uint16_t new_page_scan_window; 883 |
885 /* write page scan type, 0xff is no change */ | 884 /* write page scan type */ |
886 uint8_t new_page_scan_type; 887 | 885 uint8_t new_page_scan_type; 886 |
887 /* write page timeout */ 888 uint16_t page_timeout; 889 |
|
888 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default 889 uint8_t gap_required_encyrption_key_size; 890 uint16_t link_supervision_timeout; 891 gap_security_level_t gap_security_level; 892 gap_security_level_t gap_minimal_service_security_level; 893 gap_security_mode_t gap_security_mode; 894 895 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY --- 586 unchanged lines hidden --- | 890 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default 891 uint8_t gap_required_encyrption_key_size; 892 uint16_t link_supervision_timeout; 893 gap_security_level_t gap_security_level; 894 gap_security_level_t gap_minimal_service_security_level; 895 gap_security_mode_t gap_security_mode; 896 897 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY --- 586 unchanged lines hidden --- |