csi_crc.c File Reference
CRC calculation for Common Serial Interface protocol. More...
#include "csi_crc.h"
Include dependency graph for csi_crc.c:
Functions | |
uint16_t | CsiCrcCalc (const uint16_t *pWordArray, uint16_t NumberOfWords) |
Calculate CRC-field for CSI protocol. More... | |
uint16_t | CsiCrcCalcIncremental (const uint16_t *pWordArray, uint16_t NumberOfWords, uint16_t CRC) |
Calculate CRC-field for CSI protocol. More... | |
Detailed Description
CRC calculation for Common Serial Interface protocol.
- Date
- 2009/08/27
Function Documentation
uint16_t CsiCrcCalc | ( | const uint16_t * | pDataArray, |
uint16_t | NumberOfWords | ||
) |
Calculate CRC-field for CSI protocol.
- Parameters
-
[in] pDataArray Points to array of data words to calculate checksum [in] NumberOfWords The number of words in pDataArray
- Returns
- CRC checksum for CRC field
uint16_t CsiCrcCalcIncremental(const uint16_t *pWordArray, uint16_t NumberOfWords, uint16_t CRC)
Calculate CRC-field for CSI protocol.
Definition: csi_crc.c:18
Here is the call graph for this function:
uint16_t CsiCrcCalcIncremental | ( | const uint16_t * | pWordArray, |
uint16_t | NumberOfWords, | ||
uint16_t | CRC | ||
) |
Calculate CRC-field for CSI protocol.
- Parameters
-
[in] pWordArray Points to array of data words to calculate checksum [in] NumberOfWords The number of words in pDataArray [in] CRC The current CRC sum
- Returns
- CRC checksum for CRC field
Referenced by CsiBusWriteLargeData(), and CsiCrcCalc().