Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Revision 352:bae965fb00f1, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:55:36 2015 +0100
- Parent:
- 351:77f16b36012a
- Child:
- 353:fddee99b2fdc
- Commit message:
- Synchronized with git rev b70f93d3
Author: Rohit Grover
updates to support radioNotificationCallback
Changed in this revision
| nRF51Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51Gap.h Fri Jun 19 15:55:36 2015 +0100
+++ b/nRF51Gap.h Fri Jun 19 15:55:36 2015 +0100
@@ -74,9 +74,9 @@
virtual ble_error_t setPreferredConnectionParams(const ConnectionParams_t *params);
virtual ble_error_t updateConnectionParams(Handle_t handle, const ConnectionParams_t *params);
- virtual void setOnRadioNotification(RadioNotificationEventCallback_t callback) {
- Gap::setOnRadioNotification(callback);
- ble_radio_notification_init(NRF_APP_PRIORITY_HIGH, NRF_RADIO_NOTIFICATION_DISTANCE_800US, onRadioNotification);
+ virtual void onRadioNotification(RadioNotificationEventCallback_t callback) {
+ Gap::onRadioNotification(callback);
+ ble_radio_notification_init(NRF_APP_PRIORITY_HIGH, NRF_RADIO_NOTIFICATION_DISTANCE_800US, radioNotificationCallback);
}
virtual ble_error_t startRadioScan(const GapScanningParams &scanningParams) {
