wiced: add le_device_db_wiced_dct_get_storage_size

This commit is contained in:
Matthias Ringwald 2017-11-08 16:45:11 +01:00
parent 247956ea1e
commit ad1a357b97
2 changed files with 11 additions and 0 deletions

View File

@ -289,3 +289,7 @@ void le_device_db_dump(void){
log_info_key("irk", entry.irk);
}
}
int le_device_db_wiced_dct_get_storage_size(void){
return NVM_NUM_LE_DEVICES * sizeof(le_device_nvm_t);
}

View File

@ -48,6 +48,8 @@
extern "C" {
#endif
#include <stdint.h>
/* API_START */
/**
@ -55,6 +57,11 @@ extern "C" {
*/
void le_device_db_wiced_dct_set_start_address(uint32_t start_address);
/*
* @brief Get Size of LE Device DB DCT part
*/
int le_device_db_wiced_dct_get_storage_size(void);
/*
* @brief Delete all le device entries
*/