PebbleOS
Loading...
Searching...
No Matches
Functions
flash_translation.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <string.h>

Functions

void ftl_add_region (uint32_t region_start, uint32_t region_end, bool erase_new_region)
 Append a flash region to the translation space.
 
uint32_t ftl_get_size (void)
 Get the size of the translation space.
 
void ftl_erase_sector (uint32_t size, uint32_t offset)
 Erase a sector of the translation space.
 
void ftl_erase_subsector (uint32_t size, uint32_t offset)
 Erase a subsector of the translation space.
 
void ftl_read (void *buffer, size_t size, uint32_t offset)
 Read from the translation space.
 
void ftl_write (const void *buffer, size_t size, uint32_t offset)
 Write to the translation space.
 
void ftl_format (void)
 Format all regions of the translation space.
 
void ftl_populate_region_list (void)
 Build the translation space at boot.