Searched refs:_last_db (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.6.0/components/esp_hid/src/ |
D | ble_hidd.c | 202 static esp_gatts_attr_db_t *_last_db = NULL; variable 206 _last_db = (esp_gatts_attr_db_t *)malloc(sizeof(esp_gatts_attr_db_t) * BAS_IDX_NB); in create_bat_db() 207 if (!_last_db) { in create_bat_db() 211 …add_db_record(_last_db, BAS_IDX_SVC, (uint8_t *)&s_primary_service_uuid, ESP_GATT_PERM_READ, 2, 2,… in create_bat_db() 212 …add_db_record(_last_db, BAS_IDX_BATT_LVL_CHAR, (uint8_t *)&s_character_declaration_uuid, ESP_GATT_… in create_bat_db() 213 …add_db_record(_last_db, BAS_IDX_BATT_LVL_VAL, (uint8_t *)&s_bat_level_uuid, ESP_GATT_PERM_READ, 1,… in create_bat_db() 214 …add_db_record(_last_db, BAS_IDX_BATT_LVL_CCC, (uint8_t *)&s_character_client_config_uuid, ESP_GATT… in create_bat_db() 215 …add_db_record(_last_db, BAS_IDX_BATT_LVL_PRES_FMT, (uint8_t *)&s_bat_char_pres_format_uuid, ESP_GA… in create_bat_db() 216 esp_err_t err = esp_ble_gatts_create_attr_tab(_last_db, dev->bat_svc.gatt_if, BAS_IDX_NB, 0); in create_bat_db() 222 _last_db = (esp_gatts_attr_db_t *)malloc(sizeof(esp_gatts_attr_db_t) * 7); in create_info_db() [all …]
|