gap.h (2dceb1d6118d6fab7a20ac5f44c01164f505746b) | gap.h (88a03c8d0148d7fc90fe73b0a91b480a1329aab2) |
---|---|
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 --- 125 unchanged lines hidden (view full) --- 134 * @brief Get HCI connection role 135 * @param con_handle 136 * @result hci_role_t HCI_ROLE_MASTER / HCI_ROLE_SLAVE / HCI_ROLE_INVALID (if connection does not exist) 137 */ 138hci_role_t gap_get_role(hci_con_handle_t connection_handle); 139 140// Classic 141 | 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 --- 125 unchanged lines hidden (view full) --- 134 * @brief Get HCI connection role 135 * @param con_handle 136 * @result hci_role_t HCI_ROLE_MASTER / HCI_ROLE_SLAVE / HCI_ROLE_INVALID (if connection does not exist) 137 */ 138hci_role_t gap_get_role(hci_con_handle_t connection_handle); 139 140// Classic 141 |
142/** 143 * @brief Request role switch 144 * @note this only requests the role switch. A HCI_EVENT_ROLE_CHANGE is emitted and its status field will indicate if the switch was succesful 145 * @param addr 146 * @param hci_role_t HCI_ROLE_MASTER / HCI_ROLE_SLAVE 147 * @result status 148 */ 149uint8_t gap_request_role(bd_addr_t addr, hci_role_t role); 150 |
|
142/** 143 * @brief Sets local name. 144 * @note has to be done before stack starts up 145 * @note Default name is 'BTstack 00:00:00:00:00:00' 146 * @note '00:00:00:00:00:00' in local_name will be replaced with actual bd addr 147 * @param name is not copied, make sure memory is accessible during stack startup 148 */ 149void gap_set_local_name(const char * local_name); --- 540 unchanged lines hidden (view full) --- 690 691/** 692 * @brief Get own addr type and address used for LE 693 */ 694void gap_le_get_own_address(uint8_t * addr_type, bd_addr_t addr); 695 696 697/** | 151/** 152 * @brief Sets local name. 153 * @note has to be done before stack starts up 154 * @note Default name is 'BTstack 00:00:00:00:00:00' 155 * @note '00:00:00:00:00:00' in local_name will be replaced with actual bd addr 156 * @param name is not copied, make sure memory is accessible during stack startup 157 */ 158void gap_set_local_name(const char * local_name); --- 540 unchanged lines hidden (view full) --- 699 700/** 701 * @brief Get own addr type and address used for LE 702 */ 703void gap_le_get_own_address(uint8_t * addr_type, bd_addr_t addr); 704 705 706/** |
698 * @brief Get state of connection re-encryptiong for bonded devices when in central role | 707 * @brief Get state of connection re-encryption for bonded devices when in central role |
699 * @note used by gatt_client and att_server to wait for re-encryption 700 * @param con_handle 701 * @return 1 if security setup is active 702 */ 703int gap_reconnect_security_setup_active(hci_con_handle_t con_handle); 704 705 706/* API_END*/ 707 708#if defined __cplusplus 709} 710#endif 711 712#endif // GAP_H | 708 * @note used by gatt_client and att_server to wait for re-encryption 709 * @param con_handle 710 * @return 1 if security setup is active 711 */ 712int gap_reconnect_security_setup_active(hci_con_handle_t con_handle); 713 714 715/* API_END*/ 716 717#if defined __cplusplus 718} 719#endif 720 721#endif // GAP_H |