TuyaOS
成员变量
TKL_BLE_GATT_PARAMS_EVT_T结构体 参考
TKL_BLE_GATT_PARAMS_EVT_T 的协作图:
Collaboration graph
[图例]

成员变量

USHORT_T conn_handle
 
union {
   TKL_BLE_GATT_CHAR_DISC_TYPE_T   char_disc
 
   TKL_BLE_READ_CHAR_EVT_T   char_read
 
   TKL_BLE_DATA_REPORT_T   data_read
 
   TKL_BLE_DATA_REPORT_T   data_report
 
   TKL_BLE_GATT_DESC_DISC_TYPE_T   desc_disc
 
   USHORT_T   exchange_mtu
 
   TKL_BLE_NOTIFY_RESULT_EVT_T   notify_result
 
   TKL_BLE_SUBSCRBE_EVT_T   subscribe
 
   TKL_BLE_GATT_SVC_DISC_TYPE_T   svc_disc
 
   TKL_BLE_DATA_REPORT_T   write_report
 
gatt_event
 
INT_T result
 
TKL_BLE_GATT_EVT_TYPE_E type
 

结构体成员变量说明

◆ char_disc

TKL_BLE_GATT_CHAR_DISC_TYPE_T TKL_BLE_GATT_PARAMS_EVT_T::char_disc

Discovery Specific Characteristic

◆ char_read

TKL_BLE_READ_CHAR_EVT_T TKL_BLE_GATT_PARAMS_EVT_T::char_read

read char event, used with TKL_BLE_GATT_EVT_READ_CHAR_VALUE

◆ conn_handle

USHORT_T TKL_BLE_GATT_PARAMS_EVT_T::conn_handle

Connection Handle

◆ data_read

TKL_BLE_DATA_REPORT_T TKL_BLE_GATT_PARAMS_EVT_T::data_read

After we do read attr in central mode, we will get the callback

◆ data_report

TKL_BLE_DATA_REPORT_T TKL_BLE_GATT_PARAMS_EVT_T::data_report

This value can be used with TKL_BLE_GATT_EVT_NOTIFY_INDICATE_RX

◆ desc_disc

TKL_BLE_GATT_DESC_DISC_TYPE_T TKL_BLE_GATT_PARAMS_EVT_T::desc_disc

Discovery Specific Descriptors

◆ exchange_mtu

USHORT_T TKL_BLE_GATT_PARAMS_EVT_T::exchange_mtu

This value can be used with TKL_BLE_GATT_EVT_MTU_REQUEST and TKL_BLE_GATT_EVT_MTU_RSP

◆ notify_result

TKL_BLE_NOTIFY_RESULT_EVT_T TKL_BLE_GATT_PARAMS_EVT_T::notify_result

This value can be used with TKL_BLE_GATT_EVT_NOTIFY_TX

◆ result

INT_T TKL_BLE_GATT_PARAMS_EVT_T::result

Will Refer to HOST STACK Error Code

◆ subscribe

TKL_BLE_SUBSCRBE_EVT_T TKL_BLE_GATT_PARAMS_EVT_T::subscribe

ccc callback event, used with TKL_BLE_GATT_EVT_SUBSCRIBE

◆ svc_disc

TKL_BLE_GATT_SVC_DISC_TYPE_T TKL_BLE_GATT_PARAMS_EVT_T::svc_disc

Discovery All Service

◆ type

TKL_BLE_GATT_EVT_TYPE_E TKL_BLE_GATT_PARAMS_EVT_T::type

Gatt Event

◆ write_report

TKL_BLE_DATA_REPORT_T TKL_BLE_GATT_PARAMS_EVT_T::write_report

This value can be used with TKL_BLE_GATT_EVT_WRITE_REQ


该结构体的文档由以下文件生成: