Nordic stack and drivers for the mbed BLE API
Fork of nRF51822 by
TARGET_NRF5/source/nRF5xDiscoveredCharacteristic.h@639:5aeed2c29513, 2017-11-10 (annotated)
- Committer:
- amithy
- Date:
- Fri Nov 10 01:00:06 2017 +0000
- Revision:
- 639:5aeed2c29513
- Parent:
- 638:c90ae1400bf2
for testing export
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 "nrf_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__ */ |