ChibiOS  21.6.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. 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 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_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().

◆ bank_size

flash_offset_t MFSConfig::bank_size

Banks size.

Definition at line 295 of file hal_mfs.h.

◆ bank0_start

flash_sector_t MFSConfig::bank0_start

Base sector index for bank 0.

Definition at line 299 of file hal_mfs.h.

◆ 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.

◆ bank1_start

flash_sector_t MFSConfig::bank1_start

Base sector index for bank 1.

Definition at line 309 of file hal_mfs.h.

◆ 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.