/[PAMELA software]/rawreader/src/Crc.cpp
ViewVC logotype

Annotation of /rawreader/src/Crc.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Sep 1 10:56:22 2006 UTC (18 years, 3 months ago) by cafagna
Branch: MAIN
CVS Tags: v1r15, v1r14, v1r11, v1r13, v1r12, HEAD
First release in the PAMELA environment, some cleanup in the include
files, module function and Makefile added

1 cafagna 1.1 //CRC calculation///////////////////////////////////////////
2     #include "descript.h"
3     short int CRC(int buffer3[])
4     {
5     short int Summ;
6     int i;
7     int CSum, tmp;
8    
9     tmp=buffer3[8];
10     CSum=tmp;
11     for (i=9;i<1023;i++) {tmp=buffer3[i]; CSum=CSum^tmp;}
12     Summ=(short int) (CSum);
13     return Summ;
14     }
15    

  ViewVC Help
Powered by ViewVC 1.1.23