EasyManuals Logo

Oracle StorageTek T10000 Reference Manual

Oracle StorageTek T10000
310 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #255 background imageLoading...
Page #255 background image
Vendor Unique SB-2 CRC
August 2016 Data Integrity Validation 255
#ifdef FICON
/* Test data, expected CRC is 0x1DC41771 */
0x00, 0x00, 0x00, 0xC7,
0x00, 0x00, 0x00, 0xC8
#else
/* ASCII "123456789" Expected CRC is 0xFC891918 */
0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39
#endif
};
printf("\nCrc32 ver. 1.0, 32bit CRC32 Demonstration Program.\n\n");
blk_len = sizeof(test_data);
printf("Sizeof test_data = %d \n", blk_len);
printf("Input String:\n");
for(cnt = 0; cnt < blk_len; cnt++)
printf("%02X ", test_data[cnt]);
/* Do Non Reflected CRC */
blk_len = sizeof(test_data);
blk_adr = &test_data[0];
crc = INIT;
while (blk_len--)
crc = crctable[((crc>>24) ^ *blk_adr++) & 0xFF] ^ (crc << 8);
crc = crc ^ XOROUT;
printf("\n\nNon Reflected Actual CRC32 = 0x%08X\n", crc);
#ifdef FICON
printf("\nExpected CRC32 = 0x1DC41771\n");
#else
printf("\nExpected CRC32 = 0xFC891918\n");
#endif
return(0);
}
/*******************************************************************/
FIGURE A-1 SB-2 CRC Program Example (Sheet 6 of 6)

Table of Contents

Other manuals for Oracle StorageTek T10000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Oracle StorageTek T10000 and is the answer not in the manual?

Oracle StorageTek T10000 Specifications

General IconGeneral
BrandOracle
ModelStorageTek T10000
CategoryStorage
LanguageEnglish

Related product manuals