No changes

Fork of nRF51822 by Nordic Semiconductor

Committer:
galism
Date:
Sun Feb 26 03:15:43 2017 +0000
Revision:
639:abe58b2a2b5d
Parent:
388:db85a09c27ef
No changes

Who changed what in which revision?

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