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