HW layer for the Nucleo board, it only work with old BLE_API

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
64:6d7b775c3f6d
Parent:
61:929885305c17
Child:
65:f9958b8f2548
--- a/BlueNRGGap.cpp	Thu Nov 13 08:18:13 2014 +0000
+++ b/BlueNRGGap.cpp	Wed Nov 19 11:24:37 2014 +0000
@@ -14,6 +14,31 @@
 * limitations under the License.
 */
 
+
+/**
+  ******************************************************************************
+  * @file    BlueNRGGap.cpp 
+  * @author  STMicroelectronics
+  * @brief   Implementation of BLE_API Gap Class
+  ******************************************************************************
+  * @copy
+  *
+  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
+  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
+  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
+  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
+  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
+  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
+  *
+  * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
+  */ 
+
+/** @defgroup BlueNRGGap
+ *  @brief BlueNRG BLE_API GAP Adaptation
+ *  @{
+ */
+ 
+   
 #include "BlueNRGDevice.h"
 #include "mbed.h"
 #include "Payload.h"
@@ -34,9 +59,6 @@
     @brief  Sets the advertising parameters and payload for the device. 
             Note: Some data types give error when their adv data is updated using aci_gap_update_adv_data() API
 
-    @param[in]  params
-                Basic advertising details, including the advertising
-                delay, timeout and how the device should be advertised
     @params[in] advData
                 The primary advertising data payload
     @params[in] scanResponse
@@ -213,7 +235,11 @@
 /*!
     @brief  Starts the BLE HW, initialising any services that were
             added before this function was called.
-
+    
+    @param[in]  params
+                Basic advertising details, including the advertising
+                delay, timeout and how the device should be advertised
+                
     @note   All services must be added before calling this function!
 
     @returns    ble_error_t
@@ -348,6 +374,9 @@
 /*!
     @brief  Disconnects if we are connected to a central device
 
+    @param[in]  reason
+                Disconnection Reason
+                
     @returns    ble_error_t
 
     @retval     BLE_ERROR_NONE
@@ -384,6 +413,11 @@
 /**************************************************************************/
 /*!
     @brief  Sets the 16-bit connection handle
+    
+    @param[in]  con_handle
+                Connection Handle which is set in the Gap Instance
+                
+    @returns    void
 */
 /**************************************************************************/
 void BlueNRGGap::setConnectionHandle(uint16_t con_handle)
@@ -394,6 +428,11 @@
 /**************************************************************************/
 /*!
     @brief  Gets the 16-bit connection handle
+    
+    @param[in]  void
+                
+    @returns    uint16_t
+                Connection Handle of the Gap Instance
 */
 /**************************************************************************/
 uint16_t BlueNRGGap::getConnectionHandle(void)
@@ -406,6 +445,12 @@
     @brief      Sets the BLE device address. SetAddress will reset the BLE
                 device and re-initialize BTLE. Will not start advertising.
 
+    @param[in]  type
+                Type of Address
+    
+    @param[in]  address[6]
+                Value of the Address to be set
+                
     @returns    ble_error_t
 
     @section EXAMPLE
@@ -462,7 +507,7 @@
 /*!
     @brief      Returns the address of the device if set
 
-    @returns    ble_error_t
+    @returns    Pointer to the address is Address is set else NULL
 
     @section EXAMPLE
 
@@ -535,7 +580,7 @@
 
 /**************************************************************************/
 /*!
-    @brief  sets device name characteristic 
+    @brief  Sets the Device Name Characteristic 
 
     @param[in]  deviceName
                 pointer to device name to be set
@@ -579,11 +624,10 @@
 
 /**************************************************************************/
 /*!
-    @brief  gets device name characteristic 
+    @brief  Gets the Device Name Characteristic 
 
     @param[in]  deviceName
-                pointer to device name 
-                
+                pointer to device name                 
 
     @param[in]  lengthP
                 pointer to device name length                
@@ -618,7 +662,7 @@
 
 /**************************************************************************/
 /*!
-    @brief  sets device appearance characteristic 
+    @brief  Sets the Device Appearance Characteristic 
 
     @param[in]  appearance
                 device appearance      
@@ -652,7 +696,7 @@
 
 /**************************************************************************/
 /*!
-    @brief  gets device appearance  
+    @brief  Gets the Device Appearance Characteristic
 
     @param[in]  appearance
                 pointer to device appearance value