Nordic stack and drivers for the mbed BLE API
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
source/nRF5xDiscoveredCharacteristic.h@590:3bdd5346ded1, 2016-01-11 (annotated)
- Committer:
- vcoubard
- Date:
- Mon Jan 11 10:19:31 2016 +0000
- Revision:
- 590:3bdd5346ded1
- Parent:
- 570:f162898cb6c4
- Child:
- 591:266079a50c20
Synchronized with git rev 19d1c406
Author: Vincent Coubard
Merge branch 'develop' of https://github.com/ARMmbed/ble-nrf51822 into characteristicDescriptorDiscovery
Who changed what in which revision?
User | Revision | Line number | New 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 | 590:3bdd5346ded1 | 39 | |
vcoubard | 590:3bdd5346ded1 | 40 | void setLastHandle(GattAttribute::Handle_t last) { |
vcoubard | 590:3bdd5346ded1 | 41 | lastHandle = last; |
vcoubard | 590:3bdd5346ded1 | 42 | } |
vcoubard | 564:77d4fcde8f2a | 43 | }; |
vcoubard | 564:77d4fcde8f2a | 44 | |
rgrover1 | 388:db85a09c27ef | 45 | #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */ |