Generated v2 prefixes
This commit is contained in:
+19
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user