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.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: nRF51Gap.h
- Revision:
- 105:7404a5b1b72f
- Parent:
- 102:bdc690669431
- Child:
- 111:be2a122ed2f7
--- a/nRF51Gap.h Wed Apr 15 08:59:12 2015 +0100
+++ b/nRF51Gap.h Wed Apr 15 08:59:23 2015 +0100
@@ -24,6 +24,9 @@
#include "GapAdvertisingData.h"
#include "public/Gap.h"
+#include "nrf_soc.h"
+#include "ble_radio_notification.h"
+
/**************************************************************************/
/*!
\brief
@@ -63,6 +66,11 @@
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_NONE, onRadioNotification);
+ }
+
private:
uint16_t m_connectionHandle;
nRF51Gap() {
