Home
last modified time | relevance | path

Searched refs:erase_cycles (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/components/spi_flash/sim/
DSpiFlash.cpp57 this->erase_cycles = (uint32_t*) calloc(this->sectors, sizeof(uint32_t)); in init()
88 free(this->erase_cycles); in deinit()
132 this->erase_cycles[sector] >= this->erase_cycles_limit) { in erase_sector()
147 this->erase_cycles[sector]++; in erase_sector()
178 this->erase_cycles[i] >= this->erase_cycles_limit) { in write()
216 this->erase_cycles[i] >= this->erase_cycles_limit) { in read()
233 return this->erase_cycles[sector]; in get_erase_cycles()
253 memset(this->erase_cycles, 0, sizeof(this->sectors * sizeof(uint32_t))); in reset_erase_cycles()
DSpiFlash.h73 uint32_t* erase_cycles; variable