libxr
Embedded C++ framework for bare-metal, RTOS and Linux
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.
 

Public Attributes

union { 
 
   uint32_t   header 
 Flash 块头签名 / Flash block-header signature. More...
 
   uint8_t   padding [MinWriteSize] 
 
};  
 让块前缀既能按签名读取,也能按最小写入单元整体写入 / Expose the block prefix both as a signature field and as one full minimum-write-unit write span
 
KeyInfo key
 

Detailed Description

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

Definition at line 176 of file layout.hpp.

Constructor & Destructor Documentation

◆ FlashInfo()

FlashInfo::FlashInfo ( )
inline

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

Definition at line 182 of file layout.hpp.

183 {
184 header = 0xFFFFFFFF;
185 Memory::FastSet(padding, 0xFF, MinWriteSize);
186 }
uint8_t padding[MinWriteSize]
Definition layout.hpp:196
uint32_t header
Flash 块头签名 / Flash block-header signature.
Definition layout.hpp:195

Member Data Documentation

◆ header

uint32_t FlashInfo::header

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

Definition at line 195 of file layout.hpp.

◆ key

KeyInfo FlashInfo::key

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

Definition at line 199 of file layout.hpp.

◆ padding

uint8_t FlashInfo::padding[MinWriteSize]

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

Definition at line 196 of file layout.hpp.


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