gap.h (a8c4e5ade07aff86ca9ca9a83bc6852ecd65387c) | gap.h (78315a58573f370dd679856042aa32fba14bc84a) |
---|---|
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 --- 175 unchanged lines hidden (view full) --- 184 185/** 186 * @brief Get bondable mode. 187 * @return 1 if bondable 188 */ 189int gap_get_bondable_mode(void); 190 191/** | 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 --- 175 unchanged lines hidden (view full) --- 184 185/** 186 * @brief Get bondable mode. 187 * @return 1 if bondable 188 */ 189int gap_get_bondable_mode(void); 190 191/** |
192 * @brief Register filter for rejecting classic connections. Callback will return 1 accept connection, 0 on reject. | 192 * @brief Set security level for all outgoing and incoming connections. Default: LEVEL_2 193 * @param security_level 194 * @note has to be called before services or profiles are initialized |
193 */ | 195 */ |
196void gap_set_security_level(gap_security_level_t security_level); |
|
194 | 197 |
198/** 199 * @brief Get security level 200 * @return security_level 201 */ 202gap_security_level_t gap_get_security_level(void); 203 204/** 205 * @brief Register filter for rejecting classic connections. Callback will return 1 accept connection, 0 on reject. 206 */ |
|
195void gap_register_classic_connection_filter(int (*accept_callback)(bd_addr_t addr)); 196 | 207void gap_register_classic_connection_filter(int (*accept_callback)(bd_addr_t addr)); 208 |
197 | |
198/* Configure Secure Simple Pairing */ 199 200/** 201 * @brief Enable will enable SSP during init. 202 */ 203void gap_ssp_set_enable(int enable); 204 205/** --- 459 unchanged lines hidden --- | 209/* Configure Secure Simple Pairing */ 210 211/** 212 * @brief Enable will enable SSP during init. 213 */ 214void gap_ssp_set_enable(int enable); 215 216/** --- 459 unchanged lines hidden --- |