Fork of nRF51822 by
Revision 102:bdc690669431, committed 2015-03-23
- Comitter:
- rgrover1
- Date:
- Mon Mar 23 16:27:00 2015 +0000
- Parent:
- 101:18a6f0b9c350
- Child:
- 103:138bdc859cc9
- Child:
- 639:3d9350cc3295
- Commit message:
- Synchronized with git rev 270603e3
Author: Rohit Grover
Release 0.3.0
==============
Enhancements
~~~~~~~~~~~~
* Updated to use of new APIs for authorizeRead() and authorizeWrite() which
return status.
* Implement APIs for getMinAdvertisingInterval() and variants.
* add #ifdef __cplusplus to pstorage.h
Bugfixes
~~~~~~~~
none.
Changed in this revision
nRF51Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51Gap.h Mon Mar 23 16:27:00 2015 +0000 +++ b/nRF51Gap.h Mon Mar 23 16:27:00 2015 +0000 @@ -42,6 +42,11 @@ virtual ble_error_t setAddress(addr_type_t type, const address_t address); virtual ble_error_t getAddress(addr_type_t *typeP, address_t address); virtual ble_error_t setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &); + + virtual uint16_t getMinAdvertisingInterval(void) const {return GAP_DURATION_UNITS_TO_MS(BLE_GAP_ADV_INTERVAL_MIN);} + virtual uint16_t getMinNonConnectableAdvertisingInterval(void) const {return GAP_DURATION_UNITS_TO_MS(BLE_GAP_ADV_NONCON_INTERVAL_MIN);} + virtual uint16_t getMaxAdvertisingInterval(void) const {return GAP_DURATION_UNITS_TO_MS(BLE_GAP_ADV_INTERVAL_MAX);} + virtual ble_error_t startAdvertising(const GapAdvertisingParams &); virtual ble_error_t stopAdvertising(void); virtual ble_error_t disconnect(DisconnectionReason_t reason);