20#ifndef LFS_EMUBD_READ_SIZE
21#define LFS_EMUBD_READ_SIZE 1
24#ifndef LFS_EMUBD_PROG_SIZE
25#define LFS_EMUBD_PROG_SIZE 1
28#ifndef LFS_EMUBD_ERASE_SIZE
29#define LFS_EMUBD_ERASE_SIZE 512
32#ifndef LFS_EMUBD_TOTAL_SIZE
33#define LFS_EMUBD_TOTAL_SIZE 524288
58int lfs_emubd_create(
const struct lfs_config *cfg,
const char *path);
61void lfs_emubd_destroy(
const struct lfs_config *cfg);
64int lfs_emubd_read(
const struct lfs_config *cfg, lfs_block_t block,
65 lfs_off_t off,
void *buffer, lfs_size_t size);
70int lfs_emubd_prog(
const struct lfs_config *cfg, lfs_block_t block,
71 lfs_off_t off,
const void *buffer, lfs_size_t size);
77int lfs_emubd_erase(
const struct lfs_config *cfg, lfs_block_t block);
80int lfs_emubd_sync(
const struct lfs_config *cfg);