ChibiOS/HAL  7.0.3
mfs_bank_header_t Union Reference

Type of a bank header. More...

#include <hal_mfs.h>

Collaboration diagram for mfs_bank_header_t:
Collaboration graph

Detailed Description

Type of a bank header.

Note
The header resides in the first 16 bytes of a bank.

Definition at line 208 of file hal_mfs.h.

Field Documentation

uint32_t mfs_bank_header_t::magic1

Bank magic 1.

Definition at line 213 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), and mfs_bank_write_header().

uint32_t mfs_bank_header_t::magic2

Bank magic 2.

Definition at line 217 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), and mfs_bank_write_header().

uint32_t mfs_bank_header_t::counter

Usage counter of the bank.

This value is increased each time a bank swap is performed. It indicates how much wearing the flash has already endured.

Definition at line 223 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), mfs_bank_get_state(), mfs_bank_write_header(), and mfs_try_mount().

uint16_t mfs_bank_header_t::reserved1

Reserved field.

Definition at line 227 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), and mfs_bank_write_header().

uint16_t mfs_bank_header_t::crc

Header CRC.

Definition at line 231 of file hal_mfs.h.

Referenced by mfs_bank_check_header(), and mfs_bank_write_header().