aa

Dependents:   Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal

Fork of nRF51822 by Nordic Semiconductor

Committer:
rgrover1
Date:
Fri May 08 15:33:56 2015 +0100
Revision:
137:aafab7b0a8bd
Parent:
134:df7e7964a9c3
Child:
138:750eca573e18
Synchronized with git rev 9e7dab43
Author: Rohit Grover
implement deleteAllBondedDevices()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 134:df7e7964a9c3 1 /* mbed Microcontroller Library
rgrover1 134:df7e7964a9c3 2 * Copyright (c) 2006-2013 ARM Limited
rgrover1 134:df7e7964a9c3 3 *
rgrover1 134:df7e7964a9c3 4 * Licensed under the Apache License, Version 2.0 (the "License");
rgrover1 134:df7e7964a9c3 5 * you may not use this file except in compliance with the License.
rgrover1 134:df7e7964a9c3 6 * You may obtain a copy of the License at
rgrover1 134:df7e7964a9c3 7 *
rgrover1 134:df7e7964a9c3 8 * http://www.apache.org/licenses/LICENSE-2.0
rgrover1 134:df7e7964a9c3 9 *
rgrover1 134:df7e7964a9c3 10 * Unless required by applicable law or agreed to in writing, software
rgrover1 134:df7e7964a9c3 11 * distributed under the License is distributed on an "AS IS" BASIS,
rgrover1 134:df7e7964a9c3 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rgrover1 134:df7e7964a9c3 13 * See the License for the specific language governing permissions and
rgrover1 134:df7e7964a9c3 14 * limitations under the License.
rgrover1 134:df7e7964a9c3 15 */
rgrover1 134:df7e7964a9c3 16
rgrover1 134:df7e7964a9c3 17 #ifndef _BTLE_SECURITY_H_
rgrover1 134:df7e7964a9c3 18 #define _BTLE_SECURITY_H_
rgrover1 134:df7e7964a9c3 19
rgrover1 134:df7e7964a9c3 20 /**
rgrover1 134:df7e7964a9c3 21 * Enable Nordic's Device Manager, which brings in functionality from the
rgrover1 134:df7e7964a9c3 22 * stack's Security Manager. The Security Manager implements the actual
rgrover1 134:df7e7964a9c3 23 * cryptographic algorithms and protocol exchanges that allow two devices to
rgrover1 134:df7e7964a9c3 24 * securely exchange data and privately detect each other.
rgrover1 134:df7e7964a9c3 25 *
rgrover1 134:df7e7964a9c3 26 * @return BLE_ERROR_NONE on success.
rgrover1 134:df7e7964a9c3 27 */
rgrover1 134:df7e7964a9c3 28 ble_error_t btle_initializeSecurity();
rgrover1 134:df7e7964a9c3 29
rgrover1 137:aafab7b0a8bd 30 /**
rgrover1 137:aafab7b0a8bd 31 * Function for deleting all peer device context and all related bonding
rgrover1 137:aafab7b0a8bd 32 * information from the database.
rgrover1 137:aafab7b0a8bd 33 *
rgrover1 137:aafab7b0a8bd 34 * @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure.
rgrover1 137:aafab7b0a8bd 35 * @retval BLE_ERROR_INVALID_STATE If the API is called without module initialization and/or
rgrover1 137:aafab7b0a8bd 36 * application registration.
rgrover1 137:aafab7b0a8bd 37 */
rgrover1 137:aafab7b0a8bd 38 ble_error_t btle_deleteAllStoredDevices(void);
rgrover1 137:aafab7b0a8bd 39
rgrover1 134:df7e7964a9c3 40 #endif /* _BTLE_SECURITY_H_ */