Generated v2 prefixes

This commit is contained in:
geky-bot
2023-09-22 17:17:09 +00:00
16 changed files with 689 additions and 234 deletions
+19 -2
View File
@@ -26,14 +26,31 @@ extern "C"
#endif
#endif
// filebd config
struct lfs2_filebd_config {
// Minimum size of a read operation in bytes.
lfs2_size_t read_size;
// Minimum size of a program operation in bytes.
lfs2_size_t prog_size;
// Size of an erase operation in bytes.
lfs2_size_t erase_size;
// Number of erase blocks on the device.
lfs2_size_t erase_count;
};
// filebd state
typedef struct lfs2_filebd {
int fd;
const struct lfs2_filebd_config *cfg;
} lfs2_filebd_t;
// Create a file block device using the geometry in lfs2_config
int lfs2_filebd_create(const struct lfs2_config *cfg, const char *path);
// Create a file block device
int lfs2_filebd_create(const struct lfs2_config *cfg, const char *path,
const struct lfs2_filebd_config *bdcfg);
// Clean up memory associated with block device
int lfs2_filebd_destroy(const struct lfs2_config *cfg);