Loading...
Searching...
No Matches
littlefs_desc_t Struct Reference

littlefs descriptor for vfs integration More...

Detailed Description

littlefs descriptor for vfs integration

Definition at line 76 of file littlefs_fs.h.

#include <littlefs_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 [LITTLEFS_FILE_BUFFER_SIZE]
 file buffer to use internally if LITTLEFS_FILE_BUFFER_SIZE is set
 
uint8_t read_buf [LITTLEFS_READ_BUFFER_SIZE]
 read buffer to use internally if LITTLEFS_READ_BUFFER_SIZE is set
 
uint8_t prog_buf [LITTLEFS_PROG_BUFFER_SIZE]
 prog buffer to use internally if LITTLEFS_PROG_BUFFER_SIZE is set
 
uint8_t lookahead_buf [LITTLEFS_LOOKAHEAD_SIZE/8]
 lookahead buffer to use internally
 
uint16_t sectors_per_block
 number of sectors per block
 

Field Documentation

◆ base_addr

uint32_t littlefs_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 84 of file littlefs_fs.h.

◆ config

struct lfs_config littlefs_desc_t::config

littlefs config

Definition at line 78 of file littlefs_fs.h.

◆ dev

mtd_dev_t* littlefs_desc_t::dev

mtd device to use

Definition at line 79 of file littlefs_fs.h.

◆ file_buf

uint8_t littlefs_desc_t::file_buf[LITTLEFS_FILE_BUFFER_SIZE]

file buffer to use internally if LITTLEFS_FILE_BUFFER_SIZE is set

Definition at line 87 of file littlefs_fs.h.

◆ fs

lfs_t littlefs_desc_t::fs

littlefs descriptor

Definition at line 77 of file littlefs_fs.h.

◆ lock

mutex_t littlefs_desc_t::lock

mutex

Definition at line 80 of file littlefs_fs.h.

◆ lookahead_buf

uint8_t littlefs_desc_t::lookahead_buf[LITTLEFS_LOOKAHEAD_SIZE/8]

lookahead buffer to use internally

Definition at line 98 of file littlefs_fs.h.

◆ prog_buf

uint8_t littlefs_desc_t::prog_buf[LITTLEFS_PROG_BUFFER_SIZE]

prog buffer to use internally if LITTLEFS_PROG_BUFFER_SIZE is set

Definition at line 95 of file littlefs_fs.h.

◆ read_buf

uint8_t littlefs_desc_t::read_buf[LITTLEFS_READ_BUFFER_SIZE]

read buffer to use internally if LITTLEFS_READ_BUFFER_SIZE is set

Definition at line 91 of file littlefs_fs.h.

◆ sectors_per_block

uint16_t littlefs_desc_t::sectors_per_block

number of sectors per block

Definition at line 99 of file littlefs_fs.h.


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