ESP-IDF
btc_ble_gatts_args_t
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
btc_ble_gatts_args_t
btc_ble_gatts_args_t union
Syntax
Show:
Summary
Declaration
from
btc_gatts.h:37
typedef
union
{
struct
app_reg_args
{
uint16_t
app_id
;
}
app_reg
;
struct
app_unreg_args
{
esp_gatt_if_t
gatts_if
;
}
app_unreg
;
struct
create_srvc_args
{
esp_gatt_if_t
gatts_if
;
esp_gatt_srvc_id_t
service_id
;
uint16_t
num_handle
;
}
create_srvc
;
struct
create_attr_tab_args
{
esp_gatt_if_t
gatts_if
;
uint8_t
srvc_inst_id
;
uint16_t
max_nb_attr
;
esp_gatts_attr_db_t
*
gatts_attr_db
;
}
create_attr_tab
;
struct
delete_srvc_args
{
uint16_t
service_handle
;
}
delete_srvc
;
struct
start_srvc_args
{
uint16_t
service_handle
;
}
start_srvc
;
struct
stop_srvc_args
{
uint16_t
service_handle
;
}
stop_srvc
;
struct
add_incl_srvc_args
{
uint16_t
service_handle
;
uint16_t
included_service_handle
;
}
add_incl_srvc
;
struct
add_char_args
{
uint16_t
service_handle
;
esp_bt_uuid_t
char_uuid
;
esp_gatt_perm_t
perm
;
esp_gatt_char_prop_t
property
;
esp_attr_control_t
attr_control
;
esp_attr_value_t
char_val
;
}
add_char
;
struct
add_descr_args
{
uint16_t
service_handle
;
esp_bt_uuid_t
descr_uuid
;
esp_gatt_perm_t
perm
;
esp_attr_control_t
attr_control
;
esp_attr_value_t
descr_val
;
}
add_descr
;
struct
send_indicate_args
{
uint16_t
conn_id
;
uint16_t
attr_handle
;
bool
need_confirm
;
uint16_t
value_len
;
uint8_t
*
value
;
}
send_ind
;
struct
send_rsp_args
{
uint16_t
conn_id
;
uint32_t
trans_id
;
esp_gatt_status_t
status
;
esp_gatt_rsp_t
*
rsp
;
}
send_rsp
;
struct
set_attr_val_args
{
uint16_t
handle
;
uint16_t
length
;
uint8_t
*
value
;
}
set_attr_val
;
struct
open_args
{
esp_gatt_if_t
gatts_if
;
esp_bd_addr_t
remote_bda
;
bool
is_direct
;
}
open
;
struct
close_args
{
uint16_t
conn_id
;
}
close
;
struct
send_service_change_args
{
esp_gatt_if_t
gatts_if
;
esp_bd_addr_t
remote_bda
;
}
send_service_change
;
}
btc_ble_gatts_args_t
;
Fields
Field
Declared as
btc_ble_gatts_args_t::app_reg
struct
app_reg_args
{
uint16_t
app_id
;
}
btc_ble_gatts_args_t::app_unreg
struct
app_unreg_args
{
esp_gatt_if_t
gatts_if
;
}
btc_ble_gatts_args_t::create_srvc
struct
create_srvc_args
{
esp_gatt_if_t
gatts_if
;
esp_gatt_srvc_id_t
service_id
;
uint16_t
num_handle
;
}
btc_ble_gatts_args_t::create_attr_tab
struct
create_attr_tab_args
{
esp_gatt_if_t
gatts_if
;
uint8_t
srvc_inst_id
;
uint16_t
max_nb_attr
;
esp_gatts_attr_db_t
*
gatts_attr_db
;
}
btc_ble_gatts_args_t::delete_srvc
struct
delete_srvc_args
{
uint16_t
service_handle
;
}
btc_ble_gatts_args_t::start_srvc
struct
start_srvc_args
{
uint16_t
service_handle
;
}
btc_ble_gatts_args_t::stop_srvc
struct
stop_srvc_args
{
uint16_t
service_handle
;
}
btc_ble_gatts_args_t::add_incl_srvc
struct
add_incl_srvc_args
{
uint16_t
service_handle
;
uint16_t
included_service_handle
;
}
btc_ble_gatts_args_t::add_char
struct
add_char_args
{
uint16_t
service_handle
;
esp_bt_uuid_t
char_uuid
;
esp_gatt_perm_t
perm
;
esp_gatt_char_prop_t
property
;
esp_attr_control_t
attr_control
;
esp_attr_value_t
char_val
;
}
btc_ble_gatts_args_t::add_descr
struct
add_descr_args
{
uint16_t
service_handle
;
esp_bt_uuid_t
descr_uuid
;
esp_gatt_perm_t
perm
;
esp_attr_control_t
attr_control
;
esp_attr_value_t
descr_val
;
}
btc_ble_gatts_args_t::send_ind
struct
send_indicate_args
{
uint16_t
conn_id
;
uint16_t
attr_handle
;
bool
need_confirm
;
uint16_t
value_len
;
uint8_t
*
value
;
}
btc_ble_gatts_args_t::send_rsp
struct
send_rsp_args
{
uint16_t
conn_id
;
uint32_t
trans_id
;
esp_gatt_status_t
status
;
esp_gatt_rsp_t
*
rsp
;
}
btc_ble_gatts_args_t::set_attr_val
struct
set_attr_val_args
{
uint16_t
handle
;
uint16_t
length
;
uint8_t
*
value
;
}
btc_ble_gatts_args_t::open
struct
open_args
{
esp_gatt_if_t
gatts_if
;
esp_bd_addr_t
remote_bda
;
bool
is_direct
;
}
btc_ble_gatts_args_t::close
struct
close_args
{
uint16_t
conn_id
;
}
btc_ble_gatts_args_t::send_service_change
struct
send_service_change_args
{
esp_gatt_if_t
gatts_if
;
esp_bd_addr_t
remote_bda
;
}
Examples
References
from
examples
Code
Location
Referrer
typedef
union
{
btc_gatts.h:37
}
btc_ble_gatts_args_t
;
btc_gatts.h:145
btc_ble_gatts_args_t
*
dst
=
(
btc_ble_gatts_args_t
*
)
p_dest
;
btc_gatts.c:65
btc_gatts_arg_deep_copy()
btc_ble_gatts_args_t
*
src
=
(
btc_ble_gatts_args_t
*
)
p_src
;
btc_gatts.c:66
btc_gatts_arg_deep_copy()
btc_ble_gatts_args_t
*
arg
=
(
btc_ble_gatts_args_t
*
)
msg
->
arg
;
btc_gatts.c:173
btc_gatts_arg_deep_free()
btc_ble_gatts_args_t
*
arg
=
(
btc_ble_gatts_args_t
*
)
msg
->
arg
;
btc_gatts.c:617
btc_gatts_call_handler()
}
btc_ble_gatts_args_t
;
btc_gatts.h:145
btc_ble_gatts_args_t
btc_ble_gatts_args_t
arg
;
esp_blufi.c:417
esp_blufi_close()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
esp_blufi.c:422
esp_blufi_close()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:40
esp_ble_gatts_app_register()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:54
esp_ble_gatts_app_register()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:61
esp_ble_gatts_app_unregister()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:70
esp_ble_gatts_app_unregister()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:77
esp_ble_gatts_create_service()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:88
esp_ble_gatts_create_service()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:97
esp_ble_gatts_create_attr_tab()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:114
esp_ble_gatts_create_attr_tab()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:122
esp_ble_gatts_add_included_service()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:132
esp_ble_gatts_add_included_service()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:141
esp_ble_gatts_add_char()
memset
(
&
arg
,
0
,
sizeof
(
btc_ble_gatts_args_t
)
)
;
esp_gatts_api.c:152
esp_ble_gatts_add_char()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:170
esp_ble_gatts_add_char()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:181
esp_ble_gatts_add_char_descr()
memset
(
&
arg
,
0
,
sizeof
(
btc_ble_gatts_args_t
)
)
;
esp_gatts_api.c:192
esp_ble_gatts_add_char_descr()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:210
esp_ble_gatts_add_char_descr()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:217
esp_ble_gatts_delete_service()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:226
esp_ble_gatts_delete_service()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:232
esp_ble_gatts_start_service()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:241
esp_ble_gatts_start_service()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:247
esp_ble_gatts_stop_service()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
==
BT_STATUS_SUCCESS
?
ESP_OK
:
ESP_FAIL
)
;
esp_gatts_api.c:256
esp_ble_gatts_stop_service()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:264
esp_ble_gatts_send_indicate()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:290
esp_ble_gatts_send_indicate()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:298
esp_ble_gatts_send_response()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:316
esp_ble_gatts_send_response()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:323
esp_ble_gatts_set_attr_value()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
btc_gatts_arg_deep_copy
,
esp_gatts_api.c:334
esp_ble_gatts_set_attr_value()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:353
esp_ble_gatts_open()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
esp_gatts_api.c:364
esp_ble_gatts_open()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:371
esp_ble_gatts_close()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
esp_gatts_api.c:380
esp_ble_gatts_close()
btc_ble_gatts_args_t
arg
;
esp_gatts_api.c:387
esp_ble_gatts_send_service_change_indication()
return
(
btc_transfer_context
(
&
msg
,
&
arg
,
sizeof
(
btc_ble_gatts_args_t
)
,
NULL
,
NULL
)
esp_gatts_api.c:402
esp_ble_gatts_send_service_change_indication()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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