fork
Fork of nRF51822 by
source/nRF51DiscoveredCharacteristic.h@386:52cd618a90b4, 2015-08-13 (annotated)
- Committer:
- elevatorguy
- Date:
- Thu Aug 13 02:33:38 2015 +0000
- Revision:
- 386:52cd618a90b4
- Parent:
- 381:c997e9717fb7
changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rgrover1 | 362:6fa0d4d555f6 | 1 | /* mbed Microcontroller Library |
rgrover1 | 362:6fa0d4d555f6 | 2 | * Copyright (c) 2006-2013 ARM Limited |
rgrover1 | 362:6fa0d4d555f6 | 3 | * |
rgrover1 | 362:6fa0d4d555f6 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
rgrover1 | 362:6fa0d4d555f6 | 5 | * you may not use this file except in compliance with the License. |
rgrover1 | 362:6fa0d4d555f6 | 6 | * You may obtain a copy of the License at |
rgrover1 | 362:6fa0d4d555f6 | 7 | * |
rgrover1 | 362:6fa0d4d555f6 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
rgrover1 | 362:6fa0d4d555f6 | 9 | * |
rgrover1 | 362:6fa0d4d555f6 | 10 | * Unless required by applicable law or agreed to in writing, software |
rgrover1 | 362:6fa0d4d555f6 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
rgrover1 | 362:6fa0d4d555f6 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
rgrover1 | 362:6fa0d4d555f6 | 13 | * See the License for the specific language governing permissions and |
rgrover1 | 362:6fa0d4d555f6 | 14 | * limitations under the License. |
rgrover1 | 362:6fa0d4d555f6 | 15 | */ |
rgrover1 | 362:6fa0d4d555f6 | 16 | |
rgrover1 | 362:6fa0d4d555f6 | 17 | #ifndef __NRF_DISCOVERED_CHARACTERISTIC_H__ |
rgrover1 | 362:6fa0d4d555f6 | 18 | #define __NRF_DISCOVERED_CHARACTERISTIC_H__ |
rgrover1 | 362:6fa0d4d555f6 | 19 | |
rgrover1 | 362:6fa0d4d555f6 | 20 | #include "ble/DiscoveredCharacteristic.h" |
rgrover1 | 362:6fa0d4d555f6 | 21 | #include "ble_gatt.h" |
rgrover1 | 362:6fa0d4d555f6 | 22 | |
rgrover1 | 362:6fa0d4d555f6 | 23 | class nRF51GattClient; /* forward declaration */ |
rgrover1 | 362:6fa0d4d555f6 | 24 | |
rgrover1 | 362:6fa0d4d555f6 | 25 | class nRF51DiscoveredCharacteristic : public DiscoveredCharacteristic { |
rgrover1 | 362:6fa0d4d555f6 | 26 | public: |
rgrover1 | 362:6fa0d4d555f6 | 27 | void setup(nRF51GattClient *gattcIn, |
rgrover1 | 362:6fa0d4d555f6 | 28 | Gap::Handle_t connectionHandleIn, |
rgrover1 | 362:6fa0d4d555f6 | 29 | ble_gatt_char_props_t propsIn, |
rgrover1 | 362:6fa0d4d555f6 | 30 | GattAttribute::Handle_t declHandleIn, |
rgrover1 | 362:6fa0d4d555f6 | 31 | GattAttribute::Handle_t valueHandleIn); |
rgrover1 | 362:6fa0d4d555f6 | 32 | |
rgrover1 | 362:6fa0d4d555f6 | 33 | void setup(nRF51GattClient *gattcIn, |
rgrover1 | 362:6fa0d4d555f6 | 34 | Gap::Handle_t connectionHandleIn, |
rgrover1 | 362:6fa0d4d555f6 | 35 | UUID::ShortUUIDBytes_t uuidIn, |
rgrover1 | 362:6fa0d4d555f6 | 36 | ble_gatt_char_props_t propsIn, |
rgrover1 | 362:6fa0d4d555f6 | 37 | GattAttribute::Handle_t declHandleIn, |
rgrover1 | 362:6fa0d4d555f6 | 38 | GattAttribute::Handle_t valueHandleIn); |
rgrover1 | 362:6fa0d4d555f6 | 39 | }; |
rgrover1 | 362:6fa0d4d555f6 | 40 | |
rgrover1 | 362:6fa0d4d555f6 | 41 | #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */ |