Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Revision:
1:f84abedbf4fb
Parent:
0:eff01767de02
Child:
3:791d672cbbec
--- a/nRF51Gap.h	Wed Mar 26 14:38:17 2014 +0000
+++ b/nRF51Gap.h	Thu Apr 03 01:45:38 2014 +0100
@@ -19,6 +19,7 @@
 
 #include "mbed.h"
 #include "blecommon.h"
+#include "ble.h"
 #include "GapAdvertisingParams.h"
 #include "GapAdvertisingData.h"
 #include "hw/Gap.h"
@@ -39,13 +40,18 @@
         }
 
         /* Functions that must be implemented from Gap */
+        virtual ble_error_t setAddress(addr_type_t type, uint8_t address[6]);
         virtual ble_error_t setAdvertisingData(GapAdvertisingData &, GapAdvertisingData &);
         virtual ble_error_t startAdvertising(GapAdvertisingParams &);
         virtual ble_error_t stopAdvertising(void);
         virtual ble_error_t disconnect(void);
         
+        void     setConnectionHandle(uint16_t con_handle);
+        uint16_t getConnectionHandle(void);
+         
     private:
-        nRF51Gap() { };
+        uint16_t m_connectionHandle;
+        nRF51Gap() { m_connectionHandle = BLE_CONN_HANDLE_INVALID; };
         nRF51Gap(nRF51Gap const&);
         void operator=(nRF51Gap const&);
 };