ChibiOS/HAL 9.0.0
mfs_data_header_t Union Reference

Type of a data block header. More...

#include <hal_mfs.h>

Collaboration diagram for mfs_data_header_t:
Collaboration graph

Data Fields

struct { 
   uint32_t   magic1 
 Data header magic 1. More...
   uint32_t   magic2 
 Data header magic 2. More...
   uint16_t   id 
 Record identifier. More...
   uint16_t   crc 
 Data CRC. More...
   uint32_t   size 
 Data size. More...
fields
uint8_t hdr8 [16]
uint32_t hdr32 [4]

Detailed Description

Type of a data block header.

This structure is placed before each written data block.

Definition at line 241 of file hal_mfs.h.

Field Documentation

◆ magic1

uint32_t mfs_data_header_t::magic1

Data header magic 1.

Definition at line 246 of file hal_mfs.h.

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

◆ magic2

uint32_t mfs_data_header_t::magic2

Data header magic 2.

Definition at line 250 of file hal_mfs.h.

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

◆ id

uint16_t mfs_data_header_t::id

Record identifier.

Definition at line 254 of file hal_mfs.h.

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

◆ crc

uint16_t mfs_data_header_t::crc

Data CRC.

Definition at line 258 of file hal_mfs.h.

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

◆ size

uint32_t mfs_data_header_t::size

Data size.

Note
The next record is located at MFS_ALIGN_NEXT(size).

Definition at line 263 of file hal_mfs.h.

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

◆ [struct]

struct { ... } mfs_data_header_t::fields

◆ hdr8

uint8_t mfs_data_header_t::hdr8[16]

Definition at line 265 of file hal_mfs.h.

◆ hdr32

uint32_t mfs_data_header_t::hdr32[4]

Definition at line 266 of file hal_mfs.h.