ChibiOS/HAL  6.1.0
MFSDriver Struct Reference

Type of an MFS instance. More...

#include <mfs.h>

Inheritance diagram for MFSDriver:
Inheritance graph
Collaboration diagram for MFSDriver:
Collaboration graph

Data Fields

mfs_state_t state
 Driver state. More...
 
const MFSConfigconfig
 Current configuration data. More...
 
mfs_bank_t current_bank
 Bank currently in use. More...
 
uint32_t current_counter
 Usage counter of the current bank. More...
 
flash_offset_t next_offset
 Pointer to the next free position in the current bank. More...
 
flash_offset_t used_space
 Used space in the current bank without considering erased records. More...
 
mfs_record_descriptor_t descriptors [MFS_CFG_MAX_RECORDS]
 Offsets of the most recent instance of the records. More...
 
union {
buffer
 Transient buffer. More...
 
- Data Fields inherited from BaseFlash
const struct BaseFlashVMTvmt
 Virtual Methods Table. More...
 
- Data Fields inherited from BaseObject
const struct BaseObjectVMTvmt
 Virtual Methods Table. More...
 

Detailed Description

Type of an MFS instance.

Definition at line 292 of file mfs.h.

Field Documentation

mfs_bank_t MFSDriver::current_bank

Bank currently in use.

Definition at line 304 of file mfs.h.

Referenced by mfs_bank_mount(), mfs_garbage_collect(), mfsEraseRecord(), and mfsWriteRecord().

uint32_t MFSDriver::current_counter

Usage counter of the current bank.

Definition at line 308 of file mfs.h.

Referenced by mfs_bank_mount(), and mfs_garbage_collect().

flash_offset_t MFSDriver::next_offset

Pointer to the next free position in the current bank.

Definition at line 312 of file mfs.h.

Referenced by mfs_bank_scan_records(), mfs_garbage_collect(), mfsEraseRecord(), and mfsWriteRecord().

flash_offset_t MFSDriver::used_space

Used space in the current bank without considering erased records.

Definition at line 316 of file mfs.h.

Referenced by mfs_bank_mount(), mfsEraseRecord(), and mfsWriteRecord().

mfs_record_descriptor_t MFSDriver::descriptors[MFS_CFG_MAX_RECORDS]

Offsets of the most recent instance of the records.

Note
Zero means that there is not a record with that id.

Definition at line 321 of file mfs.h.

Referenced by mfs_bank_mount(), mfs_bank_scan_records(), mfs_garbage_collect(), mfsEraseRecord(), mfsReadRecord(), and mfsWriteRecord().

union { ... } MFSDriver::buffer