Select one of the symbols to view example projects that use it.
 
Outline
#define BTC_HD_H
#include <stdint.h>
#include "bta/bta_hd_api.h"
#include "btc/btc_task.h"
#include "esp_hidd_api.h"
Files
ESP-IDF
components
app_trace
app_update
bootloader_support
bt
common
controller
esp_ble_mesh
host
bluedroid
api
bta
btc
core
include
profile
std
a2dp
avrc
gap
gatt
hf_ag
hf_client
hid
include
l2cap
sdp
spp
common
config
device
external
hci
main
stack
nimble
include
porting
cmock
console
cxx
driver
efuse
esp_adc
esp_app_format
esp_bootloader_format
esp_coex
esp_common
esp_driver_ana_cmpr
esp_driver_cam
esp_driver_dac
esp_driver_gpio
esp_driver_gptimer
esp_driver_i2c
esp_driver_i2s
esp_driver_jpeg
esp_driver_ledc
esp_driver_mcpwm
esp_driver_parlio
esp_driver_pcnt
esp_driver_rmt
esp_driver_sdio
esp_driver_sdm
esp_driver_sdmmc
esp_driver_sdspi
esp_driver_spi
esp_driver_tsens
esp_driver_uart
esp_driver_usb_serial_jtag
esp_eth
esp_event
esp_gdbstub
esp_hid
esp_http_client
esp_http_server
esp_https_ota
esp_https_server
esp_hw_support
esp_lcd
esp_local_ctrl
esp_mm
esp_netif
esp_partition
esp_phy
esp_pm
esp_psram
esp_ringbuf
esp_rom
esp_security
esp_system
esp_timer
esp_vfs_console
esp_wifi
esp-tls
espcoredump
hal
heap
http_parser
ieee802154
log
mqtt
newlib
nvs_flash
nvs_sec_provider
openthread
perfmon
protobuf-c
protocomm
pthread
rt
sdmmc
soc
spi_flash
spiffs
tcp_transport
ulp
unity
vfs
wear_levelling
wifi_provisioning
wpa_supplicant
xtensa
examples
lwIP
FreeRTOS
cJSON
mbedTLS
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/bt/host/bluedroid/btc/profile/std/include/btc_hd.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/****************************************************************************** * * Copyright (C) 2016 The Android Open Source Project * Copyright (C) 2009-2012 Broadcom Corporation * Copyright (C) 2019 Blake Felt * * 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 BTC_HD_H #define BTC_HD_H #if BTC_HD_INCLUDED == TRUE #include <stdint.h> #include "bta/bta_hd_api.h" #include "btc/btc_task.h" #include "esp_hidd_api.h" typedef enum { BTC_HD_INIT_EVT = 0, BTC_HD_DEINIT_EVT, BTC_HD_REGISTER_APP_EVT, BTC_HD_UNREGISTER_APP_EVT, BTC_HD_CONNECT_EVT, BTC_HD_DISCONNECT_EVT, BTC_HD_SEND_REPORT_EVT, BTC_HD_REPORT_ERROR_EVT, BTC_HD_UNPLUG_EVT, }{...} BTC_HD_EVT; typedef enum { BTC_HD_DISABLED = 0, BTC_HD_ENABLED, BTC_HD_DISABLING, BTC_HD_CONNECTING, BTC_HD_CONNECTED, BTC_HD_DISCONNECTING, BTC_HD_DISCONNECTED, }{...} BTC_HD_STATUS; /* BTIF-HD control block */ typedef struct { BTC_HD_STATUS status; bool app_registered; bool service_dereg_active; bool forced_disc; tBTA_HD_APP_INFO app_info; tBTA_HD_QOS_INFO in_qos; tBTA_HD_QOS_INFO out_qos; }{...} btc_hd_cb_t; /* btc_hidd_args_t */ typedef union { // BTC_HD_CONNECT_EVT struct hd_connect_arg { BD_ADDR bd_addr; }{...} connect; // BTC_HD_REGISTER_APP_EVT struct register_app_arg { esp_hidd_app_param_t *app_param; esp_hidd_qos_param_t *in_qos; esp_hidd_qos_param_t *out_qos; }{...} register_app; // BTC_HD_SEND_REPORT_EVT struct send_report_arg { esp_hidd_report_type_t type; uint8_t id; uint16_t len; uint8_t *data; }{...} send_report; // BTC_HD_REPORT_ERROR_EVT uint8_t error; }{...} btc_hidd_args_t; #ifdef __cplusplus extern "C" { #endif /****************************************************************************** * Functions ******************************************************************************//* ... */ void btc_hd_call_handler(btc_msg_t *msg); void btc_hd_cb_handler(btc_msg_t *msg); // extern btc_hd_cb_t btc_hd_cb; // extern void btc_hd_remove_device(bt_bdaddr_t bd_addr); // extern void btc_hd_service_registration(); void btc_hd_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src); void btc_hd_cb_arg_deep_free(btc_msg_t *msg); #ifdef __cplusplus }{...} #endif /* ... */ #endif /* BTC_HD_INCLUDED == TRUE *//* ... */ #endif /* BTC_HD_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.