CSSE4011_BLE_IMU IMU Seeed Tiny Ble

Dependencies:   BLE_API_Tiny_BLE MPU6050-DMP-Seeed-Tiny-BLE mbed

Committer:
flywind
Date:
Wed Jun 10 09:46:16 2015 +0000
Revision:
0:f90c3452d779
CSSE4011_Seed-Tiny-BLE

Who changed what in which revision?

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