29#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_INFOBLOCK_H_
30#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_INFOBLOCK_H_
36#if !defined(TRUE) || !defined(FALSE)
56#define INFOBLOCK_LINE_SIZE 8
61#define INFOBLOCK_LINE_OVERHEAD 2
66#define INFOBLOCK_ICE_LOCK_SIZE 8
71#define INFOBLOCK_WRITE_LOCK_LINE_SIZE 16
76#define ICELOCK_UNMODIFIED_VALUE 0xFFFF
81#define ICELOCK_EVEN_LOCK_VALUE 0xA5A5
86#define ICELOCK_ODD_LOCK_VALUE 0x5A5A
92#define INFOBLOCK_MAXIMUM_READ_LENGTH 64
97#define INFOBLOCK_USN_OFFSET 0x00
103#define INFOBLOCK_ICE_LOCK_OFFSET 0x30
108#define INFOBLOCK_ICE_LOCK_MINIMUM 1
113#define INFOBLOCK_KEY_OFFSET 0x1000
118#define INFOBLOCK_KEY_SIZE 64
125#define INFOBLOCK_ENABLE_SIZE (8)
130#define INFOBLOCK_ENABLE_PATTERN 0x5A5AA5A5
int infoblock_read(uint32_t offset, uint8_t *data, int length)
infoblock_read Read formatted data from information block
int infoblock_readraw(uint32_t offset, uint8_t *data)
infoblock_readraw Read raw data from information block
uint16_t crc15_highbitinput(uint16_t crc15val, uint8_t *input, int bitlength)
crc15_highbitinput Calculate CRC15 on data bits
lineformat_e
Three information block line types.
Definition: infoblock.h:141
@ INFOBLOCK_LINE_FORMAT_DESIGN
Definition: infoblock.h:144
@ INFOBLOCK_LINE_FORMAT_USN
Definition: infoblock.h:142
@ INFOBLOCK_LINE_FORMAT_RAW
Definition: infoblock.h:143