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:
Mon Jun 08 10:41:18 2015 +0100
Parent:
411:cf2cce37ad73
Child:
413:4d5fb1522cfb
Commit message:
Synchronized with git rev 37fce3e7
Author: Rohit Grover
repalced uses of Gap::addr_type_t with Gap::AddressType_t

Changed in this revision

public/BLEDevice.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
--- a/public/BLEDevice.h	Mon Jun 08 10:41:18 2015 +0100
+++ b/public/BLEDevice.h	Mon Jun 08 10:41:18 2015 +0100
@@ -56,13 +56,13 @@
      * Set the BTLE MAC address and type.
      * @return BLE_ERROR_NONE on success.
      */
-    ble_error_t setAddress(Gap::addr_type_t type, const Gap::address_t address);
+    ble_error_t setAddress(Gap::AddressType_t type, const Gap::address_t address);
 
     /**
      * Fetch the BTLE MAC address and type.
      * @return BLE_ERROR_NONE on success.
      */
-    ble_error_t getAddress(Gap::addr_type_t *typeP, Gap::address_t address);
+    ble_error_t getAddress(Gap::AddressType_t *typeP, Gap::address_t address);
 
     /**
      * @param[in] advType
@@ -649,13 +649,13 @@
 }
 
 inline ble_error_t
-BLEDevice::setAddress(Gap::addr_type_t type, const Gap::address_t address)
+BLEDevice::setAddress(Gap::AddressType_t type, const Gap::address_t address)
 {
     return transport->getGap().setAddress(type, address);
 }
 
 inline ble_error_t
-BLEDevice::getAddress(Gap::addr_type_t *typeP, Gap::address_t address)
+BLEDevice::getAddress(Gap::AddressType_t *typeP, Gap::address_t address)
 {
     return transport->getGap().getAddress(typeP, address);
 }
--- a/public/Gap.h	Mon Jun 08 10:41:18 2015 +0100
+++ b/public/Gap.h	Mon Jun 08 10:41:18 2015 +0100
@@ -142,8 +142,8 @@
 
     typedef void (*EventCallback_t)(void);
     typedef void (*ConnectionEventCallback_t)(Handle_t,
-                                              addr_type_t peerAddrType, const Address_t peerAddr,
-                                              addr_type_t ownAddrType,  const Address_t ownAddr,
+                                              AddressType_t peerAddrType, const Address_t peerAddr,
+                                              AddressType_t ownAddrType,  const Address_t ownAddr,
                                               const ConnectionParams_t *);
     typedef void (*HandleSpecificEvent_t)(Handle_t handle);
     typedef void (*DisconnectionEventCallback_t)(Handle_t, DisconnectionReason_t);
@@ -167,8 +167,8 @@
 
 private:
     /* These functions must be defined in the sub-class */
-    virtual ble_error_t setAddress(addr_type_t type,   const Address_t address)                    = 0;
-    virtual ble_error_t getAddress(addr_type_t *typeP, Address_t address)                          = 0;
+    virtual ble_error_t setAddress(AddressType_t type,   const Address_t address)                    = 0;
+    virtual ble_error_t getAddress(AddressType_t *typeP, Address_t address)                          = 0;
     virtual ble_error_t setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &) = 0;
     virtual ble_error_t startAdvertising(const GapAdvertisingParams &)                             = 0;
     virtual ble_error_t stopAdvertising(void)                                                      = 0;
@@ -299,7 +299,7 @@
     }
 
 public:
-    void processConnectionEvent(Handle_t handle, addr_type_t peerAddrType, const Address_t peerAddr, addr_type_t ownAddrType, const Address_t ownAddr, const ConnectionParams_t *params) {
+    void processConnectionEvent(Handle_t handle, AddressType_t peerAddrType, const Address_t peerAddr, AddressType_t ownAddrType, const Address_t ownAddr, const ConnectionParams_t *params) {
         state.connected = 1;
         if (onConnection) {
             onConnection(handle, peerAddrType, peerAddr, ownAddrType, ownAddr, params);