1 |
/**************************************************************************** |
/**************************************************************************** |
2 |
* F i l e D a t a |
* F i l e D a t a |
3 |
* $Id: CRC.c,v 1.1 2008-01-11 17:14:19 messineo Exp $ |
* $Id: CRC.c,v 1.1.1.1 2008/09/23 07:19:50 mocchiut Exp $ |
4 |
* $Revision: 1.1 $ |
* $Revision: 1.1.1.1 $ |
5 |
* $Date: 2008-01-11 17:14:19 $ |
* $Date: 2008/09/23 07:19:50 $ |
6 |
* $RCSfile: CRC.c,v $ |
* $RCSfile: CRC.c,v $ |
7 |
* |
* |
8 |
**************************************************************************** |
**************************************************************************** |
9 |
* S W D e v e l o p m e n t E n v i r o n m e n t |
* S W D e v e l o p m e n t E n v i r o n m e n t |
10 |
* |
* |
11 |
* $Author: messineo $ |
* $Author: mocchiut $ |
12 |
* : |
* : |
13 |
**************************************************************************** |
**************************************************************************** |
14 |
* U p d a t i n g |
* U p d a t i n g |
224 |
return ((UINT16)Crc16Value); |
return ((UINT16)Crc16Value); |
225 |
} |
} |
226 |
|
|
227 |
BYTE* charToUnsignedChar(char *buffer, UINT32 length){ |
/* BYTE* charToUnsignedChar(char *buffer, UINT32 length){ */ |
228 |
BYTE buff[length]; |
/* static BYTE buff[length]; */ |
229 |
unsigned int i; |
/* unsigned int i; */ |
230 |
for (i=0; i < length; i++){ |
/* for (i=0; i < length; i++){ */ |
231 |
buff[i] = (BYTE)buffer[i]; |
/* buff[i] = (BYTE)buffer[i]; */ |
232 |
} |
/* } */ |
233 |
|
/* return (buff); */ |
234 |
} |
/* } */ |
235 |
|
|
236 |
|
|
237 |
|
|