Microchip® Advanced Software Framework

BlockHeader_t Struct Reference

Data Fields

uint16_t blockLength
 Length of this block. More...
 
uint16_t blockOffset
 Offset of this block within the item. More...
 
uint16_t dataCrc
 CRC of the data. More...
 
uint16_t headerCrc
 CRC of the header, not including the headerCrc. More...
 
uint16_t id
 Item identifier for this block. More...
 
uint16_t itemLength
 Length of the complete item. More...
 
uint16_t previousBlock
 Pointer to the previous block for this item. More...
 
uint16_t writeCount
 Number of partial writes to the item since the last complete write of the item. More...
 

uint16_t BlockHeader_t::blockOffset
uint16_t BlockHeader_t::dataCrc
uint16_t BlockHeader_t::headerCrc

CRC of the header, not including the headerCrc.

Referenced by CompactSector(), ComputeHeaderCrc(), LoadSector(), WriteBlockHeader(), and WriteDataBlockAndHeader().

uint16_t BlockHeader_t::id

Item identifier for this block.

0x0000 for a meta block.

Referenced by LoadSector(), S_Nv_Delete_Impl(), S_Nv_ItemInit_Impl(), and S_Nv_Write_Impl().

uint16_t BlockHeader_t::itemLength
uint16_t BlockHeader_t::previousBlock

Pointer to the previous block for this item.

Referenced by CompactItem(), CompactSector(), GatherData(), S_Nv_Delete_Impl(), S_Nv_ItemInit_Impl(), and S_Nv_Write_Impl().

uint16_t BlockHeader_t::writeCount

Number of partial writes to the item since the last complete write of the item.

Referenced by CompactItem(), CompactSector(), S_Nv_Delete_Impl(), S_Nv_ItemInit_Impl(), and S_Nv_Write_Impl().