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