GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-4-0
Constituent: encdec     Tag: rad750
#include "LDT/FCS.h"
#include "dprintf.h"
#include "PBI/Unions.h"

Functions | |
| unsigned int | FCS_calculate16 (const unsigned short int *data, unsigned int cnt) |
| Calculates the 32-bit Fletcher checksum over the 16-bit data array. | |
| unsigned int | FCS_calculate32 (const unsigned int *data, unsigned int cnt) |
| Calculates the 32-bit Fletcher checksum over the 32-bit data array. | |
| void | FCS_construct (FCS_checksum *checksum) |
| Constructs a Fletcher checksum context. This is used when the data to be checksummed is not in one contigious array. | |
| void | FCS_accumulate16 (FCS_checksum *checksum, const unsigned short int *data, unsigned int cnt) |
| Updates the current Fletcher checksum. | |
| void | FCS_accumulate32 (FCS_checksum *checksum, const unsigned int *data, unsigned int cnt) |
| Updates the current Fletcher checksum. | |
| unsigned int | FCS_get (const FCS_checksum *checksum) |
| Processes the Fletcher checksum context, returning the current value of the checksum. | |
CVS $Id: FCS.c,v 1.1 2009/04/30 00:32:16 russell Exp $
| void FCS_accumulate16 | ( | FCS_checksum * | checksum, | |
| const unsigned short int * | data, | |||
| unsigned int | cnt | |||
| ) |
Updates the current Fletcher checksum.
| checksum | The Fletcher checksum context. | |
| data | The 16-bit data array to add to the current checksum | |
| cnt | The count of elements in data |
| void FCS_accumulate32 | ( | FCS_checksum * | checksum, | |
| const unsigned int * | data, | |||
| unsigned int | cnt | |||
| ) |
Updates the current Fletcher checksum.
| checksum | The Fletcher checksum context. | |
| data | The 32-bit data array to add to the current checksum | |
| cnt | The count of elements in data |
| unsigned int FCS_calculate16 | ( | const unsigned short int * | data, | |
| unsigned int | cnt | |||
| ) |
Calculates the 32-bit Fletcher checksum over the 16-bit data array.
| data | The 16-bit data array to checksum | |
| cnt | The count of elements in data |
| unsigned int FCS_calculate32 | ( | const unsigned int * | data, | |
| unsigned int | cnt | |||
| ) |
Calculates the 32-bit Fletcher checksum over the 32-bit data array.
| data | The 32-bit data array to checksum | |
| cnt | The count of elements in data |
| void FCS_construct | ( | FCS_checksum * | checksum | ) |
Constructs a Fletcher checksum context. This is used when the data to be checksummed is not in one contigious array.
| checksum | The Fletcher checksum context to be constructed. |
| unsigned int FCS_get | ( | const FCS_checksum * | checksum | ) |
Processes the Fletcher checksum context, returning the current value of the checksum.
| checksum | The Fletcher checksum context. |
1.5.3