ESP-IDF
esp_hidh_dev_s::config
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
esp_hidh_dev_s::config
esp_hidh_dev_s::config field
Syntax
Show:
Summary
Declaration
from
esp_hidh_private.h:44
esp_hid_device_config_t
config
;
Examples
References
from
examples
Code
Location
Referrer
esp_hid_device_config_t
config
;
esp_hidh_private.h:44
ESP_LOGD
(
TAG
,
"Found %u HID Services"
,
dev
->
config
.
report_maps_len
)
;
ble_hidh.c:101
read_device_services()
dev
->
config
.
report_maps
=
(
esp_hid_raw_report_map_t
*
)
malloc
(
dev
->
config
.
report_maps_len
*
sizeof
(
esp_hid_raw_report_map_t
)
)
;
ble_hidh.c:102
read_device_services()
if
(
dev
->
config
.
report_maps
==
NULL
)
{
ble_hidh.c:103
read_device_services()
memset
(
dev
->
config
.
report_maps
,
0
,
dev
->
config
.
report_maps_len
*
sizeof
(
esp_hid_raw_report_map_t
)
)
;
ble_hidh.c:108
read_device_services()
if
(
dev
->
config
.
device_name
==
NULL
&&
cuuid
==
0x2a00
&&
(
char_result
[
c
]
.
properties
&
ESP_GATT_CHAR_PROP_BIT_READ
)
!=
0
)
{
ble_hidh.c:130
read_device_services()
dev
->
config
.
device_name
=
(
const
char
*
)
rdata
;
ble_hidh.c:132
read_device_services()
dev
->
config
.
vendor_id
=
*
(
(
uint16_t
*
)
&
rdata
[
1
]
)
;
ble_hidh.c:147
read_device_services()
dev
->
config
.
product_id
=
*
(
(
uint16_t
*
)
&
rdata
[
3
]
)
;
ble_hidh.c:148
read_device_services()
dev
->
config
.
version
=
*
(
(
uint16_t
*
)
&
rdata
[
5
]
)
;
ble_hidh.c:149
read_device_services()
dev
->
config
.
manufacturer_name
=
(
const
char
*
)
rdata
;
ble_hidh.c:154
read_device_services()
dev
->
config
.
serial_number
=
(
const
char
*
)
rdata
;
ble_hidh.c:158
read_device_services()
dev
->
config
.
report_maps
[
hidindex
]
.
data
=
(
const
uint8_t
*
)
rdata
;
ble_hidh.c:167
read_device_services()
dev
->
config
.
report_maps
[
hidindex
]
.
len
=
rlen
;
ble_hidh.c:168
read_device_services()
for
(
uint8_t
d
=
0
;
d
<
dev
->
config
.
report_maps_len
;
d
++
)
{
ble_hidh.c:246
read_device_services()
if
(
dev
->
reports_len
&&
dev
->
config
.
report_maps
[
d
]
.
len
)
{
ble_hidh.c:247
read_device_services()
map
=
esp_hid_parse_report_map
(
dev
->
config
.
report_maps
[
d
]
.
data
,
dev
->
config
.
report_maps
[
d
]
.
len
)
;
ble_hidh.c:248
read_device_services()
dev
->
config
.
report_maps_len
++
;
ble_hidh.c:372
esp_hidh_gattc_event_handler()
fprintf
(
fp
,
"Name: %s, Manufacturer: %s, Serial Number: %s\n"
,
dev
->
config
.
device_name
?
dev
->
config
.
device_name
:
""
,
dev
->
config
.
manufacturer_name
?
dev
->
config
.
manufacturer_name
:
""
,
dev
->
config
.
serial_number
?
dev
->
config
.
serial_number
:
""
)
;
ble_hidh.c:599
esp_ble_hidh_dev_dump()
fprintf
(
fp
,
"PID: 0x%04x, VID: 0x%04x, VERSION: 0x%04x\n"
,
dev
->
config
.
product_id
,
dev
->
config
.
vendor_id
,
dev
->
config
.
version
)
;
ble_hidh.c:600
esp_ble_hidh_dev_dump()
fprintf
(
fp
,
"Report Maps: %d\n"
,
dev
->
config
.
report_maps_len
)
;
ble_hidh.c:602
esp_ble_hidh_dev_dump()
for
(
uint8_t
d
=
0
;
d
<
dev
->
config
.
report_maps_len
;
d
++
)
{
ble_hidh.c:603
esp_ble_hidh_dev_dump()
fprintf
(
fp
,
" Report Map Length: %d\n"
,
dev
->
config
.
report_maps
[
d
]
.
len
)
;
ble_hidh.c:604
esp_ble_hidh_dev_dump()
dev
->
config
.
product_id
=
param
->
dscp
.
product_id
;
bt_hidh.c:318
esp_hh_cb()
dev
->
config
.
vendor_id
=
param
->
dscp
.
vendor_id
;
bt_hidh.c:319
esp_hh_cb()
dev
->
config
.
version
=
param
->
dscp
.
version
;
bt_hidh.c:320
esp_hh_cb()
dev
->
config
.
report_maps_len
=
1
;
bt_hidh.c:322
esp_hh_cb()
dev
->
config
.
report_maps
=
bt_hidh.c:323
esp_hh_cb()
(
esp_hid_raw_report_map_t
*
)
malloc
(
dev
->
config
.
report_maps_len
*
sizeof
(
esp_hid_raw_report_map_t
)
)
;
bt_hidh.c:324
esp_hh_cb()
if
(
dev
->
config
.
report_maps
==
NULL
)
{
bt_hidh.c:325
esp_hh_cb()
dev
->
config
.
report_maps
[
0
]
.
data
=
(
uint8_t
*
)
malloc
(
param
->
dscp
.
dl_len
)
;
bt_hidh.c:332
esp_hh_cb()
if
(
dev
->
config
.
report_maps
[
0
]
.
data
==
NULL
)
{
bt_hidh.c:333
esp_hh_cb()
dev
->
config
.
report_maps
[
0
]
.
len
=
param
->
dscp
.
dl_len
;
bt_hidh.c:337
esp_hh_cb()
memcpy
(
(
uint8_t
*
)
dev
->
config
.
report_maps
[
0
]
.
data
,
param
->
dscp
.
dsc_list
,
bt_hidh.c:338
esp_hh_cb()
dev
->
config
.
report_maps
[
0
]
.
len
)
;
bt_hidh.c:339
esp_hh_cb()
if
(
dev
->
config
.
report_maps
[
0
]
.
len
&&
dev
->
config
.
report_maps
[
0
]
.
data
)
{
bt_hidh.c:342
esp_hh_cb()
map
=
esp_hid_parse_report_map
(
dev
->
config
.
report_maps
[
0
]
.
data
,
dev
->
config
.
report_maps
[
0
]
.
len
)
;
bt_hidh.c:346
esp_hh_cb()
fprintf
(
fp
,
"Name: %s, Manufacturer: %s, Serial Number: %s\n"
,
dev
->
config
.
device_name
?
dev
->
config
.
device_name
:
""
,
dev
->
config
.
manufacturer_name
?
dev
->
config
.
manufacturer_name
:
""
,
dev
->
config
.
serial_number
?
dev
->
config
.
serial_number
:
""
)
;
bt_hidh.c:979
esp_bt_hidh_dev_dump()
fprintf
(
fp
,
"PID: 0x%04x, VID: 0x%04x, VERSION: 0x%04x\n"
,
dev
->
config
.
product_id
,
dev
->
config
.
vendor_id
,
dev
->
config
.
version
)
;
bt_hidh.c:980
esp_bt_hidh_dev_dump()
fprintf
(
fp
,
"Report Map Length: %d\n"
,
dev
->
config
.
report_maps
[
0
]
.
len
)
;
bt_hidh.c:981
esp_bt_hidh_dev_dump()
ret
=
&
dev
->
config
;
esp_hidh.c:396
esp_hidh_dev_config_get()
ret
=
dev
->
config
.
device_name
?
dev
->
config
.
device_name
:
""
;
esp_hidh.c:407
esp_hidh_dev_name_get()
ret
=
dev
->
config
.
manufacturer_name
?
dev
->
config
.
manufacturer_name
:
""
;
esp_hidh.c:418
esp_hidh_dev_manufacturer_get()
ret
=
dev
->
config
.
serial_number
?
dev
->
config
.
serial_number
:
""
;
esp_hidh.c:429
esp_hidh_dev_serial_get()
ret
=
dev
->
config
.
vendor_id
;
esp_hidh.c:440
esp_hidh_dev_vendor_id_get()
ret
=
dev
->
config
.
product_id
;
esp_hidh.c:451
esp_hidh_dev_product_id_get()
ret
=
dev
->
config
.
version
;
esp_hidh.c:462
esp_hidh_dev_version_get()
*
num_maps
=
dev
->
config
.
report_maps_len
;
esp_hidh.c:528
esp_hidh_dev_report_maps_get()
*
maps
=
dev
->
config
.
report_maps
;
esp_hidh.c:529
esp_hidh_dev_report_maps_get()
free
(
(
void
*
)
dev
->
config
.
device_name
)
;
esp_hidh.c:685
esp_hidh_dev_resources_free()
free
(
(
void
*
)
dev
->
config
.
manufacturer_name
)
;
esp_hidh.c:686
esp_hidh_dev_resources_free()
free
(
(
void
*
)
dev
->
config
.
serial_number
)
;
esp_hidh.c:687
esp_hidh_dev_resources_free()
for
(
uint8_t
d
=
0
;
d
<
dev
->
config
.
report_maps_len
;
d
++
)
{
esp_hidh.c:688
esp_hidh_dev_resources_free()
if
(
dev
->
config
.
report_maps
[
d
]
.
data
)
{
esp_hidh.c:690
esp_hidh_dev_resources_free()
free
(
(
void
*
)
dev
->
config
.
report_maps
[
d
]
.
data
)
;
esp_hidh.c:691
esp_hidh_dev_resources_free()
free
(
(
void
*
)
dev
->
config
.
report_maps
)
;
esp_hidh.c:694
esp_hidh_dev_resources_free()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
esp_hidh_dev_s::config
is read by 13 functions:
All items filtered out
esp_hidh_dev_s::config
esp_hidh_dev_name_get()
esp_hidh_dev_manufacturer_get()
esp_hidh_dev_serial_get()
esp_hidh_dev_vendor_id_get()
esp_hidh_dev_product_id_get()
esp_hidh_dev_version_get()
esp_hidh_dev_report_maps_get()
esp_hidh_dev_resources_free()
read_device_services()
esp_hidh_gattc_event_handler()
esp_ble_hidh_dev_dump()
esp_hh_cb()
esp_bt_hidh_dev_dump()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out