Select one of the symbols to view example projects that use it.
 
Outline
#define __BT_SDP_H__
#include <stdint.h>
#include "common/bt_defs.h"
#include "esp_bt_defs.h"
#define SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH
bluetooth_sdp_types
_bluetooth_sdp_hdr_overlay
_bluetooth_sdp_raw_record
_bluetooth_sdp_mas_record
_bluetooth_sdp_mns_record
_bluetooth_sdp_pse_record
_bluetooth_sdp_pce_record
_bluetooth_sdp_ops_record
_bluetooth_sdp_sap_record
_bluetooth_sdp_dip_record
bluetooth_sdp_record
Files
loading (2/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/host/bluedroid/btc/profile/std/include/bt_sdp.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
112
113
114
115
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* ... */ #ifndef __BT_SDP_H__ #define __BT_SDP_H__ #include <stdint.h> // #include "bluetooth.h" #include "common/bt_defs.h" #include "esp_bt_defs.h" #define SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH 15 /** * These events are handled by the state machine *//* ... */ typedef enum { SDP_TYPE_RAW, // Used to carry raw SDP search data for unknown UUIDs SDP_TYPE_MAP_MAS, // Message Access Profile - Server SDP_TYPE_MAP_MNS, // Message Access Profile - Client (Notification Server) SDP_TYPE_PBAP_PSE, // Phone Book Profile - Server SDP_TYPE_PBAP_PCE, // Phone Book Profile - Client SDP_TYPE_OPP_SERVER, // Object Push Profile SDP_TYPE_SAP_SERVER, // SIM Access Profile SDP_TYPE_DIP_SERVER, // Device Identification Profile }{ ... } bluetooth_sdp_types; /** * Some signals need additional pointers, hence we introduce a * generic way to handle these pointers. *//* ... */ typedef struct _bluetooth_sdp_hdr_overlay { bluetooth_sdp_types type; esp_bt_uuid_t uuid; uint32_t service_name_length; char *service_name; int32_t rfcomm_channel_number; int32_t l2cap_psm; int32_t profile_version; int user1_ptr_len; uint8_t *user1_ptr; int user2_ptr_len; // not used uint8_t *user2_ptr; // not used }{ ... } bluetooth_sdp_hdr_overlay; typedef struct _bluetooth_sdp_raw_record { bluetooth_sdp_hdr_overlay hdr; }{ ... } bluetooth_sdp_raw_record; typedef struct _bluetooth_sdp_mas_record { bluetooth_sdp_hdr_overlay hdr; uint32_t mas_instance_id; uint32_t supported_features; uint32_t supported_message_types; }{ ... } bluetooth_sdp_mas_record; typedef struct _bluetooth_sdp_mns_record { bluetooth_sdp_hdr_overlay hdr; uint32_t supported_features; }{ ... } bluetooth_sdp_mns_record; typedef struct _bluetooth_sdp_pse_record { bluetooth_sdp_hdr_overlay hdr; uint32_t supported_features; uint32_t supported_repositories; }{ ... } bluetooth_sdp_pse_record; typedef struct _bluetooth_sdp_pce_record { bluetooth_sdp_hdr_overlay hdr; }{ ... } bluetooth_sdp_pce_record; typedef struct _bluetooth_sdp_ops_record { bluetooth_sdp_hdr_overlay hdr; int supported_formats_list_len; uint8_t supported_formats_list[SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH]; }{ ... } bluetooth_sdp_ops_record; typedef struct _bluetooth_sdp_sap_record { bluetooth_sdp_hdr_overlay hdr; }{ ... } bluetooth_sdp_sap_record; typedef struct _bluetooth_sdp_dip_record { bluetooth_sdp_hdr_overlay hdr; uint16_t vendor; uint16_t vendor_id_source; uint16_t product; uint16_t version; bool primary_record; }{ ... } bluetooth_sdp_dip_record; typedef union { bluetooth_sdp_hdr_overlay hdr; bluetooth_sdp_raw_record raw; bluetooth_sdp_mas_record mas; bluetooth_sdp_mns_record mns; bluetooth_sdp_pse_record pse; bluetooth_sdp_pce_record pce; bluetooth_sdp_ops_record ops; bluetooth_sdp_sap_record sap; bluetooth_sdp_dip_record dip; }{ ... } bluetooth_sdp_record; /* ... */ #endif /* __BT_SDP_H__ */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.