No changes

Fork of nRF51822 by Nordic Semiconductor

Committer:
vcoubard
Date:
Mon Jan 11 10:19:18 2016 +0000
Revision:
565:cf03471a4ec4
Parent:
564:77d4fcde8f2a
Child:
567:e1800bd55a9e
Synchronized with git rev 0bcc2e96
Author: Andres Amaya Garcia
Modify shutdown due to BLE API change

The module is updated to comply with the changes to BLE API regarding correct
shutdown functionality. The following changes are introduced to ble-nrf51822:

* Calls to the old static function shutdown in Gap, GattClient, GattServer and
SecurityManager are removed.
* The cleanup function in Gap, GattClient, GattServer and SecurityManager is
renamed to `reset()` and made public.
* The static references inside nRF5xGap, nRF5xGattClient, nRF5xGattServer and
nRF5xSecurityManager to objects of their own class are moved to nRF5xn.
* The static getInstance accessors in nRF5xGap, nRF5xGattClient,
nRF5xGattServer and nRF5xSecurityManager are removed and their functionality is
moved to the implemented virtual accessors in nRF5xn i.e. getGap(),
getGattClient, etc.
* A static function Instance is added to nRF5xn class to make the transport
object accessible across the module.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vcoubard 564:77d4fcde8f2a 1 /* mbed Microcontroller Library
vcoubard 564:77d4fcde8f2a 2 * Copyright (c) 2006-2013 ARM Limited
vcoubard 564:77d4fcde8f2a 3 *
vcoubard 564:77d4fcde8f2a 4 * Licensed under the Apache License, Version 2.0 (the "License");
vcoubard 564:77d4fcde8f2a 5 * you may not use this file except in compliance with the License.
vcoubard 564:77d4fcde8f2a 6 * You may obtain a copy of the License at
vcoubard 564:77d4fcde8f2a 7 *
vcoubard 564:77d4fcde8f2a 8 * http://www.apache.org/licenses/LICENSE-2.0
vcoubard 564:77d4fcde8f2a 9 *
vcoubard 564:77d4fcde8f2a 10 * Unless required by applicable law or agreed to in writing, software
vcoubard 564:77d4fcde8f2a 11 * distributed under the License is distributed on an "AS IS" BASIS,
vcoubard 564:77d4fcde8f2a 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
vcoubard 564:77d4fcde8f2a 13 * See the License for the specific language governing permissions and
vcoubard 564:77d4fcde8f2a 14 * limitations under the License.
vcoubard 564:77d4fcde8f2a 15 */
vcoubard 564:77d4fcde8f2a 16
vcoubard 564:77d4fcde8f2a 17 #ifndef __NRF_DISCOVERED_CHARACTERISTIC_H__
vcoubard 564:77d4fcde8f2a 18 #define __NRF_DISCOVERED_CHARACTERISTIC_H__
vcoubard 564:77d4fcde8f2a 19
vcoubard 564:77d4fcde8f2a 20 #include "ble/DiscoveredCharacteristic.h"
vcoubard 564:77d4fcde8f2a 21 #include "ble_gatt.h"
vcoubard 564:77d4fcde8f2a 22
vcoubard 564:77d4fcde8f2a 23 class nRF5xGattClient; /* forward declaration */
vcoubard 564:77d4fcde8f2a 24
vcoubard 564:77d4fcde8f2a 25 class nRF5xDiscoveredCharacteristic : public DiscoveredCharacteristic {
vcoubard 564:77d4fcde8f2a 26 public:
vcoubard 564:77d4fcde8f2a 27 void setup(nRF5xGattClient *gattcIn,
vcoubard 564:77d4fcde8f2a 28 Gap::Handle_t connectionHandleIn,
vcoubard 564:77d4fcde8f2a 29 ble_gatt_char_props_t propsIn,
vcoubard 564:77d4fcde8f2a 30 GattAttribute::Handle_t declHandleIn,
vcoubard 564:77d4fcde8f2a 31 GattAttribute::Handle_t valueHandleIn);
vcoubard 564:77d4fcde8f2a 32
vcoubard 564:77d4fcde8f2a 33 void setup(nRF5xGattClient *gattcIn,
vcoubard 564:77d4fcde8f2a 34 Gap::Handle_t connectionHandleIn,
vcoubard 564:77d4fcde8f2a 35 UUID::ShortUUIDBytes_t uuidIn,
vcoubard 564:77d4fcde8f2a 36 ble_gatt_char_props_t propsIn,
vcoubard 564:77d4fcde8f2a 37 GattAttribute::Handle_t declHandleIn,
vcoubard 564:77d4fcde8f2a 38 GattAttribute::Handle_t valueHandleIn);
vcoubard 564:77d4fcde8f2a 39 };
vcoubard 564:77d4fcde8f2a 40
rgrover1 388:db85a09c27ef 41 #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */