Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
mridup
Date:
Wed Aug 27 11:52:07 2014 +0000
Revision:
41:95b8d531628c
Parent:
16:8aeb0c44869b
Child:
45:1fff7d7d5ce7
SetAddress resets and re-inits the device.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mridup 0:309c845d289d 1 /* mbed Microcontroller Library
mridup 0:309c845d289d 2 * Copyright (c) 2006-2013 ARM Limited
mridup 0:309c845d289d 3 *
mridup 0:309c845d289d 4 * Licensed under the Apache License, Version 2.0 (the "License");
mridup 0:309c845d289d 5 * you may not use this file except in compliance with the License.
mridup 0:309c845d289d 6 * You may obtain a copy of the License at
mridup 0:309c845d289d 7 *
mridup 0:309c845d289d 8 * http://www.apache.org/licenses/LICENSE-2.0
mridup 0:309c845d289d 9 *
mridup 0:309c845d289d 10 * Unless required by applicable law or agreed to in writing, software
mridup 0:309c845d289d 11 * distributed under the License is distributed on an "AS IS" BASIS,
mridup 0:309c845d289d 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mridup 0:309c845d289d 13 * See the License for the specific language governing permissions and
mridup 0:309c845d289d 14 * limitations under the License.
mridup 0:309c845d289d 15 */
mridup 0:309c845d289d 16
mridup 0:309c845d289d 17 #ifndef _BTLE_H_
mridup 0:309c845d289d 18 #define _BTLE_H_
mridup 0:309c845d289d 19
mridup 0:309c845d289d 20
mridup 0:309c845d289d 21 #ifdef __cplusplus
mridup 0:309c845d289d 22 extern "C" {
mridup 0:309c845d289d 23 #endif
mridup 0:309c845d289d 24
mridup 0:309c845d289d 25 #include "stm32l0xx_bluenrg_shield_bsp.h"
mridup 0:309c845d289d 26 #include "hci.h"
mridup 0:309c845d289d 27 #include "bluenrg_hci.h"
mridup 0:309c845d289d 28 #include "hci_internal.h"
mridup 0:309c845d289d 29 #include "bluenrg_hci_internal.h"
mridup 2:a2b623661316 30 #include "gap.h"
mridup 2:a2b623661316 31 #include "gatt_service.h"
mridup 0:309c845d289d 32 #include <stdio.h>
mridup 0:309c845d289d 33 #include <string.h>
mridup 0:309c845d289d 34
mridup 41:95b8d531628c 35 void btle_init(bool isSetAddress);
mridup 0:309c845d289d 36 void User_Process(void);
mridup 0:309c845d289d 37 void setConnectable(void);
mridup 0:309c845d289d 38
hemddabral 14:baa7a1464517 39 extern uint16_t g_gap_service_handle;
hemddabral 14:baa7a1464517 40 extern uint16_t g_appearance_char_handle;
hemddabral 14:baa7a1464517 41 extern uint16_t g_device_name_char_handle;
hemddabral 14:baa7a1464517 42
mridup 0:309c845d289d 43 #ifdef __cplusplus
mridup 0:309c845d289d 44 }
mridup 0:309c845d289d 45 #endif
mridup 0:309c845d289d 46
mridup 0:309c845d289d 47 #endif