libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
FlashInfo Struct Reference

Flash 存储的块信息结构 (Structure representing a Flash storage block). More...

#include <layout.hpp>

Collaboration diagram for FlashInfo:
[legend]

Public Member Functions

 FlashInfo ()
 构造一个擦除态 FlashInfo 缓冲对象 (Construct one erased-state FlashInfo buffer object).
 

Data Fields

union { 
 
   uint32_t   header 
 Flash 块头签名 / Flash block-header signature. More...
 
   uint8_t   padding [MinWriteSize] 
 按最小写入单元对齐的原始块前缀 / Raw block prefix aligned to one minimum write unit. More...
 
};  
 让块前缀既能按签名读取,也能按最小写入单元整体写入 / Expose the block prefix both as a signature field and as one full minimum-write-unit write span
 
KeyInfo key
 紧跟在块头后的首个键头 / First key header stored right after the block header.
 

Detailed Description

Flash 存储的块信息结构 (Structure representing a Flash storage block).

Definition at line 162 of file layout.hpp.

Constructor & Destructor Documentation

◆ FlashInfo()

FlashInfo::FlashInfo ( )
inline

构造一个擦除态 FlashInfo 缓冲对象 (Construct one erased-state FlashInfo buffer object).

Definition at line 168 of file layout.hpp.

169 {
170 header = 0xFFFFFFFF;
171 Memory::FastSet(padding, 0xFF, MinWriteSize);
172 }
uint8_t padding[MinWriteSize]
按最小写入单元对齐的原始块前缀 / Raw block prefix aligned to one minimum write unit.
Definition layout.hpp:182
uint32_t header
Flash 块头签名 / Flash block-header signature.
Definition layout.hpp:181

Field Documentation

◆ header

uint32_t FlashInfo::header

Flash 块头签名 / Flash block-header signature.

Definition at line 181 of file layout.hpp.

◆ key

KeyInfo FlashInfo::key

紧跟在块头后的首个键头 / First key header stored right after the block header.

Definition at line 184 of file layout.hpp.

◆ padding

uint8_t FlashInfo::padding[MinWriteSize]

按最小写入单元对齐的原始块前缀 / Raw block prefix aligned to one minimum write unit.

Definition at line 182 of file layout.hpp.


The documentation for this struct was generated from the following file: