gap.h (0cbe469026519d0cf795a4bd03f48032fefabcf7) | gap.h (9afaa4d426555cd46725e0caea74f010a121ef1c) |
---|---|
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 --- 257 unchanged lines hidden (view full) --- 266 267/** 268 * @brief Set link supervision timeout for outgoing classic ACL links 269 * @param default_link_supervision_timeout * 0.625 ms, default 0x7d00 = 20 seconds, 0 = no link supervision timeout 270 */ 271void gap_set_link_supervision_timeout(uint16_t link_supervision_timeout); 272 273/** | 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 --- 257 unchanged lines hidden (view full) --- 266 267/** 268 * @brief Set link supervision timeout for outgoing classic ACL links 269 * @param default_link_supervision_timeout * 0.625 ms, default 0x7d00 = 20 seconds, 0 = no link supervision timeout 270 */ 271void gap_set_link_supervision_timeout(uint16_t link_supervision_timeout); 272 273/** |
274 * @brief Enable link watchdog. If no ACL packet is sent within timeout_ms, the link will get disconnected 275 * note: current implementation uses the automatic flush timeout controller feature with a max timeout of 1.28s 276 * @param timeout_ms 277 */ 278void gap_enable_link_watchdog(uint16_t timeout_ms); 279 280/** |
|
274 * @brief Enable/disable bonding. Default is enabled. 275 * @param enabled 276 */ 277void gap_set_bondable_mode(int enabled); 278 279/** 280 * @brief Get bondable mode. 281 * @return 1 if bondable --- 734 unchanged lines hidden (view full) --- 1016 * @note IO Capabilities (Negative) Reply is sent automatically unless ENABLE_EXPLICIT_IO_CAPABILITIES_REPLY 1017 * @param addr 1018 * @return 0 if ok 1019 */ 1020uint8_t gap_ssp_io_capabilities_negative(const bd_addr_t addr); 1021 1022/** 1023 * Send Link Key Reponse | 281 * @brief Enable/disable bonding. Default is enabled. 282 * @param enabled 283 */ 284void gap_set_bondable_mode(int enabled); 285 286/** 287 * @brief Get bondable mode. 288 * @return 1 if bondable --- 734 unchanged lines hidden (view full) --- 1023 * @note IO Capabilities (Negative) Reply is sent automatically unless ENABLE_EXPLICIT_IO_CAPABILITIES_REPLY 1024 * @param addr 1025 * @return 0 if ok 1026 */ 1027uint8_t gap_ssp_io_capabilities_negative(const bd_addr_t addr); 1028 1029/** 1030 * Send Link Key Reponse |
1024 * @note Link Key (Negative) Reply is sent automaticallyu unless ENABLE_EXPLICIT_LINK_KEY_RESPONSE | 1031 * @note Link Key (Negative) Reply is sent automatically unless ENABLE_EXPLICIT_LINK_KEY_RESPONSE |
1025 * @param addr 1026 * @param link_key 1027 * @param type or INVALID_LINK_KEY if link key not available 1028 * @return 0 if ok 1029 */ 1030 uint8_t gap_send_link_key_response(const bd_addr_t addr, link_key_t link_key, link_key_type_t type); 1031 1032/** --- 99 unchanged lines hidden --- | 1032 * @param addr 1033 * @param link_key 1034 * @param type or INVALID_LINK_KEY if link key not available 1035 * @return 0 if ok 1036 */ 1037 uint8_t gap_send_link_key_response(const bd_addr_t addr, link_key_t link_key, link_key_type_t type); 1038 1039/** --- 99 unchanged lines hidden --- |