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
hw/BLEDevice.h@34:da2ea8cd6216, 2014-05-21 (annotated)
- Committer:
- Rohit Grover
- Date:
- Wed May 21 15:01:14 2014 +0100
- Revision:
- 34:da2ea8cd6216
- Parent:
- 31:2c94f0501807
- Child:
- 35:f3b0c1192cf7
white space diffs; generated using uncrustify
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ktownsend | 29:011e95ce78b8 | 1 | /* mbed Microcontroller Library |
| ktownsend | 29:011e95ce78b8 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| ktownsend | 29:011e95ce78b8 | 3 | * |
| ktownsend | 29:011e95ce78b8 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| ktownsend | 29:011e95ce78b8 | 5 | * you may not use this file except in compliance with the License. |
| ktownsend | 29:011e95ce78b8 | 6 | * You may obtain a copy of the License at |
| ktownsend | 29:011e95ce78b8 | 7 | * |
| ktownsend | 29:011e95ce78b8 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| ktownsend | 29:011e95ce78b8 | 9 | * |
| ktownsend | 29:011e95ce78b8 | 10 | * Unless required by applicable law or agreed to in writing, software |
| ktownsend | 29:011e95ce78b8 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| ktownsend | 29:011e95ce78b8 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ktownsend | 29:011e95ce78b8 | 13 | * See the License for the specific language governing permissions and |
| ktownsend | 29:011e95ce78b8 | 14 | * limitations under the License. |
| ktownsend | 29:011e95ce78b8 | 15 | */ |
| Rohit Grover |
34:da2ea8cd6216 | 16 | |
| ktownsend | 29:011e95ce78b8 | 17 | #ifndef __BLE_DEVICE_H__ |
| ktownsend | 29:011e95ce78b8 | 18 | #define __BLE_DEVICE_H__ |
| ktownsend | 29:011e95ce78b8 | 19 | |
| ktownsend | 29:011e95ce78b8 | 20 | #include "mbed.h" |
| ktownsend | 29:011e95ce78b8 | 21 | #include "blecommon.h" |
| ktownsend | 29:011e95ce78b8 | 22 | #include "hw/Gap.h" |
| ktownsend | 29:011e95ce78b8 | 23 | #include "hw/GattServer.h" |
| ktownsend | 29:011e95ce78b8 | 24 | |
| ktownsend | 29:011e95ce78b8 | 25 | /**************************************************************************/ |
| ktownsend | 29:011e95ce78b8 | 26 | /*! |
| ktownsend | 29:011e95ce78b8 | 27 | \brief |
| ktownsend | 29:011e95ce78b8 | 28 | The base class used to abstract away BLE capable radio transceivers |
| ktownsend | 29:011e95ce78b8 | 29 | or SOCs, to enable this BLE API to work with any radio transparently. |
| ktownsend | 29:011e95ce78b8 | 30 | */ |
| ktownsend | 29:011e95ce78b8 | 31 | /**************************************************************************/ |
| ktownsend | 29:011e95ce78b8 | 32 | class BLEDevice |
| ktownsend | 29:011e95ce78b8 | 33 | { |
| Rohit Grover |
34:da2ea8cd6216 | 34 | public: |
| Rohit Grover |
34:da2ea8cd6216 | 35 | virtual Gap& getGap() = 0; |
| Rohit Grover |
34:da2ea8cd6216 | 36 | virtual GattServer& getGattServer() = 0; |
| Rohit Grover |
34:da2ea8cd6216 | 37 | virtual ble_error_t init() = 0; |
| Rohit Grover |
34:da2ea8cd6216 | 38 | virtual ble_error_t reset(void) = 0; |
| ktownsend | 29:011e95ce78b8 | 39 | }; |
| ktownsend | 29:011e95ce78b8 | 40 | |
| Rohit Grover |
34:da2ea8cd6216 | 41 | #endif // ifndef __BLE_DEVICE_H__ |
