24#ifndef _WATCH_STORAGE_H_INCLUDED
25#define _WATCH_STORAGE_H_INCLUDED
30#ifndef NVMCTRL_ROW_SIZE
31#define NVMCTRL_ROW_SIZE 256
33#ifndef NVMCTRL_PAGE_SIZE
34#define NVMCTRL_PAGE_SIZE 64
36#ifndef NVMCTRL_RWWEE_PAGES
37#define NVMCTRL_RWWEE_PAGES 128
bool watch_storage_erase(uint32_t row)
Erases a row in the storage area, setting all its bytes to 0xFF.
bool watch_storage_sync(void)
Waits for any pending writes to complete.
bool watch_storage_write(uint32_t row, uint32_t offset, const uint8_t *buffer, uint32_t size)
Writes bytes to a page in the storage area. Note that the row should already be erased before writing...
bool watch_storage_read(uint32_t row, uint32_t offset, uint8_t *buffer, uint32_t size)
Reads a range of bytes from the storage area.