MT2523 API Reference  LinkIt SDK v4
bt_device_manager_le.h
1 /* Copyright Statement:
2  *
3  * (C) 2005-2016 MediaTek Inc. All rights reserved.
4  *
5  * This software/firmware and related documentation ("MediaTek Software") are
6  * protected under relevant copyright laws. The information contained herein
7  * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
8  * Without the prior written permission of MediaTek and/or its licensors,
9  * any reproduction, modification, use or disclosure of MediaTek Software,
10  * and information contained herein, in whole or in part, shall be strictly prohibited.
11  * You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
12  * if you have agreed to and been bound by the applicable license agreement with
13  * MediaTek ("License Agreement") and been granted explicit permission to do so within
14  * the License Agreement ("Permitted User"). If you are not a Permitted User,
15  * please cease any access or use of MediaTek Software immediately.
16  * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
17  * THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
18  * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
19  * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
21  * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
22  * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
23  * SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
24  * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
25  * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
26  * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
27  * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
28  * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
29  * CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
30  * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
31  * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
32  * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
33  */
34 
35 
36 #ifndef __BT_DEVICE_MANAGER_LE_H__
37 #define __BT_DEVICE_MANAGER_LE_H__
38 
83 #include <stdbool.h>
84 #include <stdint.h>
85 #include <stdio.h>
86 #include "bt_gap_le.h"
87 #include "bt_type.h"
88 
89 
90 BT_EXTERN_C_BEGIN
91 
101 typedef struct {
102  uint16_t conn_interval;
103  uint16_t slave_latency;
106 
117 void bt_device_manager_le_init(void);
118 
125 
132 
139 
148 
156 
165 void bt_device_manager_le_get_bonded_list(bt_bd_addr_t *list, uint32_t *count);
166 
174 
180 
186 
187 BT_EXTERN_C_END
188 
194 #endif /* __BT_DEVICE_MANAGER_LE_H__ */
void bt_device_manager_le_get_bonded_list(bt_bd_addr_t *list, uint32_t *count)
This function gets the list of bonded LE devices.
Connection parameter structure.
Definition: bt_device_manager_le.h:101
For more information about the pairing configuration, please refer to the Bluetooth core specificatio...
Definition: bt_gap_le.h:387
uint8_t bt_device_manager_le_get_bonded_number(void)
This function gets the count of the bonded LE devices.
LE local key information.
Definition: bt_gap_le.h:439
uint16_t bt_handle_t
Define the connection handle type.
Definition: bt_type.h:85
uint8_t const * bt_bd_addr_ptr_t
A pointer to the bt_bd_addr_t.
Definition: bt_type.h:181
bt_status_t bt_device_manager_le_gap_set_pairing_configuration(bt_gap_le_smp_pairing_config_t *pairing_config)
This function sets the preferred pairing configuration of this device.
bt_bd_addr_ptr_t bt_device_manager_le_get_public_address(void)
This function gets the public address of the device.
bt_device_manager_le_connection_param_t * bt_device_manager_le_get_current_connection_param(bt_handle_t connection_handle)
This function gets the connection parameter of the current link specified by the connection handle...
uint16_t slave_latency
Slave Latency in number of connection events, value range: 0x0000 to 0x03E8.
Definition: bt_device_manager_le.h:103
void bt_device_manager_le_remove_bonded_device(bt_addr_t *peer_addr)
This function removes the bonded device information specified by the peer_addr from this device...
void bt_device_manager_le_clear_all_bonded_info(void)
This function clears all bonded information stored in this device.
uint16_t supervision_timeout
Connection Supervision Timeout in 10 ms units, value range: 0x000A to 0x0C80.
Definition: bt_device_manager_le.h:104
uint8_t bt_bd_addr_t[6]
Address type, defined in Bluetooth core specification version 4.2.
Definition: bt_type.h:180
int32_t bt_status_t
Define the status type, returned from the APIs, and defined as BT_STATUS_XXX.
Definition: bt_type.h:173
This structure defines the Bluetooth address.
Definition: bt_type.h:215
bool bt_device_manager_le_is_bonded(bt_addr_t *address)
This function gets the bonded status of the LE device specified by the address.
bt_status_t bt_device_manager_le_gap_set_local_configuration(bt_gap_le_local_key_t *local_key, bool sc_only_mode)
This function sets the local configuration of this device.
void bt_device_manager_le_init(void)
This function initializes the LE Device Manager service.
uint16_t conn_interval
Connection Interval in 1.25 ms units, value range: 0x0006 to 0x0C80.
Definition: bt_device_manager_le.h:102