gap.h (21debf25cf075c585320918ef9822b8f2c2c0ea5) | gap.h (e8ad470ff8f36d7e0f412914df7518a43899ee17) |
---|---|
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 --- 586 unchanged lines hidden (view full) --- 595 * @param link_key_type 596 * @note On most desktop ports, the Link Key DB uses a TLV and there is one TLV storage per 597 * Controller resp. its Bluetooth Address. As the Bluetooth Address is retrieved during 598 * power up, this function only works, when the stack is in working state for these ports. 599 */ 600void gap_store_link_key_for_bd_addr(bd_addr_t addr, link_key_t link_key, link_key_type_t type); 601 602/** | 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 --- 586 unchanged lines hidden (view full) --- 595 * @param link_key_type 596 * @note On most desktop ports, the Link Key DB uses a TLV and there is one TLV storage per 597 * Controller resp. its Bluetooth Address. As the Bluetooth Address is retrieved during 598 * power up, this function only works, when the stack is in working state for these ports. 599 */ 600void gap_store_link_key_for_bd_addr(bd_addr_t addr, link_key_t link_key, link_key_type_t type); 601 602/** |
603 * @brief Get link for remote device with basband address 604 * @param addr 605 * @param link_key (out) is stored here 606 * @param link_key_type (out) is stored here 607 * @note On most desktop ports, the Link Key DB uses a TLV and there is one TLV storage per 608 * Controller resp. its Bluetooth Address. As the Bluetooth Address is retrieved during 609 * power up, this function only works, when the stack is in working state for these ports. 610 */ 611bool gap_get_link_key_for_bd_addr(bd_addr_t addr, link_key_t link_key, link_key_type_t * type); 612 613/** |
|
603 * @brief Setup Link Key iterator 604 * @param it 605 * @returns 1 on success 606 * @note On most desktop ports, the Link Key DB uses a TLV and there is one TLV storage per 607 * Controller resp. its Bluetooth Address. As the Bluetooth Address is retrieved during 608 * power up, this function only works, when the stack is in working state for these ports. 609 */ 610int gap_link_key_iterator_init(btstack_link_key_iterator_t * it); --- 168 unchanged lines hidden --- | 614 * @brief Setup Link Key iterator 615 * @param it 616 * @returns 1 on success 617 * @note On most desktop ports, the Link Key DB uses a TLV and there is one TLV storage per 618 * Controller resp. its Bluetooth Address. As the Bluetooth Address is retrieved during 619 * power up, this function only works, when the stack is in working state for these ports. 620 */ 621int gap_link_key_iterator_init(btstack_link_key_iterator_t * it); --- 168 unchanged lines hidden --- |