ver:init

Committer:
iv123
Date:
Sun Jun 18 16:10:28 2017 +0000
Revision:
0:88b85febcb45
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iv123 0:88b85febcb45 1 /* mbed Microcontroller Library
iv123 0:88b85febcb45 2 * Copyright (c) 2006-2013 ARM Limited
iv123 0:88b85febcb45 3 *
iv123 0:88b85febcb45 4 * Licensed under the Apache License, Version 2.0 (the "License");
iv123 0:88b85febcb45 5 * you may not use this file except in compliance with the License.
iv123 0:88b85febcb45 6 * You may obtain a copy of the License at
iv123 0:88b85febcb45 7 *
iv123 0:88b85febcb45 8 * http://www.apache.org/licenses/LICENSE-2.0
iv123 0:88b85febcb45 9 *
iv123 0:88b85febcb45 10 * Unless required by applicable law or agreed to in writing, software
iv123 0:88b85febcb45 11 * distributed under the License is distributed on an "AS IS" BASIS,
iv123 0:88b85febcb45 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
iv123 0:88b85febcb45 13 * See the License for the specific language governing permissions and
iv123 0:88b85febcb45 14 * limitations under the License.
iv123 0:88b85febcb45 15 */
iv123 0:88b85febcb45 16
iv123 0:88b85febcb45 17 #include "BlueNRGDiscoveredCharacteristic.h"
iv123 0:88b85febcb45 18 #include "BlueNRGGattClient.h"
iv123 0:88b85febcb45 19
iv123 0:88b85febcb45 20 void BlueNRGDiscoveredCharacteristic::setup(BlueNRGGattClient *gattcIn,
iv123 0:88b85febcb45 21 Gap::Handle_t connectionHandleIn,
iv123 0:88b85febcb45 22 DiscoveredCharacteristic::Properties_t propsIn,
iv123 0:88b85febcb45 23 GattAttribute::Handle_t declHandleIn,
iv123 0:88b85febcb45 24 GattAttribute::Handle_t valueHandleIn,
iv123 0:88b85febcb45 25 GattAttribute::Handle_t lastHandleIn)
iv123 0:88b85febcb45 26 {
iv123 0:88b85febcb45 27 gattc = gattcIn;
iv123 0:88b85febcb45 28 connHandle = connectionHandleIn;
iv123 0:88b85febcb45 29 declHandle = declHandleIn;
iv123 0:88b85febcb45 30 valueHandle = valueHandleIn;
iv123 0:88b85febcb45 31 lastHandle = lastHandleIn;
iv123 0:88b85febcb45 32
iv123 0:88b85febcb45 33 props._broadcast = propsIn.broadcast();
iv123 0:88b85febcb45 34 props._read = propsIn.read();
iv123 0:88b85febcb45 35 props._writeWoResp = propsIn.writeWoResp();
iv123 0:88b85febcb45 36 props._write = propsIn.write();
iv123 0:88b85febcb45 37 props._notify = propsIn.notify();
iv123 0:88b85febcb45 38 props._indicate = propsIn.indicate();
iv123 0:88b85febcb45 39 props._authSignedWrite = propsIn.authSignedWrite();
iv123 0:88b85febcb45 40 }
iv123 0:88b85febcb45 41
iv123 0:88b85febcb45 42 void BlueNRGDiscoveredCharacteristic::setup(BlueNRGGattClient *gattcIn,
iv123 0:88b85febcb45 43 Gap::Handle_t connectionHandleIn,
iv123 0:88b85febcb45 44 UUID uuidIn,
iv123 0:88b85febcb45 45 DiscoveredCharacteristic::Properties_t propsIn,
iv123 0:88b85febcb45 46 GattAttribute::Handle_t declHandleIn,
iv123 0:88b85febcb45 47 GattAttribute::Handle_t valueHandleIn,
iv123 0:88b85febcb45 48 GattAttribute::Handle_t lastHandleIn)
iv123 0:88b85febcb45 49 {
iv123 0:88b85febcb45 50 gattc = gattcIn;
iv123 0:88b85febcb45 51 connHandle = connectionHandleIn;
iv123 0:88b85febcb45 52 uuid = uuidIn;
iv123 0:88b85febcb45 53 declHandle = declHandleIn;
iv123 0:88b85febcb45 54 valueHandle = valueHandleIn;
iv123 0:88b85febcb45 55 lastHandle = lastHandleIn;
iv123 0:88b85febcb45 56
iv123 0:88b85febcb45 57 props._broadcast = propsIn.broadcast();
iv123 0:88b85febcb45 58 props._read = propsIn.read();
iv123 0:88b85febcb45 59 props._writeWoResp = propsIn.writeWoResp();
iv123 0:88b85febcb45 60 props._write = propsIn.write();
iv123 0:88b85febcb45 61 props._notify = propsIn.notify();
iv123 0:88b85febcb45 62 props._indicate = propsIn.indicate();
iv123 0:88b85febcb45 63 props._authSignedWrite = propsIn.authSignedWrite();
iv123 0:88b85febcb45 64 }
iv123 0:88b85febcb45 65
iv123 0:88b85febcb45 66 void BlueNRGDiscoveredCharacteristic::setLastHandle(GattAttribute::Handle_t lastHandleIn) {
iv123 0:88b85febcb45 67 lastHandle = lastHandleIn;
iv123 0:88b85febcb45 68 }