High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Nov 21 09:23:22 2014 +0000
Parent:
125:aae3f50670c9
Child:
127:4e106f4a80b7
Commit message:
Synchronized with git rev 1d0b27e5
Author: Yihui Xiong
make the library less dependent on the mbed.h header

Changed in this revision

common/blecommon.h Show annotated file Show diff for this revision Revisions of this file
public/BLEDevice.h Show annotated file Show diff for this revision Revisions of this file
public/CallChainOfFunctionPointersWithContext.h Show annotated file Show diff for this revision Revisions of this file
public/FunctionPointerWithContext.h Show annotated file Show diff for this revision Revisions of this file
public/Gap.h Show annotated file Show diff for this revision Revisions of this file
public/GapEvents.h Show annotated file Show diff for this revision Revisions of this file
public/GattServer.h Show annotated file Show diff for this revision Revisions of this file
public/GattServerEvents.h Show annotated file Show diff for this revision Revisions of this file
--- a/common/blecommon.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/common/blecommon.h	Fri Nov 21 09:23:22 2014 +0000
@@ -27,6 +27,7 @@
 #endif
 
 #include <stdint.h>
+#include <stddef.h>
 
 /** @defgroup BLE_UUID_VALUES Assigned Values for BLE UUIDs
  * @{ */
@@ -132,4 +133,4 @@
 }
 #endif
 
-#endif // ifndef __BLE_COMMON_H__
+#endif // ifndef __BLE_COMMON_H__
\ No newline at end of file
--- a/public/BLEDevice.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/BLEDevice.h	Fri Nov 21 09:23:22 2014 +0000
@@ -17,7 +17,6 @@
 #ifndef __BLE_DEVICE__
 #define __BLE_DEVICE__
 
-#include "mbed.h"
 #include "blecommon.h"
 #include "Gap.h"
 #include "GattServer.h"
@@ -635,4 +634,4 @@
     return transport->getGap().startAdvertising(_advParams);
 }
 
-#endif // ifndef __BLE_DEVICE__
+#endif // ifndef __BLE_DEVICE__
\ No newline at end of file
--- a/public/CallChainOfFunctionPointersWithContext.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/CallChainOfFunctionPointersWithContext.h	Fri Nov 21 09:23:22 2014 +0000
@@ -19,7 +19,6 @@
 #include <string.h>
 #include "FunctionPointerWithContext.h"
 
-namespace mbed {
 
 /** Group one or more functions in an instance of a CallChainOfFunctionPointersWithContext, then call them in
  * sequence using CallChainOfFunctionPointersWithContext::call(). Used mostly by the interrupt chaining code,
@@ -27,7 +26,6 @@
  *
  * Example:
  * @code
- * #include "mbed.h"
  *
  * CallChainOfFunctionPointersWithContext<void *> chain;
  *
@@ -147,7 +145,4 @@
     CallChainOfFunctionPointersWithContext & operator = (const CallChainOfFunctionPointersWithContext &);
 };
 
-} // namespace mbed
-
-#endif
-
+#endif
\ No newline at end of file
--- a/public/FunctionPointerWithContext.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/FunctionPointerWithContext.h	Fri Nov 21 09:23:22 2014 +0000
@@ -19,7 +19,6 @@
 
 #include <string.h>
 
-namespace mbed {
 
 /** A class for storing and calling a pointer to a static or member void function
  *  which takes a context.
@@ -126,6 +125,5 @@
                                                          *   external memory to manage the chain. Also refer to
                                                          *   'CallChain' as an alternative. */
 };
-} // namespace mbed
 
-#endif // ifndef MBED_FUNCTIONPOINTER_WITH_CONTEXT_H
+#endif // ifndef MBED_FUNCTIONPOINTER_WITH_CONTEXT_H
\ No newline at end of file
--- a/public/Gap.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/Gap.h	Fri Nov 21 09:23:22 2014 +0000
@@ -17,7 +17,6 @@
 #ifndef __GAP_H__
 #define __GAP_H__
 
-#include "mbed.h"
 #include "blecommon.h"
 #include "GapAdvertisingData.h"
 #include "GapAdvertisingParams.h"
@@ -145,4 +144,4 @@
     DisconnectionEventCallback_t onDisconnection;
 };
 
-#endif // ifndef __GAP_H__
+#endif // ifndef __GAP_H__
\ No newline at end of file
--- a/public/GapEvents.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/GapEvents.h	Fri Nov 21 09:23:22 2014 +0000
@@ -18,7 +18,6 @@
 #define __GAP_EVENTS_H__
 
 #include "blecommon.h"
-#include "mbed.h"
 
 /**************************************************************************/
 /*!
@@ -44,4 +43,4 @@
     } gapEvent_t;
 };
 
-#endif // ifndef __GAP_EVENTS_H__
+#endif // ifndef __GAP_EVENTS_H__
\ No newline at end of file
--- a/public/GattServer.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/GattServer.h	Fri Nov 21 09:23:22 2014 +0000
@@ -17,7 +17,6 @@
 #ifndef __GATT_SERVER_H__
 #define __GATT_SERVER_H__
 
-#include "mbed.h"
 #include "blecommon.h"
 #include "GattService.h"
 #include "GattServerEvents.h"
@@ -118,4 +117,4 @@
     EventCallback_t                onConfirmationReceived;
 };
 
-#endif // ifndef __GATT_SERVER_H__
+#endif // ifndef __GATT_SERVER_H__
\ No newline at end of file
--- a/public/GattServerEvents.h	Fri Nov 21 09:23:21 2014 +0000
+++ b/public/GattServerEvents.h	Fri Nov 21 09:23:22 2014 +0000
@@ -18,7 +18,6 @@
 #define __GATT_SERVER_EVENTS_H__
 
 #include "blecommon.h"
-#include "mbed.h"
 
 /**************************************************************************/
 /*!
@@ -46,4 +45,4 @@
     } gattEvent_t;
 };
 
-#endif // ifndef __GATT_SERVER_EVENTS_H__
+#endif // ifndef __GATT_SERVER_EVENTS_H__
\ No newline at end of file