Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
services/UARTService.cpp@569:a5a6a1681fcf, 2015-06-19 (annotated)
- Committer:
- rgrover1
- Date:
- Fri Jun 19 15:52:49 2015 +0100
- Revision:
- 569:a5a6a1681fcf
- Parent:
- 458:5546ebd25359
- Child:
- 603:efa5a21436c1
Synchronized with git rev 8d3e0929
Author: Rohit Grover
add a missing include for GapScanningParams.h
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rohit Grover |
118:620d28e7a1ba | 1 | /* mbed Microcontroller Library |
| Rohit Grover |
118:620d28e7a1ba | 2 | * Copyright (c) 2006-2013 ARM Limited |
| Rohit Grover |
118:620d28e7a1ba | 3 | * |
| Rohit Grover |
118:620d28e7a1ba | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| Rohit Grover |
118:620d28e7a1ba | 5 | * you may not use this file except in compliance with the License. |
| Rohit Grover |
118:620d28e7a1ba | 6 | * You may obtain a copy of the License at |
| Rohit Grover |
118:620d28e7a1ba | 7 | * |
| Rohit Grover |
118:620d28e7a1ba | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Rohit Grover |
118:620d28e7a1ba | 9 | * |
| Rohit Grover |
118:620d28e7a1ba | 10 | * Unless required by applicable law or agreed to in writing, software |
| Rohit Grover |
118:620d28e7a1ba | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| Rohit Grover |
118:620d28e7a1ba | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Rohit Grover |
118:620d28e7a1ba | 13 | * See the License for the specific language governing permissions and |
| Rohit Grover |
118:620d28e7a1ba | 14 | * limitations under the License. |
| Rohit Grover |
118:620d28e7a1ba | 15 | */ |
| Rohit Grover |
118:620d28e7a1ba | 16 | |
| Rohit Grover |
118:620d28e7a1ba | 17 | #include "UARTService.h" |
| Rohit Grover |
118:620d28e7a1ba | 18 | |
| rgrover1 | 569:a5a6a1681fcf | 19 | const uint8_t UARTServiceBaseUUID[LENGTH_OF_LONG_UUID] = { |
| Rohit Grover |
118:620d28e7a1ba | 20 | 0x6E, 0x40, 0x00, 0x00, 0xB5, 0xA3, 0xF3, 0x93, |
| Rohit Grover |
118:620d28e7a1ba | 21 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
| Rohit Grover |
118:620d28e7a1ba | 22 | }; |
| Rohit Grover |
118:620d28e7a1ba | 23 | const uint16_t UARTServiceShortUUID = 0x0001; |
| Rohit Grover |
118:620d28e7a1ba | 24 | const uint16_t UARTServiceTXCharacteristicShortUUID = 0x0002; |
| Rohit Grover |
118:620d28e7a1ba | 25 | const uint16_t UARTServiceRXCharacteristicShortUUID = 0x0003; |
| rgrover1 | 569:a5a6a1681fcf | 26 | const uint8_t UARTServiceUUID[LENGTH_OF_LONG_UUID] = { |
| Rohit Grover |
118:620d28e7a1ba | 27 | 0x6E, 0x40, (uint8_t)(UARTServiceShortUUID >> 8), (uint8_t)(UARTServiceShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93, |
| Rohit Grover |
118:620d28e7a1ba | 28 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
| Rohit Grover |
118:620d28e7a1ba | 29 | }; |
| rgrover1 | 569:a5a6a1681fcf | 30 | const uint8_t UARTServiceUUID_reversed[LENGTH_OF_LONG_UUID] = { |
| Rohit Grover |
118:620d28e7a1ba | 31 | 0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, |
| Rohit Grover |
118:620d28e7a1ba | 32 | 0x93, 0xF3, 0xA3, 0xB5, (uint8_t)(UARTServiceShortUUID & 0xFF), (uint8_t)(UARTServiceShortUUID >> 8), 0x40, 0x6E |
| Rohit Grover |
118:620d28e7a1ba | 33 | }; |
| rgrover1 | 569:a5a6a1681fcf | 34 | const uint8_t UARTServiceTXCharacteristicUUID[LENGTH_OF_LONG_UUID] = { |
| Rohit Grover |
118:620d28e7a1ba | 35 | 0x6E, 0x40, (uint8_t)(UARTServiceTXCharacteristicShortUUID >> 8), (uint8_t)(UARTServiceTXCharacteristicShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93, |
| Rohit Grover |
118:620d28e7a1ba | 36 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
| Rohit Grover |
118:620d28e7a1ba | 37 | }; |
| rgrover1 | 569:a5a6a1681fcf | 38 | const uint8_t UARTServiceRXCharacteristicUUID[LENGTH_OF_LONG_UUID] = { |
| Rohit Grover |
118:620d28e7a1ba | 39 | 0x6E, 0x40, (uint8_t)(UARTServiceRXCharacteristicShortUUID >> 8), (uint8_t)(UARTServiceRXCharacteristicShortUUID & 0xFF), 0xB5, 0xA3, 0xF3, 0x93, |
| Rohit Grover |
118:620d28e7a1ba | 40 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
| rgrover1 | 242:0e9201b67e2f | 41 | }; |
