Select one of the symbols to view example projects that use it.
 
Outline
#define __BTC_BLUFI_PRF_H__
#include "blufi_int.h"
#include "btc/btc_task.h"
#include "esp_blufi_api.h"
#include "esp_err.h"
#include "stack/gatt_api.h"
#define ESP_BLUFI_ERROR
#define ESP_BLUFI_SUCCESS
#define ESP_BLUFI_ERROR
#define ESP_BLUFI_SUCCESS
#define BT_BD_ADDR_STR
#define BT_BD_ADDR_HEX
#define GATT_UUID_CHAR_CLIENT_CONFIG
#define BLUFI_SERVICE_UUID
#define BLUFI_CHAR_P2E_UUID
#define BLUFI_CHAR_E2P_UUID
#define BLUFI_DESCR_E2P_UUID
#define BLUFI_APP_UUID
#define BLUFI_HDL_NUM
pkt_info
blufi_srvc_uuid
blufi_char_uuid_p2e
blufi_char_uuid_e2p
blufi_descr_uuid_e2p
blufi_app_uuid
btc_blufi_act_t
btc_blufi_args_t
btc_blufi_cb_to_app(esp_blufi_cb_event_t, esp_blufi_cb_param_t *);
btc_blufi_cb_handler(btc_msg_t *);
btc_blufi_call_handler(btc_msg_t *);
btc_blufi_set_callbacks(esp_blufi_callbacks_t *);
btc_blufi_recv_handler(uint8_t *, int);
btc_blufi_send_notify(uint8_t *, int);
btc_blufi_call_deep_copy(btc_msg_t *, void *, void *);
btc_blufi_call_deep_free(btc_msg_t *);
btc_blufi_get_version();
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/common/btc/profile/esp/include/btc_blufi_prf.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef __BTC_BLUFI_PRF_H__ #define __BTC_BLUFI_PRF_H__ #include "blufi_int.h" #include "btc/btc_task.h" #include "esp_blufi_api.h" #include "esp_err.h" #ifdef CONFIG_BT_BLUEDROID_ENABLED #include "stack/gatt_api.h" #define ESP_BLUFI_ERROR GATT_ERROR #define ESP_BLUFI_SUCCESS GATT_SUCCESS/* ... */ #else #define ESP_BLUFI_ERROR 0x85 #define ESP_BLUFI_SUCCESS 0x00/* ... */ #endif #ifdef __cplusplus extern "C" { #endif #define BT_BD_ADDR_STR "%02x:%02x:%02x:%02x:%02x:%02x" #define BT_BD_ADDR_HEX(addr) addr[0], addr[1], addr[2], addr[3], addr[4], addr[5] #define GATT_UUID_CHAR_CLIENT_CONFIG 0x2902 /* Client Characteristic Configuration */ //define the blufi serivce uuid #define BLUFI_SERVICE_UUID 0xFFFF //define the blufi Char uuid (PHONE to ESP32) #define BLUFI_CHAR_P2E_UUID 0xFF01 //define the blufi Char uuid (ESP32 to PHONE) #define BLUFI_CHAR_E2P_UUID 0xFF02 //define the blufi Descriptor uuid (ESP32 to PHONE) #define BLUFI_DESCR_E2P_UUID GATT_UUID_CHAR_CLIENT_CONFIG //define the blufi APP ID #define BLUFI_APP_UUID 0xFFFF #define BLUFI_HDL_NUM 69 defines struct pkt_info{ uint8_t *pkt; int pkt_len; }{ ... }; static const tBT_UUID blufi_srvc_uuid = {LEN_UUID_16, {BLUFI_SERVICE_UUID}}; static const tBT_UUID blufi_char_uuid_p2e = {LEN_UUID_16, {BLUFI_CHAR_P2E_UUID}}; static const tBT_UUID blufi_char_uuid_e2p = {LEN_UUID_16, {BLUFI_CHAR_E2P_UUID}}; static const tBT_UUID blufi_descr_uuid_e2p = {LEN_UUID_16, {BLUFI_DESCR_E2P_UUID}}; static const tBT_UUID blufi_app_uuid = {LEN_UUID_16, {BLUFI_APP_UUID}}; typedef enum { BTC_BLUFI_ACT_INIT = 0, BTC_BLUFI_ACT_DEINIT, BTC_BLUFI_ACT_SEND_CFG_REPORT, BTC_BLUFI_ACT_SEND_WIFI_LIST, BTC_BLUFI_ACT_SEND_ERR_INFO, BTC_BLUFI_ACT_SEND_CUSTOM_DATA, }{ ... } btc_blufi_act_t; typedef union { struct blufi_cfg_report { wifi_mode_t opmode; esp_blufi_sta_conn_state_t sta_conn_state; uint8_t softap_conn_num; esp_blufi_extra_info_t *extra_info; int extra_info_len; }{ ... } wifi_conn_report; /* BTC_BLUFI_ACT_SEND_WIFI_LIST *//* ... */ struct blufi_wifi_list { uint16_t apCount; esp_blufi_ap_record_t *list; }{ ... } wifi_list; /* BTC_BLUFI_ACT_SEND_ERR_INFO *//* ... */ struct blufi_error_infor { esp_blufi_error_state_t state; }{ ... } blufi_err_infor; /* BTC_BLUFI_ACT_SEND_CUSTOM_DATA *//* ... */ struct blufi_custom_data { uint8_t *data; uint32_t data_len; }{ ... } custom_data; }{ ... } btc_blufi_args_t; void btc_blufi_cb_to_app(esp_blufi_cb_event_t event, esp_blufi_cb_param_t *param); void btc_blufi_cb_handler(btc_msg_t *msg); void btc_blufi_call_handler(btc_msg_t *msg); void btc_blufi_set_callbacks(esp_blufi_callbacks_t *callbacks); void btc_blufi_recv_handler(uint8_t *data, int len); void btc_blufi_send_notify(uint8_t *pkt, int pkt_len); void btc_blufi_call_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src); void btc_blufi_call_deep_free(btc_msg_t *msg); uint16_t btc_blufi_get_version(void); #ifdef __cplusplus }{...} #endif/* ... */ #endif /* __BTC_BLUFI_PRF_H__ */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.