Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 15 of 15) sorted by relevance

/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/
Dgatt_db.c45 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm);
127 tGATT_PERM perm = p_attr->permission; in gatts_check_attr_readability() local
130 min_key_size = (((perm & GATT_ENCRYPT_KEY_SIZE_MASK) >> 12)); in gatts_check_attr_readability()
135 if (!(perm & GATT_READ_ALLOWED)) { in gatts_check_attr_readability()
140 if ((perm & GATT_READ_AUTH_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_UNAUTHED) && in gatts_check_attr_readability()
146 if ((perm & GATT_READ_MITM_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED)) { in gatts_check_attr_readability()
151 if ((perm & GATT_READ_ENCRYPTED_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_ENCRYPTED)) { in gatts_check_attr_readability()
156 …if ( (perm & GATT_READ_ENCRYPTED_REQUIRED) && (sec_flag & GATT_SEC_FLAG_ENCRYPTED) && (key_size < … in gatts_check_attr_readability()
161 …if ((perm & GATT_READ_AUTHORIZATION) && (!(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED) || !(sec_flag & G… in gatts_check_attr_readability()
510 UINT16 gatts_add_characteristic (tGATT_SVC_DB *p_db, tGATT_PERM perm, in gatts_add_characteristic() argument
[all …]
Dgatt_api.c312 tGATT_PERM perm, tGATT_CHAR_PROP property, in GATTS_AddCharacteristic() argument
322 if ( ((property & GATT_CHAR_PROP_BIT_AUTH) && !(perm & GATT_WRITE_SIGNED_PERM)) || in GATTS_AddCharacteristic()
323 ((perm & GATT_WRITE_SIGNED_PERM) && !(property & GATT_CHAR_PROP_BIT_AUTH)) ) { in GATTS_AddCharacteristic()
324 GATT_TRACE_DEBUG("Invalid configuration property=0x%x perm=0x%x\n ", property, perm); in GATTS_AddCharacteristic()
329 perm, in GATTS_AddCharacteristic()
354 tGATT_PERM perm, in GATTS_AddCharDescriptor() argument
371 perm, in GATTS_AddCharDescriptor()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/include/
Dmesh_bearer_adapt.h563 uint8_t perm; member
578 .perm = BLE_MESH_GATT_PERM_READ, \
593 .perm = BLE_MESH_GATT_PERM_READ, \
608 .perm = BLE_MESH_GATT_PERM_READ, \
625 .perm = BLE_MESH_GATT_PERM_READ, \
645 .perm = _perm, \
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_api.c219 … tBTA_GATT_PERM perm, tBTA_GATT_CHAR_PROP property, tGATT_ATTR_VAL *attr_val, in BTA_GATTS_AddCharacteristic() argument
232 p_buf->perm = perm; in BTA_GATTS_AddCharacteristic()
273 tBTA_GATT_PERM perm, in BTA_GATTS_AddCharDescriptor() argument
285 p_buf->perm = perm; in BTA_GATTS_AddCharDescriptor()
Dbta_gatts_act.c422 p_msg->api_add_char.perm, in bta_gatts_add_char()
470 p_msg->api_add_char_descr.perm, in bta_gatts_add_char_descr()
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gatts.h88 esp_gatt_perm_t perm; member
98 esp_gatt_perm_t perm; member
/hal_espressif-latest/components/bt/host/bluedroid/api/
Desp_gatts_api.c137 … esp_gatt_perm_t perm, esp_gatt_char_prop_t property, esp_attr_value_t *char_val, in esp_ble_gatts_add_char() argument
157 arg.add_char.perm = perm; in esp_ble_gatts_add_char()
177 esp_gatt_perm_t perm, esp_attr_value_t *char_descr_val, in esp_ble_gatts_add_char_descr() argument
197 arg.add_descr.perm = perm; in esp_ble_gatts_add_char_descr()
/hal_espressif-latest/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gatts_int.h94 tBTA_GATT_PERM perm; member
108 tBTA_GATT_PERM perm; member
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_gatts_api.h408 … esp_gatt_perm_t perm, esp_gatt_char_prop_t property, esp_attr_value_t *char_val,
432 esp_gatt_perm_t perm, esp_attr_value_t *char_descr_val,
Desp_gatt_defs.h507 uint16_t perm; /*!< Attribute permissions, defined by esp_gatt_perm_t. */ member
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatts.c340 tBTA_GATT_PERM perm; in btc_gatts_act_create_attr_tab() local
351 perm = gatts_attr_db[i+1].att_desc.perm; in btc_gatts_act_create_attr_tab()
359 perm, char_property, &attr_val, &control); in btc_gatts_act_create_attr_tab()
389 tBTA_GATT_PERM perm = gatts_attr_db[i].att_desc.perm; in btc_gatts_act_create_attr_tab() local
400 BTA_GATTS_AddCharDescriptor(svc_hal, perm, &bta_char_uuid, &attr_val, &control); in btc_gatts_act_create_attr_tab()
664 arg->add_char.perm, arg->add_char.property, in btc_gatts_call_handler()
672 BTA_GATTS_AddCharDescriptor(arg->add_descr.service_handle, arg->add_descr.perm, &uuid, in btc_gatts_call_handler()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/
Dmesh_bearer_adapt.c907 static tBTA_GATT_PERM bt_mesh_perm_to_bta_perm(uint8_t perm) in bt_mesh_perm_to_bta_perm() argument
911 if ((perm & BLE_MESH_GATT_PERM_READ) == BLE_MESH_GATT_PERM_READ) { in bt_mesh_perm_to_bta_perm()
915 if ((perm & BLE_MESH_GATT_PERM_WRITE) == BLE_MESH_GATT_PERM_WRITE) { in bt_mesh_perm_to_bta_perm()
919 if ((perm & BLE_MESH_GATT_PERM_READ_ENCRYPT) == BLE_MESH_GATT_PERM_READ_ENCRYPT) { in bt_mesh_perm_to_bta_perm()
923 if ((perm & BLE_MESH_GATT_PERM_WRITE_ENCRYPT) == BLE_MESH_GATT_PERM_WRITE_ENCRYPT) { in bt_mesh_perm_to_bta_perm()
927 if ((perm & BLE_MESH_GATT_PERM_READ_AUTHEN) == BLE_MESH_GATT_PERM_READ_AUTHEN) { in bt_mesh_perm_to_bta_perm()
931 if ((perm & BLE_MESH_GATT_PERM_WRITE_AUTHEN) == BLE_MESH_GATT_PERM_WRITE_AUTHEN) { in bt_mesh_perm_to_bta_perm()
958 bta_uuid.uu.uuid16, svc->attrs[i].perm, svc_handle); in bt_mesh_gatts_service_register()
972 bta_uuid.uu.uuid16, svc->attrs[i].perm, svc_handle); in bt_mesh_gatts_service_register()
982 …eristic(svc_handle, &bta_uuid, bt_mesh_perm_to_bta_perm(svc->attrs[i + 1].perm), gatts_chrc->prope… in bt_mesh_gatts_service_register()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dgatt_api.h788 tGATT_PERM perm, tGATT_CHAR_PROP property,
810 extern UINT16 GATTS_AddCharDescriptor (UINT16 service_handle, tGATT_PERM perm,
/hal_espressif-latest/components/bt/host/bluedroid/bta/include/bta/
Dbta_gatt_api.h1366 … tBTA_GATT_PERM perm, tBTA_GATT_CHAR_PROP property, tGATT_ATTR_VAL *attr_val,
1387 tBTA_GATT_PERM perm,
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h749 extern UINT16 gatts_add_characteristic (tGATT_SVC_DB *p_db, tGATT_PERM perm,
753 extern UINT16 gatts_add_char_descr (tGATT_SVC_DB *p_db, tGATT_PERM perm,