libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::DatabaseRaw< MinWriteSize >::FlashInfo Struct Reference

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

Collaboration diagram for LibXR::DatabaseRaw< MinWriteSize >::FlashInfo:
[legend]

Data Fields

union { 
 
   uint32_t   header 
 Flash block header. More...
 
   uint8_t   padding [MinWriteSize] 
 
};  
 
KeyInfo key
 Align KeyInfo to MinWriteSize.
 

Detailed Description

template<size_t MinWriteSize>
struct LibXR::DatabaseRaw< MinWriteSize >::FlashInfo

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

Definition at line 441 of file database.hpp.

Constructor & Destructor Documentation

◆ FlashInfo()

template<size_t MinWriteSize>
LibXR::DatabaseRaw< MinWriteSize >::FlashInfo::FlashInfo ( )
inline

Definition at line 443 of file database.hpp.

444 {
445 header = 0xFFFFFFFF;
446 Memory::FastSet(padding, 0xFF, MinWriteSize);
447 }
static void FastSet(void *dst, uint8_t value, size_t size)
快速内存填充 / Fast memory fill
uint32_t header
Flash block header.
Definition database.hpp:451

Field Documentation

◆ header

template<size_t MinWriteSize>
uint32_t LibXR::DatabaseRaw< MinWriteSize >::FlashInfo::header

Flash block header.

Definition at line 451 of file database.hpp.

◆ key

template<size_t MinWriteSize>
KeyInfo LibXR::DatabaseRaw< MinWriteSize >::FlashInfo::key

Align KeyInfo to MinWriteSize.

Definition at line 454 of file database.hpp.

◆ padding

template<size_t MinWriteSize>
uint8_t LibXR::DatabaseRaw< MinWriteSize >::FlashInfo::padding[MinWriteSize]

Definition at line 452 of file database.hpp.


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