ChibiOS/HAL  6.1.0
MFSConfig Struct Reference

Type of a MFS configuration structure. More...

#include <mfs.h>

Collaboration diagram for MFSConfig:
Collaboration graph

Data Fields

BaseFlashflashp
 Flash driver associated to this MFS instance. More...
 
uint32_t erased
 Erased value. More...
 
flash_offset_t bank_size
 Banks size. More...
 
flash_sector_t bank0_start
 Base sector index for bank 0. More...
 
flash_sector_t bank0_sectors
 Number of sectors for bank 0. More...
 
flash_sector_t bank1_start
 Base sector index for bank 1. More...
 
flash_sector_t bank1_sectors
 Number of sectors for bank 1. More...
 

Detailed Description

Type of a MFS configuration structure.

Definition at line 252 of file mfs.h.

Field Documentation

BaseFlash* MFSConfig::flashp

Flash driver associated to this MFS instance.

Definition at line 256 of file mfs.h.

Referenced by mfs_bank_erase(), mfs_bank_verify_erase(), mfs_bank_write_header(), mfs_flash_read(), and mfs_flash_write().

uint32_t MFSConfig::erased

Erased value.

Definition at line 260 of file mfs.h.

Referenced by mfs_bank_get_state(), mfs_bank_write_header(), mfs_record_check(), and mfsWriteRecord().

flash_offset_t MFSConfig::bank_size

Banks size.

Definition at line 264 of file mfs.h.

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

flash_sector_t MFSConfig::bank0_start

Base sector index for bank 0.

Definition at line 268 of file mfs.h.

Referenced by mfs_bank_erase(), mfs_bank_verify_erase(), and mfs_bank_write_header().

flash_sector_t MFSConfig::bank0_sectors

Number of sectors for bank 0.

Note
The total size of bank0 sectors must be greater or equal to bank_size.

Definition at line 274 of file mfs.h.

Referenced by mfs_bank_erase(), and mfs_bank_verify_erase().

flash_sector_t MFSConfig::bank1_start

Base sector index for bank 1.

Definition at line 278 of file mfs.h.

Referenced by mfs_bank_erase(), mfs_bank_verify_erase(), and mfs_bank_write_header().

flash_sector_t MFSConfig::bank1_sectors

Number of sectors for bank 1.

Note
The total size of bank1 sectors must be greater or equal to bank_size.

Definition at line 284 of file mfs.h.

Referenced by mfs_bank_erase(), and mfs_bank_verify_erase().