Microchip® Advanced Software Framework

BlockHeaderSNv1_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 headerCrc
 CRC of the header, not including the isActive and headerCrc fields. More...
 
uint16_t id
 Item identifier for this block. More...
 
uint16_t isActive
 Is this block active. 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 BlockHeaderSNv1_t::blockLength

Length of this block.

Referenced by LoadSector().

uint16_t BlockHeaderSNv1_t::blockOffset

Offset of this block within the item.

uint16_t BlockHeaderSNv1_t::headerCrc

CRC of the header, not including the isActive and headerCrc fields.

Referenced by ComputeHeaderCrcSnv1(), and LoadSector().

uint16_t BlockHeaderSNv1_t::id

Item identifier for this block.

0x0000 for a meta block.

Referenced by LoadSector().

uint16_t BlockHeaderSNv1_t::isActive

Is this block active.

Written with 0x0000 at the end of the write operation.

Referenced by ComputeHeaderCrcSnv1(), and LoadSector().

uint16_t BlockHeaderSNv1_t::itemLength

Length of the complete item.

Referenced by LoadSector().

uint16_t BlockHeaderSNv1_t::previousBlock

Pointer to the previous block for this item.

uint16_t BlockHeaderSNv1_t::writeCount

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