![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test firmware for BLE Micro V1.3 1. test io, vcc and ble 2. act as a UART to BLE bridge
Dependencies: BLE_API Buffer mbed
Fork of BLE_LEDBlinker by
nRF51822/source/nRF5xDiscoveredCharacteristic.h@11:c8cbc4bc2c17, 2015-12-08 (annotated)
- Committer:
- arch
- Date:
- Tue Dec 08 06:02:25 2015 +0000
- Revision:
- 11:c8cbc4bc2c17
test firmware for BLE Micro V1.3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arch | 11:c8cbc4bc2c17 | 1 | /* mbed Microcontroller Library |
arch | 11:c8cbc4bc2c17 | 2 | * Copyright (c) 2006-2013 ARM Limited |
arch | 11:c8cbc4bc2c17 | 3 | * |
arch | 11:c8cbc4bc2c17 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
arch | 11:c8cbc4bc2c17 | 5 | * you may not use this file except in compliance with the License. |
arch | 11:c8cbc4bc2c17 | 6 | * You may obtain a copy of the License at |
arch | 11:c8cbc4bc2c17 | 7 | * |
arch | 11:c8cbc4bc2c17 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
arch | 11:c8cbc4bc2c17 | 9 | * |
arch | 11:c8cbc4bc2c17 | 10 | * Unless required by applicable law or agreed to in writing, software |
arch | 11:c8cbc4bc2c17 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
arch | 11:c8cbc4bc2c17 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
arch | 11:c8cbc4bc2c17 | 13 | * See the License for the specific language governing permissions and |
arch | 11:c8cbc4bc2c17 | 14 | * limitations under the License. |
arch | 11:c8cbc4bc2c17 | 15 | */ |
arch | 11:c8cbc4bc2c17 | 16 | |
arch | 11:c8cbc4bc2c17 | 17 | #ifndef __NRF_DISCOVERED_CHARACTERISTIC_H__ |
arch | 11:c8cbc4bc2c17 | 18 | #define __NRF_DISCOVERED_CHARACTERISTIC_H__ |
arch | 11:c8cbc4bc2c17 | 19 | |
arch | 11:c8cbc4bc2c17 | 20 | #include "ble/DiscoveredCharacteristic.h" |
arch | 11:c8cbc4bc2c17 | 21 | #include "ble_gatt.h" |
arch | 11:c8cbc4bc2c17 | 22 | |
arch | 11:c8cbc4bc2c17 | 23 | class nRF5xGattClient; /* forward declaration */ |
arch | 11:c8cbc4bc2c17 | 24 | |
arch | 11:c8cbc4bc2c17 | 25 | class nRF5xDiscoveredCharacteristic : public DiscoveredCharacteristic { |
arch | 11:c8cbc4bc2c17 | 26 | public: |
arch | 11:c8cbc4bc2c17 | 27 | void setup(nRF5xGattClient *gattcIn, |
arch | 11:c8cbc4bc2c17 | 28 | Gap::Handle_t connectionHandleIn, |
arch | 11:c8cbc4bc2c17 | 29 | ble_gatt_char_props_t propsIn, |
arch | 11:c8cbc4bc2c17 | 30 | GattAttribute::Handle_t declHandleIn, |
arch | 11:c8cbc4bc2c17 | 31 | GattAttribute::Handle_t valueHandleIn); |
arch | 11:c8cbc4bc2c17 | 32 | |
arch | 11:c8cbc4bc2c17 | 33 | void setup(nRF5xGattClient *gattcIn, |
arch | 11:c8cbc4bc2c17 | 34 | Gap::Handle_t connectionHandleIn, |
arch | 11:c8cbc4bc2c17 | 35 | UUID::ShortUUIDBytes_t uuidIn, |
arch | 11:c8cbc4bc2c17 | 36 | ble_gatt_char_props_t propsIn, |
arch | 11:c8cbc4bc2c17 | 37 | GattAttribute::Handle_t declHandleIn, |
arch | 11:c8cbc4bc2c17 | 38 | GattAttribute::Handle_t valueHandleIn); |
arch | 11:c8cbc4bc2c17 | 39 | }; |
arch | 11:c8cbc4bc2c17 | 40 | |
arch | 11:c8cbc4bc2c17 | 41 | #endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */ |