Wang Xinglu / BLE_API

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
34:da2ea8cd6216
Parent:
31:2c94f0501807
Child:
77:1436ecf09583
--- a/hw/GapEvents.h	Thu Apr 03 01:45:33 2014 +0100
+++ b/hw/GapEvents.h	Wed May 21 15:01:14 2014 +0100
@@ -12,7 +12,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */  
+ */
 
 #ifndef __GAP_EVENTS_H__
 #define __GAP_EVENTS_H__
@@ -28,44 +28,53 @@
 */
 /**************************************************************************/
 class GapEvents {
-    public:
-        /******************************************************************/
-        /*!
-            \brief
-            Identifies GAP events generated by the radio HW when an event
-            callback occurs
-        */
-        /******************************************************************/
-        typedef enum gapEvent_e
-        {
-            GAP_EVENT_TIMEOUT               = 1,    /**< Advertising timed out before a connection was established */
-            GAP_EVENT_CONNECTED             = 2,    /**< A connection was established with a central device */
-            GAP_EVENT_DISCONNECTED          = 3     /**< A connection was closed or lost with a central device */
-        } gapEvent_t;
+public:
+    /******************************************************************/
+    /*!
+        \brief
+        Identifies GAP events generated by the radio HW when an event
+        callback occurs
+    */
+    /******************************************************************/
+    typedef enum gapEvent_e
+    {
+        GAP_EVENT_TIMEOUT      = 1,                 /**< Advertising timed out
+                                                     *before a connection was
+                                                     *established */
+        GAP_EVENT_CONNECTED    = 2,                 /**< A connection was
+                                                     *established with a
+                                                     *central device */
+        GAP_EVENT_DISCONNECTED = 3                  /**< A connection was
+                                                     *closed or lost with a
+                                                     *central device */
+    } gapEvent_t;
 
-        /******************************************************************/
-        /*!
-            \brief
-            Advertising timed out before a connection was established
-        */
-        /******************************************************************/
-        virtual void onTimeout(void) {}
+    /******************************************************************/
+    /*!
+        \brief
+        Advertising timed out before a connection was established
+    */
+    /******************************************************************/
+    virtual void onTimeout(void) {
+    }
 
-        /******************************************************************/
-        /*!
-            \brief
-            A connection was established with a central device
-        */
-        /******************************************************************/
-        virtual void onConnected(void) {}
+    /******************************************************************/
+    /*!
+        \brief
+        A connection was established with a central device
+    */
+    /******************************************************************/
+    virtual void onConnected(void) {
+    }
 
-        /******************************************************************/
-        /*!
-            \brief
-            A connection was closed or lost with a central device
-        */
-        /******************************************************************/
-        virtual void onDisconnected(void) {}
+    /******************************************************************/
+    /*!
+        \brief
+        A connection was closed or lost with a central device
+    */
+    /******************************************************************/
+    virtual void onDisconnected(void) {
+    }
 };
 
-#endif
+#endif // ifndef __GAP_EVENTS_H__