SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
lfs_flashbd.h File Reference
#include "lfs.h"
#include "lfs_util.h"
Include dependency graph for lfs_flashbd.h:

Go to the source code of this file.

Classes

struct  lfs_flashbd_config
 
struct  lfs_flashbd
 

Macros

#define LFS_FLASHBD_TRACE(...)
 

Typedefs

typedef struct lfs_flashbd lfs_flashbd_t
 

Functions

int lfs_flashbd_create (const struct lfs_config *cfg, const struct lfs_flashbd_config *bdcfg)
 
int lfs_flashbd_destroy (const struct lfs_config *cfg)
 
int lfs_flashbd_read (const struct lfs_config *cfg, lfs_block_t block, lfs_off_t off, void *buffer, lfs_size_t size)
 
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_erase (const struct lfs_config *cfg, lfs_block_t block)
 
int lfs_flashbd_sync (const struct lfs_config *cfg)
 

Macro Definition Documentation

◆ LFS_FLASHBD_TRACE

#define LFS_FLASHBD_TRACE (   ...)

Typedef Documentation

◆ lfs_flashbd_t

typedef struct lfs_flashbd lfs_flashbd_t

Function Documentation

◆ lfs_flashbd_create()

int lfs_flashbd_create ( const struct lfs_config *  cfg,
const struct lfs_flashbd_config bdcfg 
)

◆ lfs_flashbd_destroy()

int lfs_flashbd_destroy ( const struct lfs_config *  cfg)

◆ lfs_flashbd_erase()

int lfs_flashbd_erase ( const struct lfs_config *  cfg,
lfs_block_t  block 
)

◆ lfs_flashbd_prog()

int lfs_flashbd_prog ( const struct lfs_config *  cfg,
lfs_block_t  block,
lfs_off_t  off,
const void *  buffer,
lfs_size_t  size 
)

◆ lfs_flashbd_read()

int lfs_flashbd_read ( const struct lfs_config *  cfg,
lfs_block_t  block,
lfs_off_t  off,
void *  buffer,
lfs_size_t  size 
)

◆ lfs_flashbd_sync()

int lfs_flashbd_sync ( const struct lfs_config *  cfg)