fdsf
Fork of nRF51822 by
source/nRF5xDiscoveredCharacteristic.h@616:a8f9b022d8fd, 2016-04-06 (annotated)
- Committer:
- LancasterUniversity
- Date:
- Wed Apr 06 22:39:17 2016 +0100
- Revision:
- 616:a8f9b022d8fd
- Parent:
- 615:65ea2acfc6a2
Synchronized with git rev 67d0ac73
Author: Joe Finney
microbit: Update to indicate when system attributes require intialisation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
LancasterUniversity | 615:65ea2acfc6a2 | 1 | /* mbed Microcontroller Library |
LancasterUniversity | 615:65ea2acfc6a2 | 2 | * Copyright (c) 2006-2013 ARM Limited |
LancasterUniversity | 615:65ea2acfc6a2 | 3 | * |
LancasterUniversity | 615:65ea2acfc6a2 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
LancasterUniversity | 615:65ea2acfc6a2 | 5 | * you may not use this file except in compliance with the License. |
LancasterUniversity | 615:65ea2acfc6a2 | 6 | * You may obtain a copy of the License at |
LancasterUniversity | 615:65ea2acfc6a2 | 7 | * |
LancasterUniversity | 615:65ea2acfc6a2 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
LancasterUniversity | 615:65ea2acfc6a2 | 9 | * |
LancasterUniversity | 615:65ea2acfc6a2 | 10 | * Unless required by applicable law or agreed to in writing, software |
LancasterUniversity | 615:65ea2acfc6a2 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
LancasterUniversity | 615:65ea2acfc6a2 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
LancasterUniversity | 615:65ea2acfc6a2 | 13 | * See the License for the specific language governing permissions and |
LancasterUniversity | 615:65ea2acfc6a2 | 14 | * limitations under the License. |
LancasterUniversity | 615:65ea2acfc6a2 | 15 | */ |
LancasterUniversity | 615:65ea2acfc6a2 | 16 | |
LancasterUniversity | 615:65ea2acfc6a2 | 17 | #ifndef __NRF_DISCOVERED_CHARACTERISTIC_H__ |
LancasterUniversity | 615:65ea2acfc6a2 | 18 | #define __NRF_DISCOVERED_CHARACTERISTIC_H__ |
LancasterUniversity | 615:65ea2acfc6a2 | 19 | |
LancasterUniversity | 615:65ea2acfc6a2 | 20 | #include "ble/DiscoveredCharacteristic.h" |
LancasterUniversity | 615:65ea2acfc6a2 | 21 | #include "ble_gatt.h" |
LancasterUniversity | 615:65ea2acfc6a2 | 22 | |
LancasterUniversity | 615:65ea2acfc6a2 | 23 | class nRF5xGattClient; /* forward declaration */ |
LancasterUniversity | 615:65ea2acfc6a2 | 24 | |
LancasterUniversity | 615:65ea2acfc6a2 | 25 | class nRF5xDiscoveredCharacteristic : public DiscoveredCharacteristic { |
LancasterUniversity | 615:65ea2acfc6a2 | 26 | public: |
LancasterUniversity | 615:65ea2acfc6a2 | 27 | void setup(nRF5xGattClient *gattcIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 28 | Gap::Handle_t connectionHandleIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 29 | ble_gatt_char_props_t propsIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 30 | GattAttribute::Handle_t declHandleIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 31 | GattAttribute::Handle_t valueHandleIn); |
LancasterUniversity | 615:65ea2acfc6a2 | 32 | |
LancasterUniversity | 615:65ea2acfc6a2 | 33 | void setup(nRF5xGattClient *gattcIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 34 | Gap::Handle_t connectionHandleIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 35 | UUID::ShortUUIDBytes_t uuidIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 36 | ble_gatt_char_props_t propsIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 37 | GattAttribute::Handle_t declHandleIn, |
LancasterUniversity | 615:65ea2acfc6a2 | 38 | GattAttribute::Handle_t valueHandleIn); |
LancasterUniversity | 616:a8f9b022d8fd | 39 | |
LancasterUniversity | 616:a8f9b022d8fd | 40 | void setLastHandle(GattAttribute::Handle_t last) { |
LancasterUniversity | 616:a8f9b022d8fd | 41 | lastHandle = last; |
LancasterUniversity | 616:a8f9b022d8fd | 42 | } |
LancasterUniversity | 615:65ea2acfc6a2 | 43 | }; |
LancasterUniversity | 615:65ea2acfc6a2 | 44 | |
rgrover1 | 388:db85a09c27ef | 45 | #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */ |