BLE_API_Tiny_BLE
Fork of BLE_API by
Revision 405:8fc6e6855806, committed 2015-05-18
- Comitter:
- rgrover1
- Date:
- Mon May 18 09:54:27 2015 +0100
- Parent:
- 404:ee77c39cda55
- Child:
- 406:cec6778acc66
- Commit message:
- Synchronized with git rev 92634365
Author: Rohit Grover
replace instances of Gap::address_t with Gap::Address_t
Changed in this revision
public/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/Gap.h Mon May 18 09:54:26 2015 +0100 +++ b/public/Gap.h Mon May 18 09:54:27 2015 +0100 @@ -141,8 +141,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, + addr_type_t peerAddrType, const Address_t peerAddr, + addr_type_t ownAddrType, const Address_t ownAddr, const ConnectionParams_t *); typedef void (*HandleSpecificEvent_t)(Handle_t handle); typedef void (*DisconnectionEventCallback_t)(Handle_t, DisconnectionReason_t); @@ -163,8 +163,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(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 setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &) = 0; virtual ble_error_t startAdvertising(const GapAdvertisingParams &) = 0; virtual ble_error_t stopAdvertising(void) = 0; @@ -271,7 +271,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, addr_type_t peerAddrType, const Address_t peerAddr, addr_type_t ownAddrType, const Address_t ownAddr, const ConnectionParams_t *params) { state.connected = 1; if (onConnection) { onConnection(handle, peerAddrType, peerAddr, ownAddrType, ownAddr, params); @@ -316,7 +316,7 @@ } } - void processAdvertisementReport(const address_t peerAddr, + void processAdvertisementReport(const Address_t peerAddr, int8_t rssi, bool isScanResponse, AdvertisementType_t type,