rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
art_flash_t Struct Reference

The flash a store lives in. More...

#include <art_store.h>

Data Fields

bool(*) read (void *ctx, uint32_t off, void *dst, uint32_t len)
bool(*) erase (void *ctx, uint32_t off, uint32_t len)
bool(*) write (void *ctx, uint32_t off, const void *src, uint32_t len)
void * ctx
uint32_t size
uint32_t sector

Detailed Description

The flash a store lives in.

erase and write take offsets from the start of the partition. Erase is whole sectors; write is anywhere in an erased one. Any of them may fail and saying so is not optional: a store that believes a write that did not happen is a store that hands back a drawing that is not there.

Field Documentation

◆ sector

uint32_t art_flash_t::sector

erase granularity, 4096 on this part

◆ size

uint32_t art_flash_t::size

bytes of partition


The documentation for this struct was generated from the following file: