MDS_2 / project

Fork of BLE_API by Bluetooth Low Energy

Committer:
rgrover1
Date:
Thu Jul 02 09:06:11 2015 +0100
Revision:
715:6d415ac147aa
Parent:
714:a6130aaa0fd9
Synchronized with git rev 69726547
Author: Rohit Grover
Release 0.3.9
=============

A minor patch to fix a build error introduced by the previous
release. This has to do with certain declarations being made members
of class UUID.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 714:a6130aaa0fd9 1 /* mbed Microcontroller Library
rgrover1 714:a6130aaa0fd9 2 * Copyright (c) 2006-2013 ARM Limited
rgrover1 714:a6130aaa0fd9 3 *
rgrover1 714:a6130aaa0fd9 4 * Licensed under the Apache License, Version 2.0 (the "License");
rgrover1 714:a6130aaa0fd9 5 * you may not use this file except in compliance with the License.
rgrover1 714:a6130aaa0fd9 6 * You may obtain a copy of the License at
rgrover1 714:a6130aaa0fd9 7 *
rgrover1 714:a6130aaa0fd9 8 * http://www.apache.org/licenses/LICENSE-2.0
rgrover1 714:a6130aaa0fd9 9 *
rgrover1 714:a6130aaa0fd9 10 * Unless required by applicable law or agreed to in writing, software
rgrover1 714:a6130aaa0fd9 11 * distributed under the License is distributed on an "AS IS" BASIS,
rgrover1 714:a6130aaa0fd9 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rgrover1 714:a6130aaa0fd9 13 * See the License for the specific language governing permissions and
rgrover1 714:a6130aaa0fd9 14 * limitations under the License.
rgrover1 714:a6130aaa0fd9 15 */
rgrover1 714:a6130aaa0fd9 16
rgrover1 714:a6130aaa0fd9 17 #include "DFUService.h"
rgrover1 714:a6130aaa0fd9 18
rgrover1 714:a6130aaa0fd9 19 const uint8_t DFUServiceBaseUUID[] = {
rgrover1 714:a6130aaa0fd9 20 0x00, 0x00, 0x00, 0x00, 0x12, 0x12, 0xEF, 0xDE,
rgrover1 714:a6130aaa0fd9 21 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,
rgrover1 714:a6130aaa0fd9 22 };
rgrover1 714:a6130aaa0fd9 23 const uint16_t DFUServiceShortUUID = 0x1530;
rgrover1 714:a6130aaa0fd9 24 const uint16_t DFUServiceControlCharacteristicShortUUID = 0x1531;
rgrover1 714:a6130aaa0fd9 25 const uint16_t DFUServicePacketCharacteristicShortUUID = 0x1532;
rgrover1 714:a6130aaa0fd9 26
rgrover1 714:a6130aaa0fd9 27 const uint8_t DFUServiceUUID[] = {
rgrover1 714:a6130aaa0fd9 28 0x00, 0x00, (uint8_t)(DFUServiceShortUUID >> 8), (uint8_t)(DFUServiceShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE,
rgrover1 714:a6130aaa0fd9 29 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,
rgrover1 714:a6130aaa0fd9 30 };
rgrover1 714:a6130aaa0fd9 31 const uint8_t DFUServiceControlCharacteristicUUID[] = {
rgrover1 714:a6130aaa0fd9 32 0x00, 0x00, (uint8_t)(DFUServiceControlCharacteristicShortUUID >> 8), (uint8_t)(DFUServiceControlCharacteristicShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE,
rgrover1 714:a6130aaa0fd9 33 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,
rgrover1 714:a6130aaa0fd9 34 };
rgrover1 714:a6130aaa0fd9 35 const uint8_t DFUServicePacketCharacteristicUUID[] = {
rgrover1 714:a6130aaa0fd9 36 0x00, 0x00, (uint8_t)(DFUServicePacketCharacteristicShortUUID >> 8), (uint8_t)(DFUServicePacketCharacteristicShortUUID & 0xFF), 0x12, 0x12, 0xEF, 0xDE,
rgrover1 714:a6130aaa0fd9 37 0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,
rgrover1 714:a6130aaa0fd9 38 };
rgrover1 714:a6130aaa0fd9 39
rgrover1 714:a6130aaa0fd9 40 DFUService::ResetPrepare_t DFUService::handoverCallback = NULL;