ChibiOS/HAL  6.1.0
mfs_bank_header_t Union Reference

Type of a bank header. More...

#include <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 182 of file mfs.h.

Field Documentation

uint32_t mfs_bank_header_t::magic1

Bank magic 1.

Definition at line 187 of file mfs.h.

Referenced by mfs_bank_get_state(), and mfs_bank_write_header().

uint32_t mfs_bank_header_t::magic2

Bank magic 2.

Definition at line 191 of file mfs.h.

Referenced by mfs_bank_get_state(), 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 197 of file mfs.h.

Referenced by mfs_bank_get_state(), and mfs_bank_write_header().

uint16_t mfs_bank_header_t::reserved1

Reserved field.

Definition at line 201 of file mfs.h.

Referenced by mfs_bank_get_state(), and mfs_bank_write_header().

uint16_t mfs_bank_header_t::crc

Header CRC.

Definition at line 205 of file mfs.h.

Referenced by mfs_bank_get_state(), and mfs_bank_write_header().