BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:47:08 2018 +0000
Revision:
1:9c5af431a1f1
sdf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gustavatmel 1:9c5af431a1f1 1 /* mbed Microcontroller Library
gustavatmel 1:9c5af431a1f1 2 * Copyright (c) 2006-2013 ARM Limited
gustavatmel 1:9c5af431a1f1 3 *
gustavatmel 1:9c5af431a1f1 4 * Licensed under the Apache License, Version 2.0 (the "License");
gustavatmel 1:9c5af431a1f1 5 * you may not use this file except in compliance with the License.
gustavatmel 1:9c5af431a1f1 6 * You may obtain a copy of the License at
gustavatmel 1:9c5af431a1f1 7 *
gustavatmel 1:9c5af431a1f1 8 * http://www.apache.org/licenses/LICENSE-2.0
gustavatmel 1:9c5af431a1f1 9 *
gustavatmel 1:9c5af431a1f1 10 * Unless required by applicable law or agreed to in writing, software
gustavatmel 1:9c5af431a1f1 11 * distributed under the License is distributed on an "AS IS" BASIS,
gustavatmel 1:9c5af431a1f1 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
gustavatmel 1:9c5af431a1f1 13 * See the License for the specific language governing permissions and
gustavatmel 1:9c5af431a1f1 14 * limitations under the License.
gustavatmel 1:9c5af431a1f1 15 */
gustavatmel 1:9c5af431a1f1 16
gustavatmel 1:9c5af431a1f1 17 #ifndef MBED_GAP_EVENTS_H__
gustavatmel 1:9c5af431a1f1 18 #define MBED_GAP_EVENTS_H__
gustavatmel 1:9c5af431a1f1 19
gustavatmel 1:9c5af431a1f1 20 #include "blecommon.h"
gustavatmel 1:9c5af431a1f1 21
gustavatmel 1:9c5af431a1f1 22 /// @cond INVALID_SECTIONS
gustavatmel 1:9c5af431a1f1 23
gustavatmel 1:9c5af431a1f1 24 /*!
gustavatmel 1:9c5af431a1f1 25 \brief
gustavatmel 1:9c5af431a1f1 26 The base class used to abstract away the callback events that can be
gustavatmel 1:9c5af431a1f1 27 triggered with the GAP.
gustavatmel 1:9c5af431a1f1 28
gustavatmel 1:9c5af431a1f1 29 @deprecated Do not use; it is not used by BLE API.
gustavatmel 1:9c5af431a1f1 30 */
gustavatmel 1:9c5af431a1f1 31 class GapEvents
gustavatmel 1:9c5af431a1f1 32 {
gustavatmel 1:9c5af431a1f1 33 public:
gustavatmel 1:9c5af431a1f1 34 /*!
gustavatmel 1:9c5af431a1f1 35 \brief
gustavatmel 1:9c5af431a1f1 36 Identifies GAP events generated by the radio HW when an event
gustavatmel 1:9c5af431a1f1 37 callback occurs.
gustavatmel 1:9c5af431a1f1 38
gustavatmel 1:9c5af431a1f1 39 @deprecated Do not use; it is not used by BLE API.
gustavatmel 1:9c5af431a1f1 40 */
gustavatmel 1:9c5af431a1f1 41 typedef enum gapEvent_e {
gustavatmel 1:9c5af431a1f1 42 GAP_EVENT_TIMEOUT = 1, /**< Advertising timed out before a connection could be established. */
gustavatmel 1:9c5af431a1f1 43 GAP_EVENT_CONNECTED = 2, /**< A connection was established with a central device. */
gustavatmel 1:9c5af431a1f1 44 GAP_EVENT_DISCONNECTED = 3 /**< A connection was closed or lost with a central device. */
gustavatmel 1:9c5af431a1f1 45 } gapEvent_t;
gustavatmel 1:9c5af431a1f1 46 };
gustavatmel 1:9c5af431a1f1 47
gustavatmel 1:9c5af431a1f1 48 /// @endcond
gustavatmel 1:9c5af431a1f1 49
gustavatmel 1:9c5af431a1f1 50 #endif // ifndef MBED_GAP_EVENTS_H__