Loading...
Searching...
No Matches

littlefs descriptor for vfs integration More...

Detailed Description

littlefs descriptor for vfs integration

Definition at line 91 of file littlefs2_fs.h.

#include <littlefs2_fs.h>

Data Fields

lfs_t fs
 littlefs descriptor
 
struct lfs_config config
 littlefs config
 
mtd_dev_tdev
 mtd device to use
 
mutex_t lock
 mutex
 
uint32_t base_addr
 first block number to use, total number of block is defined in config.
 
uint8_t file_buf [CONFIG_LITTLEFS2_FILE_BUFFER_SIZE]
 file buffer to use internally if CONFIG_LITTLEFS2_FILE_BUFFER_SIZE is set
 
uint8_t read_buf [CONFIG_LITTLEFS2_READ_BUFFER_SIZE]
 read buffer to use internally if CONFIG_LITTLEFS2_READ_BUFFER_SIZE is set
 
uint8_t prog_buf [CONFIG_LITTLEFS2_PROG_BUFFER_SIZE]
 prog buffer to use internally if CONFIG_LITTLEFS2_PROG_BUFFER_SIZE is set
 
uint8_t lookahead_buf [CONFIG_LITTLEFS2_LOOKAHEAD_SIZE]
 lookahead buffer to use internally
 
uint16_t sectors_per_block
 number of sectors per block
 

Field Documentation

◆ base_addr

uint32_t littlefs2_desc_t::base_addr

first block number to use, total number of block is defined in config.

if set to 0, the total number of sectors from the mtd is used

Definition at line 99 of file littlefs2_fs.h.

◆ config

struct lfs_config littlefs2_desc_t::config

littlefs config

Definition at line 93 of file littlefs2_fs.h.

◆ dev

mtd_dev_t* littlefs2_desc_t::dev

mtd device to use

Definition at line 94 of file littlefs2_fs.h.

◆ file_buf

uint8_t littlefs2_desc_t::file_buf[CONFIG_LITTLEFS2_FILE_BUFFER_SIZE]

file buffer to use internally if CONFIG_LITTLEFS2_FILE_BUFFER_SIZE is set

Definition at line 103 of file littlefs2_fs.h.

◆ fs

lfs_t littlefs2_desc_t::fs

littlefs descriptor

Definition at line 92 of file littlefs2_fs.h.

◆ lock

mutex_t littlefs2_desc_t::lock

mutex

Definition at line 95 of file littlefs2_fs.h.

◆ lookahead_buf

uint8_t littlefs2_desc_t::lookahead_buf[CONFIG_LITTLEFS2_LOOKAHEAD_SIZE]

lookahead buffer to use internally

Definition at line 116 of file littlefs2_fs.h.

◆ prog_buf

uint8_t littlefs2_desc_t::prog_buf[CONFIG_LITTLEFS2_PROG_BUFFER_SIZE]

prog buffer to use internally if CONFIG_LITTLEFS2_PROG_BUFFER_SIZE is set

Definition at line 113 of file littlefs2_fs.h.

◆ read_buf

uint8_t littlefs2_desc_t::read_buf[CONFIG_LITTLEFS2_READ_BUFFER_SIZE]

read buffer to use internally if CONFIG_LITTLEFS2_READ_BUFFER_SIZE is set

Definition at line 108 of file littlefs2_fs.h.

◆ sectors_per_block

uint16_t littlefs2_desc_t::sectors_per_block

number of sectors per block

Definition at line 117 of file littlefs2_fs.h.


The documentation for this struct was generated from the following file: