ChibiOS/HAL 9.0.0
MFSConfig Struct Reference

Type of a MFS configuration structure. More...

#include <hal_mfs.h>

Collaboration diagram for MFSConfig:
Collaboration graph

Data Fields

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

Detailed Description

Type of a MFS configuration structure.

Definition at line 283 of file hal_mfs.h.

Field Documentation

◆ flashp

BaseFlash* MFSConfig::flashp

Flash driver associated to this MFS instance.

Definition at line 287 of file hal_mfs.h.

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

◆ erased

uint32_t MFSConfig::erased

Erased value.

Definition at line 291 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), mfs_bank_scan_records(), and mfs_bank_write_header().

◆ bank_size

flash_offset_t MFSConfig::bank_size

Banks size.

Definition at line 295 of file hal_mfs.h.

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

◆ bank0_start

flash_sector_t MFSConfig::bank0_start

Base sector index for bank 0.

Definition at line 299 of file hal_mfs.h.

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

◆ bank0_sectors

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 305 of file hal_mfs.h.

Referenced by mfs_bank_erase(), and mfs_bank_verify_erase().

◆ bank1_start

flash_sector_t MFSConfig::bank1_start

Base sector index for bank 1.

Definition at line 309 of file hal_mfs.h.

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

◆ bank1_sectors

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 315 of file hal_mfs.h.

Referenced by mfs_bank_erase(), and mfs_bank_verify_erase().