hci.h (a9904214bd873562c0b8d2280265132a8adb94e6) | hci.h (c0c8a8293ce46e8f8082cf05b50606cfd6b3ded6) |
---|---|
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 --- 765 unchanged lines hidden (view full) --- 774 775 HCI_HALTING_DISCONNECT_ALL_NO_TIMER, 776 HCI_HALTING_DISCONNECT_ALL_TIMER, 777 HCI_HALTING_W4_TIMER, 778 HCI_HALTING_CLOSE, 779 780} hci_substate_t; 781 | 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 --- 765 unchanged lines hidden (view full) --- 774 775 HCI_HALTING_DISCONNECT_ALL_NO_TIMER, 776 HCI_HALTING_DISCONNECT_ALL_TIMER, 777 HCI_HALTING_W4_TIMER, 778 HCI_HALTING_CLOSE, 779 780} hci_substate_t; 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 789#define GAP_TASK_WRITE_PAGE_TIMEOUT 0x80 | 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 789#define GAP_TASK_WRITE_PAGE_TIMEOUT 0x80 790#define GAP_TASK_WRITE_INQUIRY_SCAN_ACTIVITY 0x100 |
790 791enum { 792 // Tasks 793 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0, 794 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1, 795 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2, 796 LE_ADVERTISEMENT_TASKS_SET_ADDRESS = 1 << 3, 797 // State --- 94 unchanged lines hidden (view full) --- 892 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default 893 uint8_t gap_required_encyrption_key_size; 894 uint16_t link_supervision_timeout; 895 gap_security_level_t gap_security_level; 896 gap_security_level_t gap_minimal_service_security_level; 897 gap_security_mode_t gap_security_mode; 898 899 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY | 791 792enum { 793 // Tasks 794 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0, 795 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1, 796 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2, 797 LE_ADVERTISEMENT_TASKS_SET_ADDRESS = 1 << 3, 798 // State --- 94 unchanged lines hidden (view full) --- 893 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default 894 uint8_t gap_required_encyrption_key_size; 895 uint16_t link_supervision_timeout; 896 gap_security_level_t gap_security_level; 897 gap_security_level_t gap_minimal_service_security_level; 898 gap_security_mode_t gap_security_mode; 899 900 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY |
900 | 901 uint16_t inquiry_scan_interval; 902 uint16_t inquiry_scan_window; 903 |
901 bool gap_secure_connections_only_mode; 902#endif 903 904 // single buffer for HCI packet assembly + additional prebuffer for H4 drivers 905 uint8_t * hci_packet_buffer; 906 uint8_t hci_packet_buffer_data[HCI_OUTGOING_PRE_BUFFER_SIZE + HCI_OUTGOING_PACKET_BUFFER_SIZE]; 907 bool hci_packet_buffer_reserved; 908 uint16_t acl_fragmentation_pos; --- 577 unchanged lines hidden --- | 904 bool gap_secure_connections_only_mode; 905#endif 906 907 // single buffer for HCI packet assembly + additional prebuffer for H4 drivers 908 uint8_t * hci_packet_buffer; 909 uint8_t hci_packet_buffer_data[HCI_OUTGOING_PRE_BUFFER_SIZE + HCI_OUTGOING_PACKET_BUFFER_SIZE]; 910 bool hci_packet_buffer_reserved; 911 uint16_t acl_fragmentation_pos; --- 577 unchanged lines hidden --- |