hr with 30102

Dependencies:   BLE_API mbed X_NUCLEO_IDB0XA1

Fork of BLE_HeartRate by Bluetooth Low Energy

Committer:
mssarwar
Date:
Sun Jul 30 05:52:57 2017 +0000
Revision:
80:808f6f367f45
with 30102;

Who changed what in which revision?

UserRevisionLine numberNew 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 #include "nRF5xDiscoveredCharacteristic.h"
mssarwar 80:808f6f367f45 18 #include "nRF5xGattClient.h"
mssarwar 80:808f6f367f45 19 #include "nrf_ble_gatt.h"
mssarwar 80:808f6f367f45 20
mssarwar 80:808f6f367f45 21 void
mssarwar 80:808f6f367f45 22 nRF5xDiscoveredCharacteristic::setup(nRF5xGattClient *gattcIn,
mssarwar 80:808f6f367f45 23 Gap::Handle_t connectionHandleIn,
mssarwar 80:808f6f367f45 24 ble_gatt_char_props_t propsIn,
mssarwar 80:808f6f367f45 25 GattAttribute::Handle_t declHandleIn,
mssarwar 80:808f6f367f45 26 GattAttribute::Handle_t valueHandleIn)
mssarwar 80:808f6f367f45 27 {
mssarwar 80:808f6f367f45 28 gattc = gattcIn;
mssarwar 80:808f6f367f45 29 connHandle = connectionHandleIn;
mssarwar 80:808f6f367f45 30 declHandle = declHandleIn;
mssarwar 80:808f6f367f45 31 valueHandle = valueHandleIn;
mssarwar 80:808f6f367f45 32
mssarwar 80:808f6f367f45 33 props._broadcast = propsIn.broadcast;
mssarwar 80:808f6f367f45 34 props._read = propsIn.read;
mssarwar 80:808f6f367f45 35 props._writeWoResp = propsIn.write_wo_resp;
mssarwar 80:808f6f367f45 36 props._write = propsIn.write;
mssarwar 80:808f6f367f45 37 props._notify = propsIn.notify;
mssarwar 80:808f6f367f45 38 props._indicate = propsIn.indicate;
mssarwar 80:808f6f367f45 39 props._authSignedWrite = propsIn.auth_signed_wr;
mssarwar 80:808f6f367f45 40 }
mssarwar 80:808f6f367f45 41
mssarwar 80:808f6f367f45 42 void
mssarwar 80:808f6f367f45 43 nRF5xDiscoveredCharacteristic::setup(nRF5xGattClient *gattcIn,
mssarwar 80:808f6f367f45 44 Gap::Handle_t connectionHandleIn,
mssarwar 80:808f6f367f45 45 UUID::ShortUUIDBytes_t uuidIn,
mssarwar 80:808f6f367f45 46 ble_gatt_char_props_t propsIn,
mssarwar 80:808f6f367f45 47 GattAttribute::Handle_t declHandleIn,
mssarwar 80:808f6f367f45 48 GattAttribute::Handle_t valueHandleIn)
mssarwar 80:808f6f367f45 49 {
mssarwar 80:808f6f367f45 50 gattc = gattcIn;
mssarwar 80:808f6f367f45 51 connHandle = connectionHandleIn;
mssarwar 80:808f6f367f45 52 uuid = uuidIn;
mssarwar 80:808f6f367f45 53 declHandle = declHandleIn;
mssarwar 80:808f6f367f45 54 valueHandle = valueHandleIn;
mssarwar 80:808f6f367f45 55
mssarwar 80:808f6f367f45 56 props._broadcast = propsIn.broadcast;
mssarwar 80:808f6f367f45 57 props._read = propsIn.read;
mssarwar 80:808f6f367f45 58 props._writeWoResp = propsIn.write_wo_resp;
mssarwar 80:808f6f367f45 59 props._write = propsIn.write;
mssarwar 80:808f6f367f45 60 props._notify = propsIn.notify;
mssarwar 80:808f6f367f45 61 props._indicate = propsIn.indicate;
mssarwar 80:808f6f367f45 62 props._authSignedWrite = propsIn.auth_signed_wr;
mssarwar 80:808f6f367f45 63 }