2 #ifndef _LFS_FLASHBD_H_
3 #define _LFS_FLASHBD_H_
12 #ifndef LFS_FLASHBD_TRACE
13 #ifdef LFS_FLASHBD_YES_TRACE
14 #define LFS_FLASHBD_TRACE(...) LFS_TRACE(__VA_ARGS__)
16 #define LFS_FLASHBD_TRACE(...)
37 int lfs_flashbd_read(
const struct lfs_config* cfg, lfs_block_t block, lfs_off_t off,
void* buffer, lfs_size_t size);
40 const struct lfs_config* cfg, lfs_block_t block, lfs_off_t off,
const void* buffer, lfs_size_t size);
int lfs_flashbd_create(const struct lfs_config *cfg, const struct lfs_flashbd_config *bdcfg)
int lfs_flashbd_destroy(const struct lfs_config *cfg)
struct lfs_flashbd lfs_flashbd_t
int lfs_flashbd_sync(const struct lfs_config *cfg)
int lfs_flashbd_erase(const struct lfs_config *cfg, lfs_block_t block)
int lfs_flashbd_prog(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, const void *buffer, lfs_size_t size)
int lfs_flashbd_read(const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size)
Definition: lfs_flashbd.h:20
lfs_size_t erase_size
Definition: lfs_flashbd.h:23
lfs_size_t prog_size
Definition: lfs_flashbd.h:22
lfs_size_t read_size
Definition: lfs_flashbd.h:21
lfs_size_t erase_count
Definition: lfs_flashbd.h:24
void * flash_addr
Definition: lfs_flashbd.h:25
Definition: lfs_flashbd.h:28
const struct lfs_flashbd_config * cfg
Definition: lfs_flashbd.h:30
void * flash_addr
Definition: lfs_flashbd.h:29