Changed the device name.

Dependents:   BLE_Health_Thermometer_HeartRateMonitor

Fork of BLE_API_Native_IRC by Yoshihiro TSUBOI

Committer:
ktownsend
Date:
Fri Feb 21 09:33:31 2014 +0000
Revision:
17:d5600677d532
Added GATT callback support

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ktownsend 17:d5600677d532 1 /* mbed Microcontroller Library
ktownsend 17:d5600677d532 2 * Copyright (c) 2006-2013 ARM Limited
ktownsend 17:d5600677d532 3 *
ktownsend 17:d5600677d532 4 * Licensed under the Apache License, Version 2.0 (the "License");
ktownsend 17:d5600677d532 5 * you may not use this file except in compliance with the License.
ktownsend 17:d5600677d532 6 * You may obtain a copy of the License at
ktownsend 17:d5600677d532 7 *
ktownsend 17:d5600677d532 8 * http://www.apache.org/licenses/LICENSE-2.0
ktownsend 17:d5600677d532 9 *
ktownsend 17:d5600677d532 10 * Unless required by applicable law or agreed to in writing, software
ktownsend 17:d5600677d532 11 * distributed under the License is distributed on an "AS IS" BASIS,
ktownsend 17:d5600677d532 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ktownsend 17:d5600677d532 13 * See the License for the specific language governing permissions and
ktownsend 17:d5600677d532 14 * limitations under the License.
ktownsend 17:d5600677d532 15 */
ktownsend 17:d5600677d532 16
ktownsend 17:d5600677d532 17 #ifndef __NRF51822_H__
ktownsend 17:d5600677d532 18 #define __NRF51822_H__
ktownsend 17:d5600677d532 19
ktownsend 17:d5600677d532 20 #define NRF51
ktownsend 17:d5600677d532 21 #define DEBUG_NRF_USER
ktownsend 17:d5600677d532 22 #define BLE_STACK_SUPPORT_REQD
ktownsend 17:d5600677d532 23 #define BOARD_PCA10001
ktownsend 17:d5600677d532 24
ktownsend 17:d5600677d532 25 #include "mbed.h"
ktownsend 17:d5600677d532 26 #include "blecommon.h"
ktownsend 17:d5600677d532 27 #include "hw/BLEDevice.h"
ktownsend 17:d5600677d532 28 #include "hw/nRF51822n/nRF51Gap.h"
ktownsend 17:d5600677d532 29 #include "hw/nRF51822n/nRF51GattServer.h"
ktownsend 17:d5600677d532 30
ktownsend 17:d5600677d532 31 /**************************************************************************/
ktownsend 17:d5600677d532 32 /*!
ktownsend 17:d5600677d532 33 \brief
ktownsend 17:d5600677d532 34
ktownsend 17:d5600677d532 35 */
ktownsend 17:d5600677d532 36 /**************************************************************************/
ktownsend 17:d5600677d532 37 class nRF51822n : public BLEDevice
ktownsend 17:d5600677d532 38 {
ktownsend 17:d5600677d532 39 public:
ktownsend 17:d5600677d532 40 nRF51822n(void);
ktownsend 17:d5600677d532 41 virtual ~nRF51822n(void);
ktownsend 17:d5600677d532 42
ktownsend 17:d5600677d532 43 virtual Gap& getGap() { return nRF51Gap::getInstance(); };
ktownsend 17:d5600677d532 44 virtual GattServer& getGattServer() { return nRF51GattServer::getInstance(); };
ktownsend 17:d5600677d532 45 virtual ble_error_t init(void);
ktownsend 17:d5600677d532 46 virtual ble_error_t reset(void);
ktownsend 17:d5600677d532 47 };
ktownsend 17:d5600677d532 48
ktownsend 17:d5600677d532 49 #endif