ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
log_flash_t Struct Reference

flash backend; addresses in bytes from the start of the log area More...

#include <log_store.h>

Data Fields

void * ctx
 
uint32_t size
 multiple of LOG_SECTOR
 
int(* read )(void *ctx, uint32_t addr, void *buf, uint32_t n)
 
int(* prog )(void *ctx, uint32_t addr, const void *buf, uint32_t n)
 inside one 256-byte page
 
int(* erase )(void *ctx, uint32_t addr)
 one 4 KB sector, blocking
 

Detailed Description

flash backend; addresses in bytes from the start of the log area

Definition at line 28 of file log_store.h.

Field Documentation

◆ ctx

void* log_flash_t::ctx

◆ size

uint32_t log_flash_t::size

multiple of LOG_SECTOR

Definition at line 30 of file log_store.h.

Referenced by log_flash_ram_init(), and log_mount().

◆ read

int(* log_flash_t::read) (void *ctx, uint32_t addr, void *buf, uint32_t n)

Definition at line 31 of file log_store.h.

Referenced by log_flash_ram_init(), log_read(), and read_hdr().

◆ prog

int(* log_flash_t::prog) (void *ctx, uint32_t addr, const void *buf, uint32_t n)

inside one 256-byte page

Definition at line 32 of file log_store.h.

Referenced by flush_page(), and log_flash_ram_init().

◆ erase

int(* log_flash_t::erase) (void *ctx, uint32_t addr)

one 4 KB sector, blocking

Definition at line 33 of file log_store.h.

Referenced by log_erase_all(), log_flash_ram_init(), and start_sector().


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