No changes

Fork of nRF51822 by Nordic Semiconductor

Committer:
vcoubard
Date:
Mon Jan 11 10:19:17 2016 +0000
Revision:
564:77d4fcde8f2a
Parent:
388:db85a09c27ef
Child:
565:cf03471a4ec4
Synchronized with git rev eb5ca380
Author: Vincent Coubard
Add a function to change the lastHandle of a discovered characteristic

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 void setLastHandle(GattAttribute::Handle_t last) {
vcoubard 564:77d4fcde8f2a 41 lastHandle = last;
vcoubard 564:77d4fcde8f2a 42 }
vcoubard 564:77d4fcde8f2a 43 };
vcoubard 564:77d4fcde8f2a 44
rgrover1 388:db85a09c27ef 45 #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */