2
CVS4 Component Video Switch
int main( void)
{
char
TestString[] = "LI 2,3";
unsigned char crc8;
int
index;
char
token = ':';
crc8 = CRC8_INIT;
// initialize checkcode
// CRC8 all of TestString[]
index = 0;
while (TestString[index] != 0)
crcByte( &crc8, TestString[index++]);
// Add the CRC-8 token character ':' to CRC-8
crcByte( &crc8, token);
// Finish with CRC8 by doing a one's compliment
crc8 = ~crc8;
// Print the results
printf( "%s%c%u", TestString, token, (unsigned char)crc8);
return (0);
}
Checksums and CRC-8’s
(Cont’d)
Содержание CVS4
Страница 25: ...23 CVS4 Component Video Switch CVS4 Command Reference Cont d ...
Страница 30: ...28 CVS4 Component Video Switch This page left intentionaly nearly blank ...
Страница 31: ...29 CVS4 Component Video Switch This page left intentionaly nearly blank ...
Страница 32: ...Z E K T O R Z E K T O R 12675 Danielson Ct Suite 401 Poway CA 92064 858 748 8250 www zektor com ...