diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/calculatecrc.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/calculatecrc.h b/include/calculatecrc.h index 2168478..434af46 100644 --- a/include/calculatecrc.h +++ b/include/calculatecrc.h @@ -16,13 +16,6 @@ #define FLASHFS_FILE_SIZE_ADDR 0x08 // uint64_t pos of total flashimage size value relative to data #define FLASHFS_HEADER_SIZE_ADDR 0x08 // uint64_t position of total flash header size value - #ifdef __ASSEMBLER__ - // "CRC_GENERATOR" must contain equal inforamtion as "CRC_METHODE" - #define CRC_GENERATOR 0x0000000004C11DB7 - #define CRC_REGISTERMASK 0x00000000FFFFFFFF - #define CRC_REGISTERLENGTH 32 - #endif /* __ASSEMBLER__ */ - #ifndef __ASSEMBLER__ #define FLASHFS_ROMADDR 0x00 // uint64_t position of pointer to next file #define FLASHFS_HEADER_DATA_SIZE 0x68 // 104 bytes of total header data size @@ -55,11 +48,6 @@ + SPTrEMBL_64 64 bit white noise like date 0x0000001B + SPTrEMBL_improved_64 64 bit DNA code like date 0xAD93D23594C9362D + DLT1_64 64 bit Tape 0x42F0E1EBA9EA3693 -+ -+ CRC_REGISTERLENGTH = bit length -+ CRC_REGISTERMASK = -1 for a n-bit numer where n = bit length -+ example TAP_16: CRC_REGSISTERLENGTH = 16 -+ CRC_REGISTERMASK = 0xFFFFFFFF = (-1 if 16 bit number is used) + + TrEMBL see also http://www.cs.ud.ac.uk/staff/D.Jones/crcbote.pdf + DLT1 se also http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-182.pdf |