Microbug / BLE_API_FOTA

Fork of BLE_API by Bluetooth Low Energy

Revision:
0:ace2e8d3ce79
Child:
1:fd3ec64b2345
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hw/nrf51822.h	Fri Nov 29 14:42:22 2013 +0000
@@ -0,0 +1,30 @@
+#ifndef __NRF51822_H__
+#define __NRF51822_H__
+
+#include "mbed.h"
+#include "blecommon.h"
+#include "bleservice.h"
+#include "bleradio.h"
+
+class nRF51822 : public BLERadio
+{
+    public:
+        nRF51822();
+        virtual ~nRF51822(void);
+
+        /* Functions that mus be implemented from NRFRadio */
+        virtual ble_error_t attach(void (*fptr)(void));
+        virtual ble_error_t addService(BLEService &);
+        virtual ble_error_t updateValue(uint8_t, uint8_t, uint8_t[], uint16_t);
+        virtual ble_error_t start(void);
+        virtual ble_error_t stop(void);
+        virtual ble_error_t reset(void);
+        
+        /* nRF51 Functions */
+        void uartCallback(void);
+
+    private:
+        Serial uart;        
+};
+
+#endif