gap.h (6bcfa63272b7690f07e9d8ca8825fdfb1ee368f2) | gap.h (137715ebdabcc85ab872119f87126c47f631daaa) |
---|---|
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 --- 229 unchanged lines hidden (view full) --- 238 * @brief Get bondable mode. 239 * @return 1 if bondable 240 */ 241int gap_get_bondable_mode(void); 242 243/** 244 * @brief Set security mode for all outgoing and incoming connections. Default: GAP_SECURITY_MODE_4 245 * @param security_mode is GAP_SECURITY_MODE_2 or GAP_SECURITY_MODE_4 | 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 --- 229 unchanged lines hidden (view full) --- 238 * @brief Get bondable mode. 239 * @return 1 if bondable 240 */ 241int gap_get_bondable_mode(void); 242 243/** 244 * @brief Set security mode for all outgoing and incoming connections. Default: GAP_SECURITY_MODE_4 245 * @param security_mode is GAP_SECURITY_MODE_2 or GAP_SECURITY_MODE_4 |
246 * @return status ERROR_CODE_SUCCESS or ERROR_CODE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE |
|
246 */ | 247 */ |
247void gap_set_security_mode(gap_security_mode_t security_mode); | 248uint8_t gap_set_security_mode(gap_security_mode_t security_mode); |
248 249/** 250 * @brief Get security mode 251 * @return security_mode 252 */ 253gap_security_mode_t gap_get_security_mode(void); 254 255/** --- 686 unchanged lines hidden --- | 249 250/** 251 * @brief Get security mode 252 * @return security_mode 253 */ 254gap_security_mode_t gap_get_security_mode(void); 255 256/** --- 686 unchanged lines hidden --- |