Block header, located before each block of item data.
#include <pds_nvm.h>
Data Fields | |
uint16_t | checksum |
uint16_t | id |
uint16_t | item_size |
uint8_t | status |
uint16_t block_header::checksum |
Referenced by pds_write().
uint16_t block_header::id |
The size of the item. the block header size excluded
Referenced by pds_write().
uint16_t block_header::item_size |
Checksum of the header excluding "status" field.
Referenced by pds_write().
uint8_t block_header::status |
< Status flag. Active sector has to set 8th bit to zero. setting 7th bit to zero will enable write lock for this item Id of stored item. MSB represent item type (Pairing,Device info etc)\ LSB represent item sequence number, wrap around to lowest available number
Referenced by pds_write().