gap.h (e6c51921b0c9ddf14dd9342e683c192bcd4cc0df) gap.h (b4eb44208c0f004b1854916fa565b0e565f94ef8)
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

--- 151 unchanged lines hidden (view full) ---

160 * @brief Set default link policy settings for all classic ACL links
161 * @param default_link_policy_settings - see LM_LINK_POLICY_* in bluetooth.h
162 * @note common value: LM_LINK_POLICY_ENABLE_ROLE_SWITCH | LM_LINK_POLICY_ENABLE_SNIFF_MODE to enable role switch and sniff mode
163 * @note has to be done before stack starts up
164 */
165void gap_set_default_link_policy_settings(uint16_t default_link_policy_settings);
166
167/**
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

--- 151 unchanged lines hidden (view full) ---

160 * @brief Set default link policy settings for all classic ACL links
161 * @param default_link_policy_settings - see LM_LINK_POLICY_* in bluetooth.h
162 * @note common value: LM_LINK_POLICY_ENABLE_ROLE_SWITCH | LM_LINK_POLICY_ENABLE_SNIFF_MODE to enable role switch and sniff mode
163 * @note has to be done before stack starts up
164 */
165void gap_set_default_link_policy_settings(uint16_t default_link_policy_settings);
166
167/**
168 * @brief Set Allow Role Switch param for outgoing classic ACL links
169 * @param allow_role_switch - true: allow remote device to request role switch, false: stay master
170 */
171void gap_set_allow_role_switch(bool allow_role_switch);
172
173/**
168 * @brief Set link supervision timeout for outgoing classic ACL links
169 * @param default_link_supervision_timeout * 0.625 ms, default 0x7d00 = 20 seconds
170 */
171void gap_set_link_supervision_timeout(uint16_t link_supervision_timeout);
172
173/**
174 * @brief Enable/disable bonding. Default is enabled.
175 * @param enabled

--- 483 unchanged lines hidden ---
174 * @brief Set link supervision timeout for outgoing classic ACL links
175 * @param default_link_supervision_timeout * 0.625 ms, default 0x7d00 = 20 seconds
176 */
177void gap_set_link_supervision_timeout(uint16_t link_supervision_timeout);
178
179/**
180 * @brief Enable/disable bonding. Default is enabled.
181 * @param enabled

--- 483 unchanged lines hidden ---