test code 123

Dependencies:   mbed

Fork of LinkNode-Test by Qi Yao

Committer:
youkee
Date:
Thu Sep 01 05:14:03 2016 +0000
Revision:
0:1ad0e04b1bc5
change internal time from 1s to 200ms

Who changed what in which revision?

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