beautypg.com

Appendix 2 – user area format – Sundance SMT6001 User Manual

Page 12

background image

6.

Appendix 2 – User Area Format


Each user area is made up from a number of complete 32-bit words and has the
following format:

enum AreaType {

AreaData,
AreaSRecord,

AreaProgram,
AreaApplication,

};

struct AreaFormat {

UINT32 Crc; // Cyclic redundancy check
UINT32 Bytes; // total size of area
AreaType Type; // type code word (32-bits)

UINT32 Value; // user-supplied id value
UINT32 Data[...]; // the data

};


Notes:

1. The Crc is computed from the whole of the area excluding the Crc word.
2. To get from the start of one area to the start of the next, add Bytes.