![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
RAM log flash (see log_flash_ram.h). More...
Go to the source code of this file.
Data Structures | |
| struct | ram_t |
Functions | |
| static int | rd (void *c, uint32_t a, void *buf, uint32_t n) |
| static int | pg (void *c, uint32_t a, const void *buf, uint32_t n) |
| static int | er (void *c, uint32_t a) |
| void | log_flash_ram_init (log_flash_t *f, uint8_t *buf, uint32_t size) |
| buf: size bytes (rounded down to whole sectors) | |
Variables | |
| static ram_t | s_ram |
RAM log flash (see log_flash_ram.h).
Definition in file log_flash_ram.c.
|
static |
Definition at line 11 of file log_flash_ram.c.
References ram_t::b, n, and ram_t::size.
Referenced by log_flash_ram_init().
|
static |
Definition at line 19 of file log_flash_ram.c.
References ram_t::b, LOG_PAGE, n, and ram_t::size.
Referenced by cfg_load(), and log_flash_ram_init().
|
static |
Definition at line 28 of file log_flash_ram.c.
References ram_t::b, LOG_SECTOR, and ram_t::size.
Referenced by log_flash_ram_init().
| void log_flash_ram_init | ( | log_flash_t * | f, |
| uint8_t * | buf, | ||
| uint32_t | size | ||
| ) |
buf: size bytes (rounded down to whole sectors)
Definition at line 36 of file log_flash_ram.c.
References ram_t::b, log_flash_t::ctx, er(), log_flash_t::erase, LOG_SECTOR, pg(), log_flash_t::prog, rd(), log_flash_t::read, s_ram, ram_t::size, and log_flash_t::size.
Referenced by log_flash().
|
static |
Definition at line 9 of file log_flash_ram.c.
Referenced by log_flash_ram_init().