Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
TARGET_MCU_NRF51822/source/nRF5xDiscoveredCharacteristic.h@638:c90ae1400bf2, 2016-09-14 (annotated)
- Committer:
- Vincent Coubard
- Date:
- Wed Sep 14 14:39:43 2016 +0100
- Revision:
- 638:c90ae1400bf2
Sync with bdab10dc0f90748b6989c8b577771bb403ca6bd8 from ARMmbed/mbed-os.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Vincent Coubard |
638:c90ae1400bf2 | 1 | /* mbed Microcontroller Library |
| Vincent Coubard |
638:c90ae1400bf2 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| Vincent Coubard |
638:c90ae1400bf2 | 3 | * |
| Vincent Coubard |
638:c90ae1400bf2 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| Vincent Coubard |
638:c90ae1400bf2 | 5 | * you may not use this file except in compliance with the License. |
| Vincent Coubard |
638:c90ae1400bf2 | 6 | * You may obtain a copy of the License at |
| Vincent Coubard |
638:c90ae1400bf2 | 7 | * |
| Vincent Coubard |
638:c90ae1400bf2 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Vincent Coubard |
638:c90ae1400bf2 | 9 | * |
| Vincent Coubard |
638:c90ae1400bf2 | 10 | * Unless required by applicable law or agreed to in writing, software |
| Vincent Coubard |
638:c90ae1400bf2 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| Vincent Coubard |
638:c90ae1400bf2 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Vincent Coubard |
638:c90ae1400bf2 | 13 | * See the License for the specific language governing permissions and |
| Vincent Coubard |
638:c90ae1400bf2 | 14 | * limitations under the License. |
| Vincent Coubard |
638:c90ae1400bf2 | 15 | */ |
| Vincent Coubard |
638:c90ae1400bf2 | 16 | |
| Vincent Coubard |
638:c90ae1400bf2 | 17 | #ifndef __NRF_DISCOVERED_CHARACTERISTIC_H__ |
| Vincent Coubard |
638:c90ae1400bf2 | 18 | #define __NRF_DISCOVERED_CHARACTERISTIC_H__ |
| Vincent Coubard |
638:c90ae1400bf2 | 19 | |
| Vincent Coubard |
638:c90ae1400bf2 | 20 | #include "ble/DiscoveredCharacteristic.h" |
| Vincent Coubard |
638:c90ae1400bf2 | 21 | #include "ble_gatt.h" |
| Vincent Coubard |
638:c90ae1400bf2 | 22 | |
| Vincent Coubard |
638:c90ae1400bf2 | 23 | class nRF5xGattClient; /* forward declaration */ |
| Vincent Coubard |
638:c90ae1400bf2 | 24 | |
| Vincent Coubard |
638:c90ae1400bf2 | 25 | class nRF5xDiscoveredCharacteristic : public DiscoveredCharacteristic { |
| Vincent Coubard |
638:c90ae1400bf2 | 26 | public: |
| Vincent Coubard |
638:c90ae1400bf2 | 27 | void setup(nRF5xGattClient *gattcIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 28 | Gap::Handle_t connectionHandleIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 29 | ble_gatt_char_props_t propsIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 30 | GattAttribute::Handle_t declHandleIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 31 | GattAttribute::Handle_t valueHandleIn); |
| Vincent Coubard |
638:c90ae1400bf2 | 32 | |
| Vincent Coubard |
638:c90ae1400bf2 | 33 | void setup(nRF5xGattClient *gattcIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 34 | Gap::Handle_t connectionHandleIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 35 | UUID::ShortUUIDBytes_t uuidIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 36 | ble_gatt_char_props_t propsIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 37 | GattAttribute::Handle_t declHandleIn, |
| Vincent Coubard |
638:c90ae1400bf2 | 38 | GattAttribute::Handle_t valueHandleIn); |
| Vincent Coubard |
638:c90ae1400bf2 | 39 | |
| Vincent Coubard |
638:c90ae1400bf2 | 40 | void setLastHandle(GattAttribute::Handle_t last) { |
| Vincent Coubard |
638:c90ae1400bf2 | 41 | lastHandle = last; |
| Vincent Coubard |
638:c90ae1400bf2 | 42 | } |
| Vincent Coubard |
638:c90ae1400bf2 | 43 | }; |
| Vincent Coubard |
638:c90ae1400bf2 | 44 | |
| Vincent Coubard |
638:c90ae1400bf2 | 45 | #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */ |
