Bluetooth LE library for Nucleo board

Dependents:   Nucleo_BLE_HeartRate Nucleo_BLE_UART Nucleo_BLE_Demo Nucleo_BLE_UART

Warning: Deprecated!

Supported drivers and applications can be found at this link.

Committer:
sjallouli
Date:
Fri Dec 19 19:52:49 2014 +0000
Revision:
1:79e5c08cbcc7
Parent:
0:289fd2dae405
change the USARTService->write() method access permission to public

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sjallouli 0:289fd2dae405 1 /* mbed Microcontroller Library
sjallouli 0:289fd2dae405 2 * Copyright (c) 2006-2013 ARM Limited
sjallouli 0:289fd2dae405 3 *
sjallouli 0:289fd2dae405 4 * Licensed under the Apache License, Version 2.0 (the "License");
sjallouli 0:289fd2dae405 5 * you may not use this file except in compliance with the License.
sjallouli 0:289fd2dae405 6 * You may obtain a copy of the License at
sjallouli 0:289fd2dae405 7 *
sjallouli 0:289fd2dae405 8 * http://www.apache.org/licenses/LICENSE-2.0
sjallouli 0:289fd2dae405 9 *
sjallouli 0:289fd2dae405 10 * Unless required by applicable law or agreed to in writing, software
sjallouli 0:289fd2dae405 11 * distributed under the License is distributed on an "AS IS" BASIS,
sjallouli 0:289fd2dae405 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
sjallouli 0:289fd2dae405 13 * See the License for the specific language governing permissions and
sjallouli 0:289fd2dae405 14 * limitations under the License.
sjallouli 0:289fd2dae405 15 */
sjallouli 0:289fd2dae405 16
sjallouli 0:289fd2dae405 17 #ifndef __GATT_SERVER_EVENTS_H__
sjallouli 0:289fd2dae405 18 #define __GATT_SERVER_EVENTS_H__
sjallouli 0:289fd2dae405 19
sjallouli 0:289fd2dae405 20 #include "blecommon.h"
sjallouli 0:289fd2dae405 21 #include "mbed.h"
sjallouli 0:289fd2dae405 22
sjallouli 0:289fd2dae405 23 /**************************************************************************/
sjallouli 0:289fd2dae405 24 /*!
sjallouli 0:289fd2dae405 25 \brief
sjallouli 0:289fd2dae405 26 The base class used to abstract away the callback events that can be
sjallouli 0:289fd2dae405 27 triggered with the GATT Server.
sjallouli 0:289fd2dae405 28 */
sjallouli 0:289fd2dae405 29 /**************************************************************************/
sjallouli 0:289fd2dae405 30 class GattServerEvents
sjallouli 0:289fd2dae405 31 {
sjallouli 0:289fd2dae405 32 public:
sjallouli 0:289fd2dae405 33 /******************************************************************/
sjallouli 0:289fd2dae405 34 /*!
sjallouli 0:289fd2dae405 35 \brief
sjallouli 0:289fd2dae405 36 Identifies GATT events generated by the radio HW when an event
sjallouli 0:289fd2dae405 37 callback occurs
sjallouli 0:289fd2dae405 38 */
sjallouli 0:289fd2dae405 39 /******************************************************************/
sjallouli 0:289fd2dae405 40 typedef enum gattEvent_e {
sjallouli 0:289fd2dae405 41 GATT_EVENT_DATA_SENT = 1, /**< Fired when a msg was successfully sent out (notify only?) */
sjallouli 0:289fd2dae405 42 GATT_EVENT_DATA_WRITTEN = 2, /**< Client wrote data to Server (separate into char and descriptor writes?) */
sjallouli 0:289fd2dae405 43 GATT_EVENT_UPDATES_ENABLED = 3, /**< Notify/Indicate Enabled in CCCD */
sjallouli 0:289fd2dae405 44 GATT_EVENT_UPDATES_DISABLED = 4, /**< Notify/Indicate Disabled in CCCD */
sjallouli 0:289fd2dae405 45 GATT_EVENT_CONFIRMATION_RECEIVED = 5 /**< Response received from Indicate message */
sjallouli 0:289fd2dae405 46 } gattEvent_t;
sjallouli 0:289fd2dae405 47 };
sjallouli 0:289fd2dae405 48
sjallouli 0:289fd2dae405 49 #endif // ifndef __GATT_SERVER_EVENTS_H__