Select one of the symbols to view example projects that use it.
 
Outline
#define __BTC_SPP_H__
#include "btc/btc_task.h"
#include "esp_bt_defs.h"
#include "esp_spp_api.h"
#include "common/bt_target.h"
#include "bta/bta_jv_api.h"
#define ESP_SPP_MAX_SESSION
#define ESP_SPP_SERVER_NAME_MAX
#define BTC_SPP_INVALID_SCN
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/host/bluedroid/btc/profile/std/include/btc_spp.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef __BTC_SPP_H__ #define __BTC_SPP_H__ #include "btc/btc_task.h" #include "esp_bt_defs.h" #include "esp_spp_api.h" #include "common/bt_target.h" #include "bta/bta_jv_api.h"5 includes #if (defined BTC_SPP_INCLUDED && BTC_SPP_INCLUDED == TRUE) #define ESP_SPP_MAX_SESSION BTA_JV_MAX_RFC_SR_SESSION #define ESP_SPP_SERVER_NAME_MAX 32 #define BTC_SPP_INVALID_SCN 0x00 typedef enum { BTC_SPP_ACT_INIT = 0, BTC_SPP_ACT_UNINIT, BTC_SPP_ACT_START_DISCOVERY, BTC_SPP_ACT_CONNECT, BTC_SPP_ACT_DISCONNECT, BTC_SPP_ACT_START_SRV, BTC_SPP_ACT_STOP_SRV, BTC_SPP_ACT_WRITE, BTC_SPP_ACT_VFS_REGISTER, BTC_SPP_ACT_VFS_UNREGISTER, }{...} btc_spp_act_t; /* btc_spp_args_t */ typedef union { //BTC_SPP_ACT_INIT struct init_arg { esp_spp_mode_t mode; bool enable_l2cap_ertm; UINT16 tx_buffer_size; }{...} init; //BTC_SPP_ACT_UNINIT struct uninit_arg { }{...} uninit; //BTC_SPP_ACT_START_DISCOVERY struct start_discovery_arg { BD_ADDR bd_addr; UINT16 num_uuid; tSDP_UUID *p_uuid_list; }{...} start_discovery; //BTC_SPP_ACT_CONNECT struct conn_arg { esp_spp_sec_t sec_mask; esp_spp_role_t role; UINT8 remote_scn; esp_bd_addr_t peer_bd_addr; }{...} connect; //BTC_SPP_ACT_DISCONNECT struct disconn_arg { UINT32 handle; }{...} disconnect; //BTC_SPP_ACT_START_SRV struct start_srv_arg { esp_spp_sec_t sec_mask; esp_spp_role_t role; UINT8 local_scn; UINT8 max_session; char name[ESP_SPP_SERVER_NAME_MAX + 1]; }{...} start_srv; //BTC_SPP_ACT_STOP_SRV struct stop_srv_arg { UINT8 scn; }{...} stop_srv; //BTC_SPP_ACT_WRITE struct write_arg { UINT32 handle; int len; UINT8 *p_data; }{...} write; }{...} btc_spp_args_t; void btc_spp_call_handler(btc_msg_t *msg); void btc_spp_cb_handler(btc_msg_t *msg); void btc_spp_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src); void btc_spp_arg_deep_free(btc_msg_t *msg); esp_err_t spp_send_data_to_btc(uint32_t handle, int len, uint8_t *p_data, esp_spp_mode_t spp_mode);/* ... */ #endif ///defined BTC_SPP_INCLUDED && BTC_SPP_INCLUDED == TRUE/* ... */ #endif ///__BTC_SPP_H__
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.