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 581 of file database.hpp.

Constructor & Destructor Documentation

◆ FlashInfo()

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

Definition at line 583 of file database.hpp.

584 {
585 header = 0xFFFFFFFF;
586 memset(padding, 0xFF, MinWriteSize);
587 }
uint32_t header
Flash block header.
Definition database.hpp:591

Field Documentation

◆ header

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

Flash block header.

Definition at line 591 of file database.hpp.

◆ key

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

Align KeyInfo to MinWriteSize.

Definition at line 594 of file database.hpp.

◆ padding

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

Definition at line 592 of file database.hpp.


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