Bluetooth LE library for Nucleo board

Dependents:   Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_Demo Nucleo_BLE_UART

Warning: Deprecated!

Supported drivers and applications can be found at this link.

Committer:
sjallouli
Date:
Fri Dec 19 19:52:49 2014 +0000
Revision:
1:79e5c08cbcc7
Parent:
0:289fd2dae405
change the USARTService->write() method access permission to public

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sjallouli 0:289fd2dae405 1 /* mbed Microcontroller Library
sjallouli 0:289fd2dae405 2 * Copyright (c) 2006-2013 ARM Limited
sjallouli 0:289fd2dae405 3 *
sjallouli 0:289fd2dae405 4 * Licensed under the Apache License, Version 2.0 (the "License");
sjallouli 0:289fd2dae405 5 * you may not use this file except in compliance with the License.
sjallouli 0:289fd2dae405 6 * You may obtain a copy of the License at
sjallouli 0:289fd2dae405 7 *
sjallouli 0:289fd2dae405 8 * http://www.apache.org/licenses/LICENSE-2.0
sjallouli 0:289fd2dae405 9 *
sjallouli 0:289fd2dae405 10 * Unless required by applicable law or agreed to in writing, software
sjallouli 0:289fd2dae405 11 * distributed under the License is distributed on an "AS IS" BASIS,
sjallouli 0:289fd2dae405 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
sjallouli 0:289fd2dae405 13 * See the License for the specific language governing permissions and
sjallouli 0:289fd2dae405 14 * limitations under the License.
sjallouli 0:289fd2dae405 15 */
sjallouli 0:289fd2dae405 16
sjallouli 0:289fd2dae405 17 #include "UARTService.h"
sjallouli 0:289fd2dae405 18
sjallouli 0:289fd2dae405 19 const uint8_t UARTServiceBaseUUID[LENGTH_OF_LONG_UUID] = {
sjallouli 0:289fd2dae405 20 0x6E, 0x40, 0x00, 0x00, 0xB5, 0xA3, 0xF3, 0x93,
sjallouli 0:289fd2dae405 21 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
sjallouli 0:289fd2dae405 22 };
sjallouli 0:289fd2dae405 23 const uint16_t UARTServiceShortUUID = 0x0001;
sjallouli 0:289fd2dae405 24 const uint16_t UARTServiceTXCharacteristicShortUUID = 0x0002;
sjallouli 0:289fd2dae405 25 const uint16_t UARTServiceRXCharacteristicShortUUID = 0x0003;
sjallouli 0:289fd2dae405 26 const uint8_t UARTServiceUUID[LENGTH_OF_LONG_UUID] = {
sjallouli 0:289fd2dae405 27 0x6E, 0x40, (uint8_t)(UARTServiceShortUUID >> 8), (uint8_t)(UARTServiceShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93,
sjallouli 0:289fd2dae405 28 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
sjallouli 0:289fd2dae405 29 };
sjallouli 0:289fd2dae405 30 const uint8_t UARTServiceUUID_reversed[LENGTH_OF_LONG_UUID] = {
sjallouli 0:289fd2dae405 31 0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0,
sjallouli 0:289fd2dae405 32 0x93, 0xF3, 0xA3, 0xB5, (uint8_t)(UARTServiceShortUUID & 0xFF), (uint8_t)(UARTServiceShortUUID >> 8), 0x40, 0x6E
sjallouli 0:289fd2dae405 33 };
sjallouli 0:289fd2dae405 34 const uint8_t UARTServiceTXCharacteristicUUID[LENGTH_OF_LONG_UUID] = {
sjallouli 0:289fd2dae405 35 0x6E, 0x40, (uint8_t)(UARTServiceTXCharacteristicShortUUID >> 8), (uint8_t)(UARTServiceTXCharacteristicShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93,
sjallouli 0:289fd2dae405 36 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
sjallouli 0:289fd2dae405 37 };
sjallouli 0:289fd2dae405 38 const uint8_t UARTServiceRXCharacteristicUUID[LENGTH_OF_LONG_UUID] = {
sjallouli 0:289fd2dae405 39 0x6E, 0x40, (uint8_t)(UARTServiceRXCharacteristicShortUUID >> 8), (uint8_t)(UARTServiceRXCharacteristicShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93,
sjallouli 0:289fd2dae405 40 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
sjallouli 0:289fd2dae405 41 };